Files
firmware/src/mesh/generated/mesh.pb.h

793 lines
33 KiB
C
Raw Normal View History

2020-02-01 11:56:32 -08:00
/* Automatically generated nanopb header */
2020-12-11 09:11:53 +08:00
/* Generated by nanopb-0.4.4 */
2020-02-01 11:56:32 -08:00
2020-02-01 14:23:02 -08:00
#ifndef PB_MESH_PB_H_INCLUDED
#define PB_MESH_PB_H_INCLUDED
2020-02-01 11:56:32 -08:00
#include <pb.h>
#include "portnums.pb.h"
2020-02-01 11:56:32 -08:00
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Enum definitions */
typedef enum _Constants {
2020-11-28 09:17:20 +08:00
Constants_Unused = 0,
Constants_DATA_PAYLOAD_LEN = 240
} Constants;
typedef enum _RegionCode {
RegionCode_Unset = 0,
RegionCode_US = 1,
RegionCode_EU433 = 2,
RegionCode_EU865 = 3,
RegionCode_CN = 4,
RegionCode_JP = 5,
RegionCode_ANZ = 6,
RegionCode_KR = 7,
RegionCode_TW = 8
} RegionCode;
2021-01-16 20:50:58 -08:00
typedef enum _ChargeCurrent {
ChargeCurrent_MAUnset = 0,
ChargeCurrent_MA100 = 1,
ChargeCurrent_MA190 = 2,
ChargeCurrent_MA280 = 3,
ChargeCurrent_MA360 = 4,
ChargeCurrent_MA450 = 5,
ChargeCurrent_MA550 = 6,
ChargeCurrent_MA630 = 7,
ChargeCurrent_MA700 = 8,
ChargeCurrent_MA780 = 9,
ChargeCurrent_MA880 = 10,
ChargeCurrent_MA960 = 11,
ChargeCurrent_MA1000 = 12,
ChargeCurrent_MA1080 = 13,
ChargeCurrent_MA1160 = 14,
ChargeCurrent_MA1240 = 15,
ChargeCurrent_MA1320 = 16
} ChargeCurrent;
2020-09-30 07:47:16 -07:00
typedef enum _GpsOperation {
GpsOperation_GpsOpUnset = 0,
2021-01-29 10:14:36 +08:00
GpsOperation_GpsOpStationary = 1,
2020-09-30 07:47:16 -07:00
GpsOperation_GpsOpMobile = 2,
GpsOperation_GpsOpTimeOnly = 3,
GpsOperation_GpsOpDisabled = 4
} GpsOperation;
typedef enum _LocationSharing {
LocationSharing_LocUnset = 0,
LocationSharing_LocEnabled = 1,
LocationSharing_LocDisabled = 2
} LocationSharing;
typedef enum _CriticalErrorCode {
CriticalErrorCode_None = 0,
CriticalErrorCode_TxWatchdog = 1,
CriticalErrorCode_SleepEnterWait = 2,
CriticalErrorCode_NoRadio = 3,
CriticalErrorCode_Unspecified = 4,
CriticalErrorCode_UBloxInitFailed = 5,
CriticalErrorCode_NoAXP192 = 6,
CriticalErrorCode_InvalidRadioSetting = 7,
CriticalErrorCode_TransmitFailed = 8
} CriticalErrorCode;
2021-02-17 13:06:23 +08:00
typedef enum _Routing_Error {
Routing_Error_NONE = 0,
Routing_Error_NO_ROUTE = 1,
Routing_Error_GOT_NAK = 2,
Routing_Error_TIMEOUT = 3,
Routing_Error_NO_INTERFACE = 4,
2021-02-22 12:57:26 +08:00
Routing_Error_MAX_RETRANSMIT = 5,
Routing_Error_NO_CHANNEL = 6,
Routing_Error_TOO_LARGE = 7
2021-02-17 13:06:23 +08:00
} Routing_Error;
typedef enum _MeshPacket_Priority {
MeshPacket_Priority_UNSET = 0,
MeshPacket_Priority_MIN = 1,
MeshPacket_Priority_BACKGROUND = 10,
MeshPacket_Priority_DEFAULT = 64,
MeshPacket_Priority_RELIABLE = 70,
MeshPacket_Priority_ACK = 120,
MeshPacket_Priority_MAX = 127
} MeshPacket_Priority;
typedef enum _ChannelSettings_ModemConfig {
ChannelSettings_ModemConfig_Bw125Cr45Sf128 = 0,
ChannelSettings_ModemConfig_Bw500Cr45Sf128 = 1,
ChannelSettings_ModemConfig_Bw31_25Cr48Sf512 = 2,
ChannelSettings_ModemConfig_Bw125Cr48Sf4096 = 3
} ChannelSettings_ModemConfig;
2021-02-16 15:41:52 +08:00
typedef enum _Channel_Role {
Channel_Role_DISABLED = 0,
Channel_Role_PRIMARY = 1,
Channel_Role_SECONDARY = 2
} Channel_Role;
typedef enum _LogRecord_Level {
LogRecord_Level_UNSET = 0,
LogRecord_Level_CRITICAL = 50,
LogRecord_Level_ERROR = 40,
LogRecord_Level_WARNING = 30,
LogRecord_Level_INFO = 20,
LogRecord_Level_DEBUG = 10,
LogRecord_Level_TRACE = 5
} LogRecord_Level;
2020-02-01 11:56:32 -08:00
/* Struct definitions */
2020-05-09 19:08:04 -07:00
typedef PB_BYTES_ARRAY_T(32) ChannelSettings_psk_t;
typedef struct _ChannelSettings {
2021-02-22 10:26:11 +08:00
int8_t tx_power;
ChannelSettings_ModemConfig modem_config;
2020-05-09 19:08:04 -07:00
ChannelSettings_psk_t psk;
char name[12];
2021-02-22 10:26:11 +08:00
uint16_t bandwidth;
uint32_t spread_factor;
2021-02-22 10:26:11 +08:00
uint8_t coding_rate;
uint8_t channel_num;
2020-12-28 13:22:10 +08:00
uint32_t id;
bool uplink_enabled;
bool downlink_enabled;
} ChannelSettings;
2021-02-22 10:26:11 +08:00
typedef PB_BYTES_ARRAY_T(237) Data_payload_t;
2020-02-01 14:23:02 -08:00
typedef struct _Data {
PortNum portnum;
2020-02-01 14:23:02 -08:00
Data_payload_t payload;
2021-02-17 13:06:23 +08:00
bool want_response;
uint32_t dest;
uint32_t source;
2020-02-01 14:23:02 -08:00
} Data;
2020-02-01 11:56:32 -08:00
typedef struct _LogRecord {
char message[64];
uint32_t time;
char source[8];
LogRecord_Level level;
} LogRecord;
2020-02-03 10:00:53 -08:00
typedef struct _MyNodeInfo {
2020-05-21 20:31:22 -07:00
uint32_t my_node_num;
bool has_gps;
2021-02-16 15:41:52 +08:00
uint32_t num_bands;
2020-03-03 08:23:58 -08:00
char region[12];
char hw_model[16];
2020-03-03 08:23:58 -08:00
char firmware_version[12];
CriticalErrorCode error_code;
uint32_t error_address;
uint32_t error_count;
uint32_t message_timeout_msec;
uint32_t min_app_version;
2021-02-16 15:41:52 +08:00
uint32_t max_channels;
2020-02-03 10:00:53 -08:00
} MyNodeInfo;
2020-02-01 14:23:02 -08:00
typedef struct _Position {
int32_t latitude_i;
int32_t longitude_i;
2021-02-16 15:41:52 +08:00
int32_t altitude;
int32_t battery_level;
2020-05-10 14:17:05 -07:00
uint32_t time;
2020-02-01 14:23:02 -08:00
} Position;
2020-02-01 11:56:32 -08:00
typedef struct _RadioConfig_UserPreferences {
uint32_t position_broadcast_secs;
uint32_t send_owner_interval;
uint32_t wait_bluetooth_secs;
uint32_t screen_on_secs;
uint32_t phone_timeout_secs;
uint32_t phone_sds_timeout_sec;
uint32_t mesh_sds_timeout_secs;
uint32_t sds_secs;
uint32_t ls_secs;
uint32_t min_wake_secs;
char wifi_ssid[33];
char wifi_password[64];
bool wifi_ap_mode;
RegionCode region;
2021-01-16 20:50:58 -08:00
ChargeCurrent charge_current;
2020-09-30 07:47:16 -07:00
LocationSharing location_share;
GpsOperation gps_operation;
2020-10-05 14:43:44 +08:00
uint32_t gps_update_interval;
2020-09-30 07:47:16 -07:00
uint32_t gps_attempt_time;
bool is_router;
bool is_low_power;
2020-12-09 11:56:41 +08:00
bool fixed_position;
bool factory_reset;
2020-12-09 11:56:41 +08:00
bool debug_log_enabled;
pb_size_t ignore_incoming_count;
uint32_t ignore_incoming[3];
2021-01-16 20:50:58 -08:00
bool serialplugin_enabled;
bool serialplugin_echo;
uint32_t serialplugin_rxd;
uint32_t serialplugin_txd;
uint32_t serialplugin_timeout;
2021-01-29 10:14:36 +08:00
uint32_t serialplugin_mode;
bool ext_notification_plugin_enabled;
uint32_t ext_notification_plugin_output_ms;
uint32_t ext_notification_plugin_output;
bool ext_notification_plugin_active;
bool ext_notification_plugin_alert_message;
bool ext_notification_plugin_alert_bell;
2021-02-08 17:57:45 +08:00
bool range_test_plugin_enabled;
uint32_t range_test_plugin_sender;
bool range_test_plugin_save;
bool store_forward_plugin_enabled;
uint32_t store_forward_plugin_records;
} RadioConfig_UserPreferences;
2020-02-01 11:56:32 -08:00
typedef struct _RouteDiscovery {
pb_size_t route_count;
2021-02-17 13:06:23 +08:00
uint32_t route[8];
} RouteDiscovery;
2020-02-01 14:23:02 -08:00
typedef struct _User {
2020-02-01 12:32:35 -08:00
char id[16];
char long_name[40];
2020-02-04 09:00:17 -08:00
char short_name[5];
2020-02-03 17:13:41 -08:00
pb_byte_t macaddr[6];
2020-02-01 14:23:02 -08:00
} User;
2020-02-01 12:32:35 -08:00
2021-02-16 15:41:52 +08:00
typedef struct _Channel {
2021-02-22 10:26:11 +08:00
uint8_t index;
2021-02-16 15:41:52 +08:00
bool has_settings;
ChannelSettings settings;
Channel_Role role;
} Channel;
2021-02-17 13:06:23 +08:00
typedef PB_BYTES_ARRAY_T(256) MeshPacket_encrypted_t;
typedef struct _MeshPacket {
uint32_t from;
uint32_t to;
2021-02-22 12:57:26 +08:00
uint32_t channel;
2021-02-17 13:06:23 +08:00
pb_size_t which_payloadVariant;
union {
Data decoded;
MeshPacket_encrypted_t encrypted;
};
uint32_t id;
uint32_t rx_time;
2021-02-17 19:04:41 +08:00
float rx_snr;
2021-02-22 10:26:11 +08:00
uint8_t hop_limit;
2021-02-17 13:06:23 +08:00
bool want_ack;
MeshPacket_Priority priority;
} MeshPacket;
2020-02-01 14:23:02 -08:00
typedef struct _NodeInfo {
uint32_t num;
2020-02-01 11:56:32 -08:00
bool has_user;
2020-02-01 14:23:02 -08:00
User user;
2020-02-01 11:56:32 -08:00
bool has_position;
2020-02-01 14:23:02 -08:00
Position position;
uint32_t next_hop;
2020-04-30 12:37:58 -07:00
float snr;
2020-02-01 14:23:02 -08:00
} NodeInfo;
2020-02-01 11:56:32 -08:00
typedef struct _RadioConfig {
bool has_preferences;
RadioConfig_UserPreferences preferences;
} RadioConfig;
2021-02-17 13:06:23 +08:00
typedef struct _Routing {
pb_size_t which_variant;
union {
2020-05-23 15:48:23 -07:00
RouteDiscovery route_request;
RouteDiscovery route_reply;
2021-02-17 13:06:23 +08:00
Routing_Error error_reason;
uint32_t success_id;
uint32_t fail_id;
};
2021-02-17 13:06:23 +08:00
uint32_t original_id;
} Routing;
2020-02-01 12:32:35 -08:00
2021-02-21 14:03:44 +08:00
typedef struct _AdminMessage {
pb_size_t which_variant;
union {
RadioConfig set_radio;
User set_owner;
Channel set_channel;
};
} AdminMessage;
2020-02-01 14:23:02 -08:00
typedef struct _FromRadio {
2020-02-01 11:56:32 -08:00
uint32_t num;
2021-02-08 17:57:45 +08:00
pb_size_t which_payloadVariant;
2020-02-01 11:56:32 -08:00
union {
MyNodeInfo my_info;
NodeInfo node_info;
RadioConfig radio;
LogRecord log_record;
uint32_t config_complete_id;
bool rebooted;
2021-02-16 15:41:52 +08:00
Channel channel;
2021-02-17 13:06:23 +08:00
MeshPacket packet;
};
2020-02-01 14:23:02 -08:00
} FromRadio;
2020-02-01 11:56:32 -08:00
2020-02-01 14:23:02 -08:00
typedef struct _ToRadio {
2021-02-08 17:57:45 +08:00
pb_size_t which_payloadVariant;
2020-02-01 12:32:35 -08:00
union {
2020-02-01 14:23:02 -08:00
MeshPacket packet;
uint32_t want_config_id;
};
2020-02-01 14:23:02 -08:00
} ToRadio;
2020-02-01 12:32:35 -08:00
2020-02-01 11:56:32 -08:00
/* Helper constants for enums */
#define _Constants_MIN Constants_Unused
2020-11-28 09:17:20 +08:00
#define _Constants_MAX Constants_DATA_PAYLOAD_LEN
#define _Constants_ARRAYSIZE ((Constants)(Constants_DATA_PAYLOAD_LEN+1))
#define _RegionCode_MIN RegionCode_Unset
#define _RegionCode_MAX RegionCode_TW
#define _RegionCode_ARRAYSIZE ((RegionCode)(RegionCode_TW+1))
2021-01-16 20:50:58 -08:00
#define _ChargeCurrent_MIN ChargeCurrent_MAUnset
#define _ChargeCurrent_MAX ChargeCurrent_MA1320
#define _ChargeCurrent_ARRAYSIZE ((ChargeCurrent)(ChargeCurrent_MA1320+1))
2020-09-30 07:47:16 -07:00
#define _GpsOperation_MIN GpsOperation_GpsOpUnset
#define _GpsOperation_MAX GpsOperation_GpsOpDisabled
#define _GpsOperation_ARRAYSIZE ((GpsOperation)(GpsOperation_GpsOpDisabled+1))
#define _LocationSharing_MIN LocationSharing_LocUnset
#define _LocationSharing_MAX LocationSharing_LocDisabled
#define _LocationSharing_ARRAYSIZE ((LocationSharing)(LocationSharing_LocDisabled+1))
#define _CriticalErrorCode_MIN CriticalErrorCode_None
2021-01-29 10:14:36 +08:00
#define _CriticalErrorCode_MAX CriticalErrorCode_TransmitFailed
#define _CriticalErrorCode_ARRAYSIZE ((CriticalErrorCode)(CriticalErrorCode_TransmitFailed+1))
2021-02-17 13:06:23 +08:00
#define _Routing_Error_MIN Routing_Error_NONE
2021-02-22 12:57:26 +08:00
#define _Routing_Error_MAX Routing_Error_TOO_LARGE
#define _Routing_Error_ARRAYSIZE ((Routing_Error)(Routing_Error_TOO_LARGE+1))
2021-02-17 13:06:23 +08:00
#define _MeshPacket_Priority_MIN MeshPacket_Priority_UNSET
#define _MeshPacket_Priority_MAX MeshPacket_Priority_MAX
#define _MeshPacket_Priority_ARRAYSIZE ((MeshPacket_Priority)(MeshPacket_Priority_MAX+1))
#define _ChannelSettings_ModemConfig_MIN ChannelSettings_ModemConfig_Bw125Cr45Sf128
#define _ChannelSettings_ModemConfig_MAX ChannelSettings_ModemConfig_Bw125Cr48Sf4096
#define _ChannelSettings_ModemConfig_ARRAYSIZE ((ChannelSettings_ModemConfig)(ChannelSettings_ModemConfig_Bw125Cr48Sf4096+1))
2021-02-16 15:41:52 +08:00
#define _Channel_Role_MIN Channel_Role_DISABLED
#define _Channel_Role_MAX Channel_Role_SECONDARY
#define _Channel_Role_ARRAYSIZE ((Channel_Role)(Channel_Role_SECONDARY+1))
#define _LogRecord_Level_MIN LogRecord_Level_UNSET
#define _LogRecord_Level_MAX LogRecord_Level_CRITICAL
#define _LogRecord_Level_ARRAYSIZE ((LogRecord_Level)(LogRecord_Level_CRITICAL+1))
2020-02-01 11:56:32 -08:00
2020-12-11 09:11:53 +08:00
#ifdef __cplusplus
extern "C" {
#endif
2020-02-01 11:56:32 -08:00
/* Initializer values for message structs */
#define Position_init_default {0, 0, 0, 0, 0}
2020-02-03 17:13:41 -08:00
#define User_init_default {"", "", "", {0}}
#define RouteDiscovery_init_default {0, {0, 0, 0, 0, 0, 0, 0, 0}}
2021-02-17 13:06:23 +08:00
#define Routing_init_default {0, {RouteDiscovery_init_default}, 0}
#define Data_init_default {_PortNum_MIN, {0, {0}}, 0, 0, 0}
2021-02-17 19:04:41 +08:00
#define MeshPacket_init_default {0, 0, 0, 0, {Data_init_default}, 0, 0, 0, 0, 0, _MeshPacket_Priority_MIN}
2020-12-28 13:22:10 +08:00
#define ChannelSettings_init_default {0, _ChannelSettings_ModemConfig_MIN, {0, {0}}, "", 0, 0, 0, 0, 0, 0, 0}
2021-02-16 15:41:52 +08:00
#define Channel_init_default {0, false, ChannelSettings_init_default, _Channel_Role_MIN}
#define RadioConfig_init_default {false, RadioConfig_UserPreferences_init_default}
2021-02-08 17:57:45 +08:00
#define RadioConfig_UserPreferences_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, _RegionCode_MIN, _ChargeCurrent_MIN, _LocationSharing_MIN, _GpsOperation_MIN, 0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0}, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
#define NodeInfo_init_default {0, false, User_init_default, false, Position_init_default, 0, 0}
2021-02-16 15:41:52 +08:00
#define MyNodeInfo_init_default {0, 0, 0, "", "", "", _CriticalErrorCode_MIN, 0, 0, 0, 0, 0}
#define LogRecord_init_default {"", 0, "", _LogRecord_Level_MIN}
2021-02-17 13:06:23 +08:00
#define FromRadio_init_default {0, 0, {MyNodeInfo_init_default}}
2020-02-01 14:23:02 -08:00
#define ToRadio_init_default {0, {MeshPacket_init_default}}
2021-02-21 14:03:44 +08:00
#define AdminMessage_init_default {0, {RadioConfig_init_default}}
#define Position_init_zero {0, 0, 0, 0, 0}
2020-02-03 17:13:41 -08:00
#define User_init_zero {"", "", "", {0}}
#define RouteDiscovery_init_zero {0, {0, 0, 0, 0, 0, 0, 0, 0}}
2021-02-17 13:06:23 +08:00
#define Routing_init_zero {0, {RouteDiscovery_init_zero}, 0}
#define Data_init_zero {_PortNum_MIN, {0, {0}}, 0, 0, 0}
2021-02-17 19:04:41 +08:00
#define MeshPacket_init_zero {0, 0, 0, 0, {Data_init_zero}, 0, 0, 0, 0, 0, _MeshPacket_Priority_MIN}
2020-12-28 13:22:10 +08:00
#define ChannelSettings_init_zero {0, _ChannelSettings_ModemConfig_MIN, {0, {0}}, "", 0, 0, 0, 0, 0, 0, 0}
2021-02-16 15:41:52 +08:00
#define Channel_init_zero {0, false, ChannelSettings_init_zero, _Channel_Role_MIN}
#define RadioConfig_init_zero {false, RadioConfig_UserPreferences_init_zero}
2021-02-08 17:57:45 +08:00
#define RadioConfig_UserPreferences_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, _RegionCode_MIN, _ChargeCurrent_MIN, _LocationSharing_MIN, _GpsOperation_MIN, 0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0}, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
#define NodeInfo_init_zero {0, false, User_init_zero, false, Position_init_zero, 0, 0}
2021-02-16 15:41:52 +08:00
#define MyNodeInfo_init_zero {0, 0, 0, "", "", "", _CriticalErrorCode_MIN, 0, 0, 0, 0, 0}
#define LogRecord_init_zero {"", 0, "", _LogRecord_Level_MIN}
2021-02-17 13:06:23 +08:00
#define FromRadio_init_zero {0, 0, {MyNodeInfo_init_zero}}
2020-02-01 14:23:02 -08:00
#define ToRadio_init_zero {0, {MeshPacket_init_zero}}
2021-02-21 14:03:44 +08:00
#define AdminMessage_init_zero {0, {RadioConfig_init_zero}}
2020-02-01 11:56:32 -08:00
/* Field tags (for use in manual encoding/decoding) */
#define ChannelSettings_tx_power_tag 1
#define ChannelSettings_modem_config_tag 3
2020-12-11 09:11:53 +08:00
#define ChannelSettings_psk_tag 4
#define ChannelSettings_name_tag 5
#define ChannelSettings_bandwidth_tag 6
#define ChannelSettings_spread_factor_tag 7
#define ChannelSettings_coding_rate_tag 8
#define ChannelSettings_channel_num_tag 9
2020-12-28 13:22:10 +08:00
#define ChannelSettings_id_tag 10
#define ChannelSettings_uplink_enabled_tag 16
#define ChannelSettings_downlink_enabled_tag 17
#define Data_portnum_tag 1
2020-02-01 14:23:02 -08:00
#define Data_payload_tag 2
2021-02-17 19:04:41 +08:00
#define Data_want_response_tag 3
#define Data_dest_tag 4
#define Data_source_tag 5
#define LogRecord_message_tag 1
#define LogRecord_time_tag 2
#define LogRecord_source_tag 3
#define LogRecord_level_tag 4
2020-02-03 10:00:53 -08:00
#define MyNodeInfo_my_node_num_tag 1
#define MyNodeInfo_has_gps_tag 2
2021-02-16 15:41:52 +08:00
#define MyNodeInfo_num_bands_tag 3
2020-03-03 08:23:58 -08:00
#define MyNodeInfo_region_tag 4
#define MyNodeInfo_hw_model_tag 5
#define MyNodeInfo_firmware_version_tag 6
#define MyNodeInfo_error_code_tag 7
#define MyNodeInfo_error_address_tag 8
#define MyNodeInfo_error_count_tag 9
#define MyNodeInfo_message_timeout_msec_tag 13
#define MyNodeInfo_min_app_version_tag 14
2021-02-16 15:41:52 +08:00
#define MyNodeInfo_max_channels_tag 15
#define Position_latitude_i_tag 1
#define Position_longitude_i_tag 2
2020-02-01 14:23:02 -08:00
#define Position_altitude_tag 3
#define Position_battery_level_tag 4
2020-05-10 14:17:05 -07:00
#define Position_time_tag 9
#define RadioConfig_UserPreferences_position_broadcast_secs_tag 1
#define RadioConfig_UserPreferences_send_owner_interval_tag 2
#define RadioConfig_UserPreferences_wait_bluetooth_secs_tag 4
#define RadioConfig_UserPreferences_screen_on_secs_tag 5
#define RadioConfig_UserPreferences_phone_timeout_secs_tag 6
#define RadioConfig_UserPreferences_phone_sds_timeout_sec_tag 7
#define RadioConfig_UserPreferences_mesh_sds_timeout_secs_tag 8
#define RadioConfig_UserPreferences_sds_secs_tag 9
#define RadioConfig_UserPreferences_ls_secs_tag 10
#define RadioConfig_UserPreferences_min_wake_secs_tag 11
#define RadioConfig_UserPreferences_wifi_ssid_tag 12
#define RadioConfig_UserPreferences_wifi_password_tag 13
#define RadioConfig_UserPreferences_wifi_ap_mode_tag 14
#define RadioConfig_UserPreferences_region_tag 15
2021-01-16 20:50:58 -08:00
#define RadioConfig_UserPreferences_charge_current_tag 16
2020-12-11 09:11:53 +08:00
#define RadioConfig_UserPreferences_location_share_tag 32
#define RadioConfig_UserPreferences_gps_operation_tag 33
#define RadioConfig_UserPreferences_gps_update_interval_tag 34
#define RadioConfig_UserPreferences_gps_attempt_time_tag 36
#define RadioConfig_UserPreferences_is_router_tag 37
#define RadioConfig_UserPreferences_is_low_power_tag 38
2020-12-09 11:56:41 +08:00
#define RadioConfig_UserPreferences_fixed_position_tag 39
#define RadioConfig_UserPreferences_factory_reset_tag 100
2020-12-09 11:56:41 +08:00
#define RadioConfig_UserPreferences_debug_log_enabled_tag 101
#define RadioConfig_UserPreferences_ignore_incoming_tag 103
2021-01-16 20:50:58 -08:00
#define RadioConfig_UserPreferences_serialplugin_enabled_tag 120
#define RadioConfig_UserPreferences_serialplugin_echo_tag 121
#define RadioConfig_UserPreferences_serialplugin_rxd_tag 122
#define RadioConfig_UserPreferences_serialplugin_txd_tag 123
#define RadioConfig_UserPreferences_serialplugin_timeout_tag 124
2021-01-29 10:14:36 +08:00
#define RadioConfig_UserPreferences_serialplugin_mode_tag 125
#define RadioConfig_UserPreferences_ext_notification_plugin_enabled_tag 126
#define RadioConfig_UserPreferences_ext_notification_plugin_output_ms_tag 127
#define RadioConfig_UserPreferences_ext_notification_plugin_output_tag 128
#define RadioConfig_UserPreferences_ext_notification_plugin_active_tag 129
#define RadioConfig_UserPreferences_ext_notification_plugin_alert_message_tag 130
#define RadioConfig_UserPreferences_ext_notification_plugin_alert_bell_tag 131
2021-02-08 17:57:45 +08:00
#define RadioConfig_UserPreferences_range_test_plugin_enabled_tag 132
#define RadioConfig_UserPreferences_range_test_plugin_sender_tag 133
#define RadioConfig_UserPreferences_range_test_plugin_save_tag 134
#define RadioConfig_UserPreferences_store_forward_plugin_enabled_tag 136
#define RadioConfig_UserPreferences_store_forward_plugin_records_tag 137
#define RouteDiscovery_route_tag 2
2020-02-01 14:23:02 -08:00
#define User_id_tag 1
#define User_long_name_tag 2
#define User_short_name_tag 3
#define User_macaddr_tag 4
2021-02-16 15:41:52 +08:00
#define Channel_index_tag 1
#define Channel_settings_tag 2
#define Channel_role_tag 3
2020-02-01 14:23:02 -08:00
#define MeshPacket_from_tag 1
#define MeshPacket_to_tag 2
2021-02-22 12:57:26 +08:00
#define MeshPacket_channel_tag 3
2021-02-17 19:04:41 +08:00
#define MeshPacket_decoded_tag 4
#define MeshPacket_encrypted_tag 5
#define MeshPacket_id_tag 6
2021-02-17 19:04:41 +08:00
#define MeshPacket_rx_time_tag 7
#define MeshPacket_rx_snr_tag 8
#define MeshPacket_hop_limit_tag 9
#define MeshPacket_want_ack_tag 10
#define MeshPacket_priority_tag 11
2021-02-17 13:06:23 +08:00
#define NodeInfo_num_tag 1
#define NodeInfo_user_tag 2
#define NodeInfo_position_tag 3
#define NodeInfo_next_hop_tag 5
#define NodeInfo_snr_tag 7
#define RadioConfig_preferences_tag 1
#define Routing_route_request_tag 1
#define Routing_route_reply_tag 2
#define Routing_error_reason_tag 3
#define Routing_success_id_tag 4
#define Routing_fail_id_tag 5
#define Routing_original_id_tag 6
2021-02-21 14:03:44 +08:00
#define AdminMessage_set_radio_tag 1
#define AdminMessage_set_owner_tag 2
#define AdminMessage_set_channel_tag 3
2020-12-11 09:11:53 +08:00
#define FromRadio_num_tag 1
#define FromRadio_my_info_tag 3
#define FromRadio_node_info_tag 4
#define FromRadio_radio_tag 6
#define FromRadio_log_record_tag 7
#define FromRadio_config_complete_id_tag 8
#define FromRadio_rebooted_tag 9
2020-12-28 13:22:10 +08:00
#define FromRadio_channel_tag 10
2021-02-17 13:06:23 +08:00
#define FromRadio_packet_tag 11
#define ToRadio_packet_tag 2
#define ToRadio_want_config_id_tag 100
2020-02-01 11:56:32 -08:00
/* Struct field encoding specification for nanopb */
2020-02-01 14:23:02 -08:00
#define Position_FIELDLIST(X, a) \
2021-02-16 15:41:52 +08:00
X(a, STATIC, SINGULAR, SFIXED32, latitude_i, 1) \
X(a, STATIC, SINGULAR, SFIXED32, longitude_i, 2) \
2020-02-01 11:56:32 -08:00
X(a, STATIC, SINGULAR, INT32, altitude, 3) \
2020-02-01 14:23:02 -08:00
X(a, STATIC, SINGULAR, INT32, battery_level, 4) \
2020-05-10 14:17:05 -07:00
X(a, STATIC, SINGULAR, FIXED32, time, 9)
2020-02-01 14:23:02 -08:00
#define Position_CALLBACK NULL
#define Position_DEFAULT NULL
2020-02-01 11:56:32 -08:00
2020-02-01 14:23:02 -08:00
#define User_FIELDLIST(X, a) \
2020-02-01 12:32:35 -08:00
X(a, STATIC, SINGULAR, STRING, id, 1) \
X(a, STATIC, SINGULAR, STRING, long_name, 2) \
X(a, STATIC, SINGULAR, STRING, short_name, 3) \
2020-02-03 17:13:41 -08:00
X(a, STATIC, SINGULAR, FIXED_LENGTH_BYTES, macaddr, 4)
2020-02-01 14:23:02 -08:00
#define User_CALLBACK NULL
#define User_DEFAULT NULL
2020-02-01 11:56:32 -08:00
#define RouteDiscovery_FIELDLIST(X, a) \
2021-02-17 13:06:23 +08:00
X(a, STATIC, REPEATED, FIXED32, route, 2)
#define RouteDiscovery_CALLBACK NULL
#define RouteDiscovery_DEFAULT NULL
2021-02-17 13:06:23 +08:00
#define Routing_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MESSAGE, (variant,route_request,route_request), 1) \
X(a, STATIC, ONEOF, MESSAGE, (variant,route_reply,route_reply), 2) \
X(a, STATIC, ONEOF, UENUM, (variant,error_reason,error_reason), 3) \
X(a, STATIC, ONEOF, FIXED32, (variant,success_id,success_id), 4) \
X(a, STATIC, ONEOF, FIXED32, (variant,fail_id,fail_id), 5) \
X(a, STATIC, SINGULAR, FIXED32, original_id, 6)
#define Routing_CALLBACK NULL
#define Routing_DEFAULT NULL
#define Routing_variant_route_request_MSGTYPE RouteDiscovery
#define Routing_variant_route_reply_MSGTYPE RouteDiscovery
#define Data_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UENUM, portnum, 1) \
X(a, STATIC, SINGULAR, BYTES, payload, 2) \
2021-02-17 19:04:41 +08:00
X(a, STATIC, SINGULAR, BOOL, want_response, 3) \
X(a, STATIC, SINGULAR, FIXED32, dest, 4) \
X(a, STATIC, SINGULAR, FIXED32, source, 5)
2021-02-17 13:06:23 +08:00
#define Data_CALLBACK NULL
#define Data_DEFAULT NULL
2020-02-01 14:23:02 -08:00
#define MeshPacket_FIELDLIST(X, a) \
2021-02-17 13:06:23 +08:00
X(a, STATIC, SINGULAR, FIXED32, from, 1) \
X(a, STATIC, SINGULAR, FIXED32, to, 2) \
2021-02-22 12:57:26 +08:00
X(a, STATIC, SINGULAR, UINT32, channel, 3) \
2021-02-17 19:04:41 +08:00
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,decoded,decoded), 4) \
X(a, STATIC, ONEOF, BYTES, (payloadVariant,encrypted,encrypted), 5) \
2021-02-17 13:06:23 +08:00
X(a, STATIC, SINGULAR, FIXED32, id, 6) \
2021-02-17 19:04:41 +08:00
X(a, STATIC, SINGULAR, FIXED32, rx_time, 7) \
X(a, STATIC, SINGULAR, FLOAT, rx_snr, 8) \
X(a, STATIC, SINGULAR, UINT32, hop_limit, 9) \
X(a, STATIC, SINGULAR, BOOL, want_ack, 10) \
X(a, STATIC, SINGULAR, UENUM, priority, 11)
2020-02-01 14:23:02 -08:00
#define MeshPacket_CALLBACK NULL
#define MeshPacket_DEFAULT NULL
2021-02-17 13:06:23 +08:00
#define MeshPacket_payloadVariant_decoded_MSGTYPE Data
2020-02-01 11:56:32 -08:00
#define ChannelSettings_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, INT32, tx_power, 1) \
X(a, STATIC, SINGULAR, UENUM, modem_config, 3) \
2020-05-09 19:08:04 -07:00
X(a, STATIC, SINGULAR, BYTES, psk, 4) \
X(a, STATIC, SINGULAR, STRING, name, 5) \
X(a, STATIC, SINGULAR, UINT32, bandwidth, 6) \
X(a, STATIC, SINGULAR, UINT32, spread_factor, 7) \
X(a, STATIC, SINGULAR, UINT32, coding_rate, 8) \
2020-12-28 13:22:10 +08:00
X(a, STATIC, SINGULAR, UINT32, channel_num, 9) \
X(a, STATIC, SINGULAR, FIXED32, id, 10) \
X(a, STATIC, SINGULAR, BOOL, uplink_enabled, 16) \
X(a, STATIC, SINGULAR, BOOL, downlink_enabled, 17)
#define ChannelSettings_CALLBACK NULL
#define ChannelSettings_DEFAULT NULL
2021-02-16 15:41:52 +08:00
#define Channel_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UINT32, index, 1) \
X(a, STATIC, OPTIONAL, MESSAGE, settings, 2) \
X(a, STATIC, SINGULAR, UENUM, role, 3)
#define Channel_CALLBACK NULL
#define Channel_DEFAULT NULL
#define Channel_settings_MSGTYPE ChannelSettings
2020-02-01 14:23:02 -08:00
#define RadioConfig_FIELDLIST(X, a) \
2021-02-16 15:41:52 +08:00
X(a, STATIC, OPTIONAL, MESSAGE, preferences, 1)
#define RadioConfig_CALLBACK NULL
#define RadioConfig_DEFAULT NULL
#define RadioConfig_preferences_MSGTYPE RadioConfig_UserPreferences
#define RadioConfig_UserPreferences_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UINT32, position_broadcast_secs, 1) \
X(a, STATIC, SINGULAR, UINT32, send_owner_interval, 2) \
X(a, STATIC, SINGULAR, UINT32, wait_bluetooth_secs, 4) \
X(a, STATIC, SINGULAR, UINT32, screen_on_secs, 5) \
X(a, STATIC, SINGULAR, UINT32, phone_timeout_secs, 6) \
X(a, STATIC, SINGULAR, UINT32, phone_sds_timeout_sec, 7) \
X(a, STATIC, SINGULAR, UINT32, mesh_sds_timeout_secs, 8) \
X(a, STATIC, SINGULAR, UINT32, sds_secs, 9) \
X(a, STATIC, SINGULAR, UINT32, ls_secs, 10) \
X(a, STATIC, SINGULAR, UINT32, min_wake_secs, 11) \
X(a, STATIC, SINGULAR, STRING, wifi_ssid, 12) \
X(a, STATIC, SINGULAR, STRING, wifi_password, 13) \
X(a, STATIC, SINGULAR, BOOL, wifi_ap_mode, 14) \
X(a, STATIC, SINGULAR, UENUM, region, 15) \
2021-01-16 20:50:58 -08:00
X(a, STATIC, SINGULAR, UENUM, charge_current, 16) \
2020-09-30 07:47:16 -07:00
X(a, STATIC, SINGULAR, UENUM, location_share, 32) \
X(a, STATIC, SINGULAR, UENUM, gps_operation, 33) \
2020-10-05 14:43:44 +08:00
X(a, STATIC, SINGULAR, UINT32, gps_update_interval, 34) \
2020-09-30 07:47:16 -07:00
X(a, STATIC, SINGULAR, UINT32, gps_attempt_time, 36) \
X(a, STATIC, SINGULAR, BOOL, is_router, 37) \
X(a, STATIC, SINGULAR, BOOL, is_low_power, 38) \
2020-12-09 11:56:41 +08:00
X(a, STATIC, SINGULAR, BOOL, fixed_position, 39) \
X(a, STATIC, SINGULAR, BOOL, factory_reset, 100) \
2020-12-09 11:56:41 +08:00
X(a, STATIC, SINGULAR, BOOL, debug_log_enabled, 101) \
2021-01-16 20:50:58 -08:00
X(a, STATIC, REPEATED, UINT32, ignore_incoming, 103) \
X(a, STATIC, SINGULAR, BOOL, serialplugin_enabled, 120) \
X(a, STATIC, SINGULAR, BOOL, serialplugin_echo, 121) \
X(a, STATIC, SINGULAR, UINT32, serialplugin_rxd, 122) \
X(a, STATIC, SINGULAR, UINT32, serialplugin_txd, 123) \
2021-01-29 10:14:36 +08:00
X(a, STATIC, SINGULAR, UINT32, serialplugin_timeout, 124) \
X(a, STATIC, SINGULAR, UINT32, serialplugin_mode, 125) \
X(a, STATIC, SINGULAR, BOOL, ext_notification_plugin_enabled, 126) \
X(a, STATIC, SINGULAR, UINT32, ext_notification_plugin_output_ms, 127) \
X(a, STATIC, SINGULAR, UINT32, ext_notification_plugin_output, 128) \
X(a, STATIC, SINGULAR, BOOL, ext_notification_plugin_active, 129) \
X(a, STATIC, SINGULAR, BOOL, ext_notification_plugin_alert_message, 130) \
2021-02-08 17:57:45 +08:00
X(a, STATIC, SINGULAR, BOOL, ext_notification_plugin_alert_bell, 131) \
X(a, STATIC, SINGULAR, BOOL, range_test_plugin_enabled, 132) \
X(a, STATIC, SINGULAR, UINT32, range_test_plugin_sender, 133) \
X(a, STATIC, SINGULAR, BOOL, range_test_plugin_save, 134) \
X(a, STATIC, SINGULAR, BOOL, store_forward_plugin_enabled, 136) \
X(a, STATIC, SINGULAR, UINT32, store_forward_plugin_records, 137)
#define RadioConfig_UserPreferences_CALLBACK NULL
#define RadioConfig_UserPreferences_DEFAULT NULL
2020-02-01 11:56:32 -08:00
2020-02-01 14:23:02 -08:00
#define NodeInfo_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UINT32, num, 1) \
2020-02-01 11:56:32 -08:00
X(a, STATIC, OPTIONAL, MESSAGE, user, 2) \
2020-02-04 09:00:17 -08:00
X(a, STATIC, OPTIONAL, MESSAGE, position, 3) \
X(a, STATIC, SINGULAR, UINT32, next_hop, 5) \
2020-04-30 12:37:58 -07:00
X(a, STATIC, SINGULAR, FLOAT, snr, 7)
2020-02-01 14:23:02 -08:00
#define NodeInfo_CALLBACK NULL
#define NodeInfo_DEFAULT NULL
#define NodeInfo_user_MSGTYPE User
#define NodeInfo_position_MSGTYPE Position
2020-02-01 11:56:32 -08:00
#define MyNodeInfo_FIELDLIST(X, a) \
2020-05-21 20:31:22 -07:00
X(a, STATIC, SINGULAR, UINT32, my_node_num, 1) \
X(a, STATIC, SINGULAR, BOOL, has_gps, 2) \
2021-02-16 15:41:52 +08:00
X(a, STATIC, SINGULAR, UINT32, num_bands, 3) \
2020-03-03 08:23:58 -08:00
X(a, STATIC, SINGULAR, STRING, region, 4) \
X(a, STATIC, SINGULAR, STRING, hw_model, 5) \
X(a, STATIC, SINGULAR, STRING, firmware_version, 6) \
X(a, STATIC, SINGULAR, UENUM, error_code, 7) \
X(a, STATIC, SINGULAR, UINT32, error_address, 8) \
X(a, STATIC, SINGULAR, UINT32, error_count, 9) \
X(a, STATIC, SINGULAR, UINT32, message_timeout_msec, 13) \
2021-02-16 15:41:52 +08:00
X(a, STATIC, SINGULAR, UINT32, min_app_version, 14) \
X(a, STATIC, SINGULAR, UINT32, max_channels, 15)
#define MyNodeInfo_CALLBACK NULL
#define MyNodeInfo_DEFAULT NULL
#define LogRecord_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, STRING, message, 1) \
X(a, STATIC, SINGULAR, FIXED32, time, 2) \
X(a, STATIC, SINGULAR, STRING, source, 3) \
X(a, STATIC, SINGULAR, UENUM, level, 4)
#define LogRecord_CALLBACK NULL
#define LogRecord_DEFAULT NULL
2020-02-01 14:23:02 -08:00
#define FromRadio_FIELDLIST(X, a) \
2020-02-01 11:56:32 -08:00
X(a, STATIC, SINGULAR, UINT32, num, 1) \
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,my_info,my_info), 3) \
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,node_info,node_info), 4) \
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,radio,radio), 6) \
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,log_record,log_record), 7) \
X(a, STATIC, ONEOF, UINT32, (payloadVariant,config_complete_id,config_complete_id), 8) \
X(a, STATIC, ONEOF, BOOL, (payloadVariant,rebooted,rebooted), 9) \
2021-02-17 13:06:23 +08:00
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,channel,channel), 10) \
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,packet,packet), 11)
2020-02-01 14:23:02 -08:00
#define FromRadio_CALLBACK NULL
#define FromRadio_DEFAULT NULL
2021-02-08 17:57:45 +08:00
#define FromRadio_payloadVariant_my_info_MSGTYPE MyNodeInfo
#define FromRadio_payloadVariant_node_info_MSGTYPE NodeInfo
#define FromRadio_payloadVariant_radio_MSGTYPE RadioConfig
#define FromRadio_payloadVariant_log_record_MSGTYPE LogRecord
2021-02-16 15:41:52 +08:00
#define FromRadio_payloadVariant_channel_MSGTYPE Channel
2021-02-17 13:06:23 +08:00
#define FromRadio_payloadVariant_packet_MSGTYPE MeshPacket
2020-02-01 11:56:32 -08:00
2020-02-01 14:23:02 -08:00
#define ToRadio_FIELDLIST(X, a) \
2021-02-17 13:06:23 +08:00
X(a, STATIC, ONEOF, MESSAGE, (payloadVariant,packet,packet), 2) \
2021-02-21 14:03:44 +08:00
X(a, STATIC, ONEOF, UINT32, (payloadVariant,want_config_id,want_config_id), 100)
2020-02-01 14:23:02 -08:00
#define ToRadio_CALLBACK NULL
#define ToRadio_DEFAULT NULL
2021-02-08 17:57:45 +08:00
#define ToRadio_payloadVariant_packet_MSGTYPE MeshPacket
2021-02-21 14:03:44 +08:00
#define AdminMessage_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MESSAGE, (variant,set_radio,set_radio), 1) \
X(a, STATIC, ONEOF, MESSAGE, (variant,set_owner,set_owner), 2) \
X(a, STATIC, ONEOF, MESSAGE, (variant,set_channel,set_channel), 3)
#define AdminMessage_CALLBACK NULL
#define AdminMessage_DEFAULT NULL
#define AdminMessage_variant_set_radio_MSGTYPE RadioConfig
#define AdminMessage_variant_set_owner_MSGTYPE User
#define AdminMessage_variant_set_channel_MSGTYPE Channel
2020-02-01 14:23:02 -08:00
extern const pb_msgdesc_t Position_msg;
extern const pb_msgdesc_t User_msg;
extern const pb_msgdesc_t RouteDiscovery_msg;
2021-02-17 13:06:23 +08:00
extern const pb_msgdesc_t Routing_msg;
extern const pb_msgdesc_t Data_msg;
2020-02-01 14:23:02 -08:00
extern const pb_msgdesc_t MeshPacket_msg;
extern const pb_msgdesc_t ChannelSettings_msg;
2021-02-16 15:41:52 +08:00
extern const pb_msgdesc_t Channel_msg;
2020-02-01 14:23:02 -08:00
extern const pb_msgdesc_t RadioConfig_msg;
extern const pb_msgdesc_t RadioConfig_UserPreferences_msg;
2020-02-01 14:23:02 -08:00
extern const pb_msgdesc_t NodeInfo_msg;
2020-02-03 10:00:53 -08:00
extern const pb_msgdesc_t MyNodeInfo_msg;
extern const pb_msgdesc_t LogRecord_msg;
2020-02-01 14:23:02 -08:00
extern const pb_msgdesc_t FromRadio_msg;
extern const pb_msgdesc_t ToRadio_msg;
2021-02-21 14:03:44 +08:00
extern const pb_msgdesc_t AdminMessage_msg;
2020-02-01 11:56:32 -08:00
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
2020-02-01 14:23:02 -08:00
#define Position_fields &Position_msg
#define User_fields &User_msg
#define RouteDiscovery_fields &RouteDiscovery_msg
2021-02-17 13:06:23 +08:00
#define Routing_fields &Routing_msg
#define Data_fields &Data_msg
2020-02-01 14:23:02 -08:00
#define MeshPacket_fields &MeshPacket_msg
#define ChannelSettings_fields &ChannelSettings_msg
2021-02-16 15:41:52 +08:00
#define Channel_fields &Channel_msg
2020-02-01 14:23:02 -08:00
#define RadioConfig_fields &RadioConfig_msg
#define RadioConfig_UserPreferences_fields &RadioConfig_UserPreferences_msg
2020-02-01 14:23:02 -08:00
#define NodeInfo_fields &NodeInfo_msg
2020-02-03 10:00:53 -08:00
#define MyNodeInfo_fields &MyNodeInfo_msg
#define LogRecord_fields &LogRecord_msg
2020-02-01 14:23:02 -08:00
#define FromRadio_fields &FromRadio_msg
#define ToRadio_fields &ToRadio_msg
2021-02-21 14:03:44 +08:00
#define AdminMessage_fields &AdminMessage_msg
2020-02-01 11:56:32 -08:00
/* Maximum encoded size of messages (where known) */
2021-02-16 15:41:52 +08:00
#define Position_size 37
2020-02-04 09:00:17 -08:00
#define User_size 72
2021-02-17 13:06:23 +08:00
#define RouteDiscovery_size 40
#define Routing_size 47
2021-02-22 10:26:11 +08:00
#define Data_size 255
2021-02-22 12:57:26 +08:00
#define MeshPacket_size 297
2021-02-22 10:26:11 +08:00
#define ChannelSettings_size 87
#define Channel_size 94
2021-02-16 15:41:52 +08:00
#define RadioConfig_size 308
2021-02-08 17:57:45 +08:00
#define RadioConfig_UserPreferences_size 305
2021-02-16 15:41:52 +08:00
#define NodeInfo_size 130
#define MyNodeInfo_size 89
#define LogRecord_size 81
2021-02-17 13:06:23 +08:00
#define FromRadio_size 317
2021-02-22 12:57:26 +08:00
#define ToRadio_size 300
2021-02-21 14:03:44 +08:00
#define AdminMessage_size 311
2020-02-01 11:56:32 -08:00
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif