mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 03:00:56 +00:00
[create-pull-request] automated change
This commit is contained in:
@@ -10,25 +10,25 @@
|
||||
#endif
|
||||
|
||||
/* Enum definitions */
|
||||
typedef enum _meshtastic_XModem_Control {
|
||||
meshtastic_XModem_Control_NUL = 0,
|
||||
meshtastic_XModem_Control_SOH = 1,
|
||||
meshtastic_XModem_Control_STX = 2,
|
||||
meshtastic_XModem_Control_EOT = 4,
|
||||
meshtastic_XModem_Control_ACK = 6,
|
||||
meshtastic_XModem_Control_NAK = 21,
|
||||
meshtastic_XModem_Control_CAN = 24,
|
||||
meshtastic_XModem_Control_CTRLZ = 26
|
||||
} meshtastic_XModem_Control;
|
||||
typedef enum _XModem_Control {
|
||||
XModem_Control_NUL = 0,
|
||||
XModem_Control_SOH = 1,
|
||||
XModem_Control_STX = 2,
|
||||
XModem_Control_EOT = 4,
|
||||
XModem_Control_ACK = 6,
|
||||
XModem_Control_NAK = 21,
|
||||
XModem_Control_CAN = 24,
|
||||
XModem_Control_CTRLZ = 26
|
||||
} XModem_Control;
|
||||
|
||||
/* Struct definitions */
|
||||
typedef PB_BYTES_ARRAY_T(128) meshtastic_XModem_buffer_t;
|
||||
typedef struct _meshtastic_XModem {
|
||||
meshtastic_XModem_Control control;
|
||||
typedef PB_BYTES_ARRAY_T(128) XModem_buffer_t;
|
||||
typedef struct _XModem {
|
||||
XModem_Control control;
|
||||
uint16_t seq;
|
||||
uint16_t crc16;
|
||||
meshtastic_XModem_buffer_t buffer;
|
||||
} meshtastic_XModem;
|
||||
XModem_buffer_t buffer;
|
||||
} XModem;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -36,39 +36,39 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/* Helper constants for enums */
|
||||
#define _meshtastic_XModem_Control_MIN meshtastic_XModem_Control_NUL
|
||||
#define _meshtastic_XModem_Control_MAX meshtastic_XModem_Control_CTRLZ
|
||||
#define _meshtastic_XModem_Control_ARRAYSIZE ((meshtastic_XModem_Control)(meshtastic_XModem_Control_CTRLZ+1))
|
||||
#define _XModem_Control_MIN XModem_Control_NUL
|
||||
#define _XModem_Control_MAX XModem_Control_CTRLZ
|
||||
#define _XModem_Control_ARRAYSIZE ((XModem_Control)(XModem_Control_CTRLZ+1))
|
||||
|
||||
#define meshtastic_XModem_control_ENUMTYPE meshtastic_XModem_Control
|
||||
#define XModem_control_ENUMTYPE XModem_Control
|
||||
|
||||
|
||||
/* Initializer values for message structs */
|
||||
#define meshtastic_XModem_init_default {_meshtastic_XModem_Control_MIN, 0, 0, {0, {0}}}
|
||||
#define meshtastic_XModem_init_zero {_meshtastic_XModem_Control_MIN, 0, 0, {0, {0}}}
|
||||
#define XModem_init_default {_XModem_Control_MIN, 0, 0, {0, {0}}}
|
||||
#define XModem_init_zero {_XModem_Control_MIN, 0, 0, {0, {0}}}
|
||||
|
||||
/* Field tags (for use in manual encoding/decoding) */
|
||||
#define meshtastic_XModem_control_tag 1
|
||||
#define meshtastic_XModem_seq_tag 2
|
||||
#define meshtastic_XModem_crc16_tag 3
|
||||
#define meshtastic_XModem_buffer_tag 4
|
||||
#define XModem_control_tag 1
|
||||
#define XModem_seq_tag 2
|
||||
#define XModem_crc16_tag 3
|
||||
#define XModem_buffer_tag 4
|
||||
|
||||
/* Struct field encoding specification for nanopb */
|
||||
#define meshtastic_XModem_FIELDLIST(X, a) \
|
||||
#define XModem_FIELDLIST(X, a) \
|
||||
X(a, STATIC, SINGULAR, UENUM, control, 1) \
|
||||
X(a, STATIC, SINGULAR, UINT32, seq, 2) \
|
||||
X(a, STATIC, SINGULAR, UINT32, crc16, 3) \
|
||||
X(a, STATIC, SINGULAR, BYTES, buffer, 4)
|
||||
#define meshtastic_XModem_CALLBACK NULL
|
||||
#define meshtastic_XModem_DEFAULT NULL
|
||||
#define XModem_CALLBACK NULL
|
||||
#define XModem_DEFAULT NULL
|
||||
|
||||
extern const pb_msgdesc_t meshtastic_XModem_msg;
|
||||
extern const pb_msgdesc_t XModem_msg;
|
||||
|
||||
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
||||
#define meshtastic_XModem_fields &meshtastic_XModem_msg
|
||||
#define XModem_fields &XModem_msg
|
||||
|
||||
/* Maximum encoded size of messages (where known) */
|
||||
#define meshtastic_XModem_size 141
|
||||
#define XModem_size 141
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
|
||||
Reference in New Issue
Block a user