|
|
|
@ -56,6 +56,12 @@ typedef enum _Config_DisplayConfig_DisplayUnits {
|
|
|
|
|
Config_DisplayConfig_DisplayUnits_IMPERIAL = 1
|
|
|
|
|
} Config_DisplayConfig_DisplayUnits;
|
|
|
|
|
|
|
|
|
|
typedef enum _Config_DisplayConfig_OledType {
|
|
|
|
|
Config_DisplayConfig_OledType_OLED_AUTO = 0,
|
|
|
|
|
Config_DisplayConfig_OledType_OLED_SSD1306 = 1,
|
|
|
|
|
Config_DisplayConfig_OledType_OLED_SH1106 = 2
|
|
|
|
|
} Config_DisplayConfig_OledType;
|
|
|
|
|
|
|
|
|
|
typedef enum _Config_LoRaConfig_RegionCode {
|
|
|
|
|
Config_LoRaConfig_RegionCode_UNSET = 0,
|
|
|
|
|
Config_LoRaConfig_RegionCode_US = 1,
|
|
|
|
@ -109,6 +115,7 @@ typedef struct _Config_DisplayConfig {
|
|
|
|
|
bool compass_north_top;
|
|
|
|
|
bool flip_screen;
|
|
|
|
|
Config_DisplayConfig_DisplayUnits units;
|
|
|
|
|
Config_DisplayConfig_OledType oled;
|
|
|
|
|
} Config_DisplayConfig;
|
|
|
|
|
|
|
|
|
|
typedef struct _Config_LoRaConfig {
|
|
|
|
@ -205,6 +212,10 @@ typedef struct _Config {
|
|
|
|
|
#define _Config_DisplayConfig_DisplayUnits_MAX Config_DisplayConfig_DisplayUnits_IMPERIAL
|
|
|
|
|
#define _Config_DisplayConfig_DisplayUnits_ARRAYSIZE ((Config_DisplayConfig_DisplayUnits)(Config_DisplayConfig_DisplayUnits_IMPERIAL+1))
|
|
|
|
|
|
|
|
|
|
#define _Config_DisplayConfig_OledType_MIN Config_DisplayConfig_OledType_OLED_AUTO
|
|
|
|
|
#define _Config_DisplayConfig_OledType_MAX Config_DisplayConfig_OledType_OLED_SH1106
|
|
|
|
|
#define _Config_DisplayConfig_OledType_ARRAYSIZE ((Config_DisplayConfig_OledType)(Config_DisplayConfig_OledType_OLED_SH1106+1))
|
|
|
|
|
|
|
|
|
|
#define _Config_LoRaConfig_RegionCode_MIN Config_LoRaConfig_RegionCode_UNSET
|
|
|
|
|
#define _Config_LoRaConfig_RegionCode_MAX Config_LoRaConfig_RegionCode_LORA_24
|
|
|
|
|
#define _Config_LoRaConfig_RegionCode_ARRAYSIZE ((Config_LoRaConfig_RegionCode)(Config_LoRaConfig_RegionCode_LORA_24+1))
|
|
|
|
@ -229,7 +240,7 @@ extern "C" {
|
|
|
|
|
#define Config_PowerConfig_init_default {0, 0, 0, 0, 0, 0, 0, 0}
|
|
|
|
|
#define Config_NetworkConfig_init_default {0, "", "", "", 0, _Config_NetworkConfig_EthMode_MIN, false, Config_NetworkConfig_IpV4Config_init_default}
|
|
|
|
|
#define Config_NetworkConfig_IpV4Config_init_default {0, 0, 0, 0}
|
|
|
|
|
#define Config_DisplayConfig_init_default {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0, 0, _Config_DisplayConfig_DisplayUnits_MIN}
|
|
|
|
|
#define Config_DisplayConfig_init_default {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0, 0, _Config_DisplayConfig_DisplayUnits_MIN, _Config_DisplayConfig_OledType_MIN}
|
|
|
|
|
#define Config_LoRaConfig_init_default {0, _Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, 0, 0, {0, 0, 0}}
|
|
|
|
|
#define Config_BluetoothConfig_init_default {0, _Config_BluetoothConfig_PairingMode_MIN, 0}
|
|
|
|
|
#define Config_init_zero {0, {Config_DeviceConfig_init_zero}}
|
|
|
|
@ -238,7 +249,7 @@ extern "C" {
|
|
|
|
|
#define Config_PowerConfig_init_zero {0, 0, 0, 0, 0, 0, 0, 0}
|
|
|
|
|
#define Config_NetworkConfig_init_zero {0, "", "", "", 0, _Config_NetworkConfig_EthMode_MIN, false, Config_NetworkConfig_IpV4Config_init_zero}
|
|
|
|
|
#define Config_NetworkConfig_IpV4Config_init_zero {0, 0, 0, 0}
|
|
|
|
|
#define Config_DisplayConfig_init_zero {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0, 0, _Config_DisplayConfig_DisplayUnits_MIN}
|
|
|
|
|
#define Config_DisplayConfig_init_zero {0, _Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0, 0, _Config_DisplayConfig_DisplayUnits_MIN, _Config_DisplayConfig_OledType_MIN}
|
|
|
|
|
#define Config_LoRaConfig_init_zero {0, _Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, 0, 0, {0, 0, 0}}
|
|
|
|
|
#define Config_BluetoothConfig_init_zero {0, _Config_BluetoothConfig_PairingMode_MIN, 0}
|
|
|
|
|
|
|
|
|
@ -255,6 +266,7 @@ extern "C" {
|
|
|
|
|
#define Config_DisplayConfig_compass_north_top_tag 4
|
|
|
|
|
#define Config_DisplayConfig_flip_screen_tag 5
|
|
|
|
|
#define Config_DisplayConfig_units_tag 6
|
|
|
|
|
#define Config_DisplayConfig_oled_tag 7
|
|
|
|
|
#define Config_LoRaConfig_use_preset_tag 1
|
|
|
|
|
#define Config_LoRaConfig_modem_preset_tag 2
|
|
|
|
|
#define Config_LoRaConfig_bandwidth_tag 3
|
|
|
|
@ -376,7 +388,8 @@ X(a, STATIC, SINGULAR, UENUM, gps_format, 2) \
|
|
|
|
|
X(a, STATIC, SINGULAR, UINT32, auto_screen_carousel_secs, 3) \
|
|
|
|
|
X(a, STATIC, SINGULAR, BOOL, compass_north_top, 4) \
|
|
|
|
|
X(a, STATIC, SINGULAR, BOOL, flip_screen, 5) \
|
|
|
|
|
X(a, STATIC, SINGULAR, UENUM, units, 6)
|
|
|
|
|
X(a, STATIC, SINGULAR, UENUM, units, 6) \
|
|
|
|
|
X(a, STATIC, SINGULAR, UENUM, oled, 7)
|
|
|
|
|
#define Config_DisplayConfig_CALLBACK NULL
|
|
|
|
|
#define Config_DisplayConfig_DEFAULT NULL
|
|
|
|
|
|
|
|
|
@ -427,7 +440,7 @@ extern const pb_msgdesc_t Config_BluetoothConfig_msg;
|
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
|
|
|
|
#define Config_BluetoothConfig_size 10
|
|
|
|
|
#define Config_DeviceConfig_size 6
|
|
|
|
|
#define Config_DisplayConfig_size 20
|
|
|
|
|
#define Config_DisplayConfig_size 22
|
|
|
|
|
#define Config_LoRaConfig_size 68
|
|
|
|
|
#define Config_NetworkConfig_IpV4Config_size 20
|
|
|
|
|
#define Config_NetworkConfig_size 161
|
|
|
|
|