2022-05-30 19:00:01 +00:00
|
|
|
/* Automatically generated nanopb header */
|
2022-06-17 13:37:52 +00:00
|
|
|
/* Generated by nanopb-0.4.6 */
|
2022-05-30 19:00:01 +00:00
|
|
|
|
|
|
|
#ifndef PB_LOCALONLY_PB_H_INCLUDED
|
|
|
|
#define PB_LOCALONLY_PB_H_INCLUDED
|
|
|
|
#include <pb.h>
|
|
|
|
#include "config.pb.h"
|
|
|
|
#include "module_config.pb.h"
|
|
|
|
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 40
|
|
|
|
#error Regenerate this file with the current version of nanopb generator.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Struct definitions */
|
|
|
|
typedef struct _LocalConfig {
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Device */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_device;
|
2022-06-17 13:37:52 +00:00
|
|
|
Config_DeviceConfig device;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the GPS Position */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_position;
|
2022-06-17 13:37:52 +00:00
|
|
|
Config_PositionConfig position;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Power settings */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_power;
|
2022-06-17 13:37:52 +00:00
|
|
|
Config_PowerConfig power;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Wifi Settings */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_wifi;
|
2022-06-17 13:37:52 +00:00
|
|
|
Config_WiFiConfig wifi;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Display */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_display;
|
2022-06-17 13:37:52 +00:00
|
|
|
Config_DisplayConfig display;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Lora Radio */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_lora;
|
2022-06-17 13:37:52 +00:00
|
|
|
Config_LoRaConfig lora;
|
2022-08-16 02:06:55 +00:00
|
|
|
/* The part of the config that is specific to the Bluetooth settings */
|
|
|
|
bool has_bluetooth;
|
|
|
|
Config_BluetoothConfig bluetooth;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* A version integer used to invalidate old save files when we make
|
|
|
|
incompatible changes This integer is set at build time and is private to
|
|
|
|
NodeDB.cpp in the device code. */
|
2022-06-17 13:37:52 +00:00
|
|
|
uint32_t version;
|
2022-05-30 19:00:01 +00:00
|
|
|
} LocalConfig;
|
|
|
|
|
|
|
|
typedef struct _LocalModuleConfig {
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the MQTT module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_mqtt;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_MQTTConfig mqtt;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Serial module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_serial;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_SerialConfig serial;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the ExternalNotification module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_external_notification;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_ExternalNotificationConfig external_notification;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Store & Forward module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_store_forward;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_StoreForwardConfig store_forward;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the RangeTest module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_range_test;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_RangeTestConfig range_test;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Telemetry module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_telemetry;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_TelemetryConfig telemetry;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* The part of the config that is specific to the Canned Message module */
|
2022-05-30 19:00:01 +00:00
|
|
|
bool has_canned_message;
|
2022-06-17 13:37:52 +00:00
|
|
|
ModuleConfig_CannedMessageConfig canned_message;
|
2022-06-15 14:44:33 +00:00
|
|
|
/* A version integer used to invalidate old save files when we make
|
|
|
|
incompatible changes This integer is set at build time and is private to
|
|
|
|
NodeDB.cpp in the device code. */
|
2022-06-17 13:37:52 +00:00
|
|
|
uint32_t version;
|
2022-05-30 19:00:01 +00:00
|
|
|
} LocalModuleConfig;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Initializer values for message structs */
|
2022-08-16 02:06:55 +00:00
|
|
|
#define LocalConfig_init_default {false, Config_DeviceConfig_init_default, false, Config_PositionConfig_init_default, false, Config_PowerConfig_init_default, false, Config_WiFiConfig_init_default, false, Config_DisplayConfig_init_default, false, Config_LoRaConfig_init_default, false, Config_BluetoothConfig_init_default, 0}
|
2022-06-15 14:44:33 +00:00
|
|
|
#define LocalModuleConfig_init_default {false, ModuleConfig_MQTTConfig_init_default, false, ModuleConfig_SerialConfig_init_default, false, ModuleConfig_ExternalNotificationConfig_init_default, false, ModuleConfig_StoreForwardConfig_init_default, false, ModuleConfig_RangeTestConfig_init_default, false, ModuleConfig_TelemetryConfig_init_default, false, ModuleConfig_CannedMessageConfig_init_default, 0}
|
2022-08-16 02:06:55 +00:00
|
|
|
#define LocalConfig_init_zero {false, Config_DeviceConfig_init_zero, false, Config_PositionConfig_init_zero, false, Config_PowerConfig_init_zero, false, Config_WiFiConfig_init_zero, false, Config_DisplayConfig_init_zero, false, Config_LoRaConfig_init_zero, false, Config_BluetoothConfig_init_zero, 0}
|
2022-06-15 14:44:33 +00:00
|
|
|
#define LocalModuleConfig_init_zero {false, ModuleConfig_MQTTConfig_init_zero, false, ModuleConfig_SerialConfig_init_zero, false, ModuleConfig_ExternalNotificationConfig_init_zero, false, ModuleConfig_StoreForwardConfig_init_zero, false, ModuleConfig_RangeTestConfig_init_zero, false, ModuleConfig_TelemetryConfig_init_zero, false, ModuleConfig_CannedMessageConfig_init_zero, 0}
|
2022-05-30 19:00:01 +00:00
|
|
|
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
|
|
|
#define LocalConfig_device_tag 1
|
|
|
|
#define LocalConfig_position_tag 2
|
|
|
|
#define LocalConfig_power_tag 3
|
|
|
|
#define LocalConfig_wifi_tag 4
|
|
|
|
#define LocalConfig_display_tag 5
|
|
|
|
#define LocalConfig_lora_tag 6
|
2022-08-16 02:06:55 +00:00
|
|
|
#define LocalConfig_bluetooth_tag 7
|
|
|
|
#define LocalConfig_version_tag 8
|
2022-05-30 19:00:01 +00:00
|
|
|
#define LocalModuleConfig_mqtt_tag 1
|
|
|
|
#define LocalModuleConfig_serial_tag 2
|
|
|
|
#define LocalModuleConfig_external_notification_tag 3
|
|
|
|
#define LocalModuleConfig_store_forward_tag 4
|
|
|
|
#define LocalModuleConfig_range_test_tag 5
|
|
|
|
#define LocalModuleConfig_telemetry_tag 6
|
|
|
|
#define LocalModuleConfig_canned_message_tag 7
|
2022-06-15 14:44:33 +00:00
|
|
|
#define LocalModuleConfig_version_tag 8
|
2022-05-30 19:00:01 +00:00
|
|
|
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
|
|
#define LocalConfig_FIELDLIST(X, a) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, device, 1) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, position, 2) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, power, 3) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, wifi, 4) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, display, 5) \
|
2022-06-15 14:44:33 +00:00
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, lora, 6) \
|
2022-08-16 02:06:55 +00:00
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, bluetooth, 7) \
|
|
|
|
X(a, STATIC, SINGULAR, UINT32, version, 8)
|
2022-05-30 19:00:01 +00:00
|
|
|
#define LocalConfig_CALLBACK NULL
|
|
|
|
#define LocalConfig_DEFAULT NULL
|
|
|
|
#define LocalConfig_device_MSGTYPE Config_DeviceConfig
|
|
|
|
#define LocalConfig_position_MSGTYPE Config_PositionConfig
|
|
|
|
#define LocalConfig_power_MSGTYPE Config_PowerConfig
|
|
|
|
#define LocalConfig_wifi_MSGTYPE Config_WiFiConfig
|
|
|
|
#define LocalConfig_display_MSGTYPE Config_DisplayConfig
|
|
|
|
#define LocalConfig_lora_MSGTYPE Config_LoRaConfig
|
2022-08-16 02:06:55 +00:00
|
|
|
#define LocalConfig_bluetooth_MSGTYPE Config_BluetoothConfig
|
2022-05-30 19:00:01 +00:00
|
|
|
|
|
|
|
#define LocalModuleConfig_FIELDLIST(X, a) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, mqtt, 1) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, serial, 2) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, external_notification, 3) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, store_forward, 4) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, range_test, 5) \
|
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, telemetry, 6) \
|
2022-06-15 14:44:33 +00:00
|
|
|
X(a, STATIC, OPTIONAL, MESSAGE, canned_message, 7) \
|
|
|
|
X(a, STATIC, SINGULAR, UINT32, version, 8)
|
2022-05-30 19:00:01 +00:00
|
|
|
#define LocalModuleConfig_CALLBACK NULL
|
|
|
|
#define LocalModuleConfig_DEFAULT NULL
|
|
|
|
#define LocalModuleConfig_mqtt_MSGTYPE ModuleConfig_MQTTConfig
|
|
|
|
#define LocalModuleConfig_serial_MSGTYPE ModuleConfig_SerialConfig
|
|
|
|
#define LocalModuleConfig_external_notification_MSGTYPE ModuleConfig_ExternalNotificationConfig
|
|
|
|
#define LocalModuleConfig_store_forward_MSGTYPE ModuleConfig_StoreForwardConfig
|
|
|
|
#define LocalModuleConfig_range_test_MSGTYPE ModuleConfig_RangeTestConfig
|
|
|
|
#define LocalModuleConfig_telemetry_MSGTYPE ModuleConfig_TelemetryConfig
|
|
|
|
#define LocalModuleConfig_canned_message_MSGTYPE ModuleConfig_CannedMessageConfig
|
|
|
|
|
|
|
|
extern const pb_msgdesc_t LocalConfig_msg;
|
|
|
|
extern const pb_msgdesc_t LocalModuleConfig_msg;
|
|
|
|
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
|
|
#define LocalConfig_fields &LocalConfig_msg
|
|
|
|
#define LocalModuleConfig_fields &LocalModuleConfig_msg
|
|
|
|
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
2022-08-16 02:06:55 +00:00
|
|
|
#define LocalConfig_size 333
|
2022-09-03 19:06:10 +00:00
|
|
|
#define LocalModuleConfig_size 270
|
2022-05-30 19:00:01 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|