JaiaBot  1.19.0
JaiaBot micro-AUV software
feather.pb.h
Go to the documentation of this file.
1 /* Automatically generated nanopb header */
2 /* Generated by nanopb-0.4.5 */
3 
4 #ifndef PB_JAIABOT_PROTOBUF_JAIABOT_MESSAGES_NANOPB_FEATHER_PB_H_INCLUDED
5 #define PB_JAIABOT_PROTOBUF_JAIABOT_MESSAGES_NANOPB_FEATHER_PB_H_INCLUDED
6 #include <pb.h>
7 
8 #if PB_PROTO_HEADER_VERSION != 40
9 #error Regenerate this file with the current version of nanopb generator.
10 #endif
11 
12 /* Enum definitions */
23 
31 
32 /* Struct definitions */
34  int32_t motor;
35  int32_t port_elevator;
36  int32_t stbd_elevator;
37  int32_t rudder;
39 
40 typedef PB_BYTES_ARRAY_T(251) jaiabot_protobuf_LoRaMessage_data_t;
42  int32_t src;
43  int32_t dest;
44  bool has_data;
45  jaiabot_protobuf_LoRaMessage_data_t data;
47  bool has_id;
48  int32_t id;
49  bool has_flags;
50  int32_t flags;
51  bool has_rssi;
52  int32_t rssi;
57  /* +5-+23 dBm */
59  int32_t tx_power;
63 
64 
65 /* Helper constants for enums */
66 #define _jaiabot_protobuf_LoRaMessage_MessageType_MIN jaiabot_protobuf_LoRaMessage_MessageType_LORA_DATA
67 #define _jaiabot_protobuf_LoRaMessage_MessageType_MAX jaiabot_protobuf_LoRaMessage_MessageType_DEBUG_MESSAGE
68 #define _jaiabot_protobuf_LoRaMessage_MessageType_ARRAYSIZE ((jaiabot_protobuf_LoRaMessage_MessageType)(jaiabot_protobuf_LoRaMessage_MessageType_DEBUG_MESSAGE+1))
69 
70 #define _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_MIN jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128
71 #define _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_MAX jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048
72 #define _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_ARRAYSIZE ((jaiabot_protobuf_LoRaMessage_ModemConfigChoice)(jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048+1))
73 
74 
75 #ifdef __cplusplus
76 extern "C" {
77 #endif
78 
79 /* Initializer values for message structs */
80 #define jaiabot_protobuf_LoRaMessage_init_default {0, 0, false, {0, {0}}, jaiabot_protobuf_LoRaMessage_MessageType_LORA_DATA, false, 0, false, 0, false, 0, false, 0, false, jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128, false, 13, false, jaiabot_protobuf_LoRaMessage_ControlSurfaces_init_default}
81 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_init_default {0, 0, 0, 0}
82 #define jaiabot_protobuf_LoRaMessage_init_zero {0, 0, false, {0, {0}}, _jaiabot_protobuf_LoRaMessage_MessageType_MIN, false, 0, false, 0, false, 0, false, 0, false, _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_MIN, false, 0, false, jaiabot_protobuf_LoRaMessage_ControlSurfaces_init_zero}
83 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_init_zero {0, 0, 0, 0}
84 
85 /* Field tags (for use in manual encoding/decoding) */
86 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_motor_tag 1
87 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_port_elevator_tag 2
88 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_stbd_elevator_tag 3
89 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_rudder_tag 4
90 #define jaiabot_protobuf_LoRaMessage_src_tag 1
91 #define jaiabot_protobuf_LoRaMessage_dest_tag 2
92 #define jaiabot_protobuf_LoRaMessage_data_tag 3
93 #define jaiabot_protobuf_LoRaMessage_type_tag 4
94 #define jaiabot_protobuf_LoRaMessage_id_tag 5
95 #define jaiabot_protobuf_LoRaMessage_flags_tag 6
96 #define jaiabot_protobuf_LoRaMessage_rssi_tag 7
97 #define jaiabot_protobuf_LoRaMessage_transmit_successful_tag 10
98 #define jaiabot_protobuf_LoRaMessage_modem_config_tag 20
99 #define jaiabot_protobuf_LoRaMessage_tx_power_tag 21
100 #define jaiabot_protobuf_LoRaMessage_control_tag 30
101 
102 /* Struct field encoding specification for nanopb */
103 #define jaiabot_protobuf_LoRaMessage_FIELDLIST(X, a) \
104 X(a, STATIC, REQUIRED, INT32, src, 1) \
105 X(a, STATIC, REQUIRED, INT32, dest, 2) \
106 X(a, STATIC, OPTIONAL, BYTES, data, 3) \
107 X(a, STATIC, REQUIRED, UENUM, type, 4) \
108 X(a, STATIC, OPTIONAL, INT32, id, 5) \
109 X(a, STATIC, OPTIONAL, INT32, flags, 6) \
110 X(a, STATIC, OPTIONAL, SINT32, rssi, 7) \
111 X(a, STATIC, OPTIONAL, BOOL, transmit_successful, 10) \
112 X(a, STATIC, OPTIONAL, UENUM, modem_config, 20) \
113 X(a, STATIC, OPTIONAL, INT32, tx_power, 21) \
114 X(a, STATIC, OPTIONAL, MESSAGE, control, 30)
115 #define jaiabot_protobuf_LoRaMessage_CALLBACK NULL
116 #define jaiabot_protobuf_LoRaMessage_DEFAULT (const pb_byte_t*)"\x20\x01\xa0\x01\x01\xa8\x01\x0d\x00"
117 #define jaiabot_protobuf_LoRaMessage_control_MSGTYPE jaiabot_protobuf_LoRaMessage_ControlSurfaces
118 
119 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_FIELDLIST(X, a) \
120 X(a, STATIC, REQUIRED, SINT32, motor, 1) \
121 X(a, STATIC, REQUIRED, SINT32, port_elevator, 2) \
122 X(a, STATIC, REQUIRED, SINT32, stbd_elevator, 3) \
123 X(a, STATIC, REQUIRED, SINT32, rudder, 4)
124 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_CALLBACK NULL
125 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_DEFAULT NULL
126 
127 extern const pb_msgdesc_t jaiabot_protobuf_LoRaMessage_msg;
128 extern const pb_msgdesc_t jaiabot_protobuf_LoRaMessage_ControlSurfaces_msg;
129 
130 /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
131 #define jaiabot_protobuf_LoRaMessage_fields &jaiabot_protobuf_LoRaMessage_msg
132 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_fields &jaiabot_protobuf_LoRaMessage_ControlSurfaces_msg
133 
134 /* Maximum encoded size of messages (where known) */
135 #define jaiabot_protobuf_LoRaMessage_ControlSurfaces_size 24
136 #define jaiabot_protobuf_LoRaMessage_size 350
137 
138 #ifdef __cplusplus
139 } /* extern "C" */
140 #endif
141 
142 #endif
struct _jaiabot_protobuf_LoRaMessage jaiabot_protobuf_LoRaMessage
_jaiabot_protobuf_LoRaMessage_ModemConfigChoice
Definition: feather.pb.h:24
@ jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw31_25Cr48Sf512
Definition: feather.pb.h:27
@ jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048
Definition: feather.pb.h:29
@ jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128
Definition: feather.pb.h:25
@ jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr48Sf4096
Definition: feather.pb.h:28
@ jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw500Cr45Sf128
Definition: feather.pb.h:26
const pb_msgdesc_t jaiabot_protobuf_LoRaMessage_ControlSurfaces_msg
const pb_msgdesc_t jaiabot_protobuf_LoRaMessage_msg
struct _jaiabot_protobuf_LoRaMessage_ControlSurfaces jaiabot_protobuf_LoRaMessage_ControlSurfaces
enum _jaiabot_protobuf_LoRaMessage_MessageType jaiabot_protobuf_LoRaMessage_MessageType
enum _jaiabot_protobuf_LoRaMessage_ModemConfigChoice jaiabot_protobuf_LoRaMessage_ModemConfigChoice
_jaiabot_protobuf_LoRaMessage_MessageType
Definition: feather.pb.h:13
@ jaiabot_protobuf_LoRaMessage_MessageType_FEATHER_READY
Definition: feather.pb.h:18
@ jaiabot_protobuf_LoRaMessage_MessageType_TRANSMIT_RESULT
Definition: feather.pb.h:19
@ jaiabot_protobuf_LoRaMessage_MessageType_LORA_DATA
Definition: feather.pb.h:14
@ jaiabot_protobuf_LoRaMessage_MessageType_SET_PARAMETERS
Definition: feather.pb.h:15
@ jaiabot_protobuf_LoRaMessage_MessageType_LOW_CONTROL
Definition: feather.pb.h:20
@ jaiabot_protobuf_LoRaMessage_MessageType_PARAMETERS_ACCEPTED
Definition: feather.pb.h:16
@ jaiabot_protobuf_LoRaMessage_MessageType_PARAMETERS_REJECTED
Definition: feather.pb.h:17
@ jaiabot_protobuf_LoRaMessage_MessageType_DEBUG_MESSAGE
Definition: feather.pb.h:21
typedef PB_BYTES_ARRAY_T(251) jaiabot_protobuf_LoRaMessage_data_t
jaiabot_protobuf_LoRaMessage_ControlSurfaces control
Definition: feather.pb.h:61
jaiabot_protobuf_LoRaMessage_ModemConfigChoice modem_config
Definition: feather.pb.h:56
jaiabot_protobuf_LoRaMessage_MessageType type
Definition: feather.pb.h:46
jaiabot_protobuf_LoRaMessage_data_t data
Definition: feather.pb.h:45