JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
feather.pb.h
Go to the documentation of this file.
1/* Automatically generated nanopb header */
2/* Generated by nanopb-0.4.8 */
3
4#ifndef PB_JAIABOT_PROTOBUF_NANOPB_JAIABOT_MESSAGES_FEATHER_PB_H_INCLUDED
5#define PB_JAIABOT_PROTOBUF_NANOPB_JAIABOT_MESSAGES_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 */
39
40typedef PB_BYTES_ARRAY_T(251) jaiabot_protobuf_LoRaMessage_data_t;
42 int32_t src;
43 int32_t dest;
45 jaiabot_protobuf_LoRaMessage_data_t data;
47 bool has_id;
48 int32_t id;
50 int32_t flags;
52 int32_t rssi;
57 /* +5-+23 dBm */
59 int32_t tx_power;
63
65#ifdef __cplusplus
66extern "C" {
67#endif
68
69/* Helper constants for enums */
70#define _jaiabot_protobuf_LoRaMessage_MessageType_MIN jaiabot_protobuf_LoRaMessage_MessageType_LORA_DATA
71#define _jaiabot_protobuf_LoRaMessage_MessageType_MAX jaiabot_protobuf_LoRaMessage_MessageType_DEBUG_MESSAGE
72#define _jaiabot_protobuf_LoRaMessage_MessageType_ARRAYSIZE ((jaiabot_protobuf_LoRaMessage_MessageType)(jaiabot_protobuf_LoRaMessage_MessageType_DEBUG_MESSAGE+1))
74#define _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_MIN jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128
75#define _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_MAX jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048
76#define _jaiabot_protobuf_LoRaMessage_ModemConfigChoice_ARRAYSIZE ((jaiabot_protobuf_LoRaMessage_ModemConfigChoice)(jaiabot_protobuf_LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048+1))
78#define jaiabot_protobuf_LoRaMessage_type_ENUMTYPE jaiabot_protobuf_LoRaMessage_MessageType
79#define jaiabot_protobuf_LoRaMessage_modem_config_ENUMTYPE jaiabot_protobuf_LoRaMessage_ModemConfigChoice
83/* Initializer values for message structs */
84#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}
85#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_init_default {0, 0, 0, 0}
86#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}
87#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_init_zero {0, 0, 0, 0}
88
89/* Field tags (for use in manual encoding/decoding) */
90#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_motor_tag 1
91#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_port_elevator_tag 2
92#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_stbd_elevator_tag 3
93#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_rudder_tag 4
94#define jaiabot_protobuf_LoRaMessage_src_tag 1
95#define jaiabot_protobuf_LoRaMessage_dest_tag 2
96#define jaiabot_protobuf_LoRaMessage_data_tag 3
97#define jaiabot_protobuf_LoRaMessage_type_tag 4
98#define jaiabot_protobuf_LoRaMessage_id_tag 5
99#define jaiabot_protobuf_LoRaMessage_flags_tag 6
100#define jaiabot_protobuf_LoRaMessage_rssi_tag 7
101#define jaiabot_protobuf_LoRaMessage_transmit_successful_tag 10
102#define jaiabot_protobuf_LoRaMessage_modem_config_tag 20
103#define jaiabot_protobuf_LoRaMessage_tx_power_tag 21
104#define jaiabot_protobuf_LoRaMessage_control_tag 30
106/* Struct field encoding specification for nanopb */
107#define jaiabot_protobuf_LoRaMessage_FIELDLIST(X, a) \
108X(a, STATIC, REQUIRED, INT32, src, 1) \
109X(a, STATIC, REQUIRED, INT32, dest, 2) \
110X(a, STATIC, OPTIONAL, BYTES, data, 3) \
111X(a, STATIC, REQUIRED, UENUM, type, 4) \
112X(a, STATIC, OPTIONAL, INT32, id, 5) \
113X(a, STATIC, OPTIONAL, INT32, flags, 6) \
114X(a, STATIC, OPTIONAL, SINT32, rssi, 7) \
115X(a, STATIC, OPTIONAL, BOOL, transmit_successful, 10) \
116X(a, STATIC, OPTIONAL, UENUM, modem_config, 20) \
117X(a, STATIC, OPTIONAL, INT32, tx_power, 21) \
118X(a, STATIC, OPTIONAL, MESSAGE, control, 30)
119#define jaiabot_protobuf_LoRaMessage_CALLBACK NULL
120#define jaiabot_protobuf_LoRaMessage_DEFAULT (const pb_byte_t*)"\x20\x01\xa0\x01\x01\xa8\x01\x0d\x00"
121#define jaiabot_protobuf_LoRaMessage_control_MSGTYPE jaiabot_protobuf_LoRaMessage_ControlSurfaces
122
123#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_FIELDLIST(X, a) \
124X(a, STATIC, REQUIRED, SINT32, motor, 1) \
125X(a, STATIC, REQUIRED, SINT32, port_elevator, 2) \
126X(a, STATIC, REQUIRED, SINT32, stbd_elevator, 3) \
127X(a, STATIC, REQUIRED, SINT32, rudder, 4)
128#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_CALLBACK NULL
129#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_DEFAULT NULL
131extern const pb_msgdesc_t jaiabot_protobuf_LoRaMessage_msg;
133
134/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
135#define jaiabot_protobuf_LoRaMessage_fields &jaiabot_protobuf_LoRaMessage_msg
136#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_fields &jaiabot_protobuf_LoRaMessage_ControlSurfaces_msg
137
138/* Maximum encoded size of messages (where known) */
139#define JAIABOT_PROTOBUF_NANOPB_JAIABOT_MESSAGES_FEATHER_PB_H_MAX_SIZE jaiabot_protobuf_LoRaMessage_size
140#define jaiabot_protobuf_LoRaMessage_ControlSurfaces_size 24
141#define jaiabot_protobuf_LoRaMessage_size 350
142
143#ifdef __cplusplus
144} /* extern "C" */
145#endif
146
147#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