/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.5 */ #ifndef PB_LOCALONLY_PB_H_INCLUDED #define PB_LOCALONLY_PB_H_INCLUDED #include #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 { /* TODO: REPLACE */ bool has_device; Config_DeviceConfig device; /* TODO: REPLACE */ bool has_position; Config_PositionConfig position; /* TODO: REPLACE */ bool has_power; Config_PowerConfig power; /* TODO: REPLACE */ bool has_wifi; Config_WiFiConfig wifi; /* TODO: REPLACE */ bool has_display; Config_DisplayConfig display; /* TODO: REPLACE */ bool has_lora; Config_LoRaConfig lora; } LocalConfig; typedef struct _LocalModuleConfig { /* TODO: REPLACE */ bool has_mqtt; ModuleConfig_MQTTConfig mqtt; /* TODO: REPLACE */ bool has_serial; ModuleConfig_SerialConfig serial; /* TODO: REPLACE */ bool has_external_notification; ModuleConfig_ExternalNotificationConfig external_notification; /* TODO: REPLACE */ bool has_store_forward; ModuleConfig_StoreForwardConfig store_forward; /* TODO: REPLACE */ bool has_range_test; ModuleConfig_RangeTestConfig range_test; /* TODO: REPLACE */ bool has_telemetry; ModuleConfig_TelemetryConfig telemetry; /* TODO: REPLACE */ bool has_canned_message; ModuleConfig_CannedMessageConfig canned_message; } LocalModuleConfig; #ifdef __cplusplus extern "C" { #endif /* Initializer values for message structs */ #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} #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} #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} #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} /* 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 #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 /* 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) \ X(a, STATIC, OPTIONAL, MESSAGE, lora, 6) #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 #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) \ X(a, STATIC, OPTIONAL, MESSAGE, canned_message, 7) #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) */ #define LocalConfig_size 317 #define LocalModuleConfig_size 282 #ifdef __cplusplus } /* extern "C" */ #endif #endif