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