Add "board" field and remove a few useless ones
This commit is contained in:
@@ -834,6 +834,7 @@ PACK(struct RadioData {
|
|||||||
|
|
||||||
// Real attributes
|
// Real attributes
|
||||||
NOBACKUP(uint8_t version);
|
NOBACKUP(uint8_t version);
|
||||||
|
CUST_ATTR(board,nullptr,w_board);
|
||||||
NOBACKUP(uint16_t variant SKIP);
|
NOBACKUP(uint16_t variant SKIP);
|
||||||
CalibData calib[NUM_STICKS + STORAGE_NUM_POTS + STORAGE_NUM_SLIDERS + STORAGE_NUM_MOUSE_ANALOGS] NO_IDX;
|
CalibData calib[NUM_STICKS + STORAGE_NUM_POTS + STORAGE_NUM_SLIDERS + STORAGE_NUM_MOUSE_ANALOGS] NO_IDX;
|
||||||
NOBACKUP(uint16_t chkSum SKIP);
|
NOBACKUP(uint16_t chkSum SKIP);
|
||||||
@@ -867,12 +868,10 @@ PACK(struct RadioData {
|
|||||||
NOBACKUP(uint8_t templateSetup); // RETA order for receiver channels
|
NOBACKUP(uint8_t templateSetup); // RETA order for receiver channels
|
||||||
NOBACKUP(int8_t PPM_Multiplier);
|
NOBACKUP(int8_t PPM_Multiplier);
|
||||||
NOBACKUP(int8_t hapticLength CUST(r_5pos,w_5pos));
|
NOBACKUP(int8_t hapticLength CUST(r_5pos,w_5pos));
|
||||||
N_HORUS_FIELD(N_TARANIS_FIELD(uint8_t spare2 SKIP));
|
|
||||||
N_HORUS_FIELD(N_TARANIS_FIELD(uint8_t stickReverse));
|
|
||||||
NOBACKUP(int8_t beepLength:3 CUST(r_5pos,w_5pos));
|
NOBACKUP(int8_t beepLength:3 CUST(r_5pos,w_5pos));
|
||||||
NOBACKUP(int8_t hapticStrength:3 CUST(r_5pos,w_5pos));
|
NOBACKUP(int8_t hapticStrength:3 CUST(r_5pos,w_5pos));
|
||||||
NOBACKUP(uint8_t gpsFormat:1);
|
NOBACKUP(uint8_t gpsFormat:1);
|
||||||
NOBACKUP(uint8_t unexpectedShutdown:1);
|
NOBACKUP(uint8_t unexpectedShutdown:1 SKIP);
|
||||||
NOBACKUP(uint8_t speakerPitch CUST(r_spPitch,w_spPitch));
|
NOBACKUP(uint8_t speakerPitch CUST(r_spPitch,w_spPitch));
|
||||||
NOBACKUP(int8_t speakerVolume CUST(r_vol,w_vol));
|
NOBACKUP(int8_t speakerVolume CUST(r_vol,w_vol));
|
||||||
NOBACKUP(int8_t vBatMin CUST(r_vbat_min,w_vbat_min));
|
NOBACKUP(int8_t vBatMin CUST(r_vbat_min,w_vbat_min));
|
||||||
|
|||||||
@@ -26,6 +26,12 @@
|
|||||||
#define GVAR_SMALL 128
|
#define GVAR_SMALL 128
|
||||||
#define VOLUME_LEVEL_DEF 12
|
#define VOLUME_LEVEL_DEF 12
|
||||||
|
|
||||||
|
bool w_board(void* user, uint8_t* data, uint32_t bitoffs,
|
||||||
|
yaml_writer_func wf, void* opaque)
|
||||||
|
{
|
||||||
|
return wf(opaque, FLAVOUR, sizeof(FLAVOUR)-1);
|
||||||
|
}
|
||||||
|
|
||||||
#define in_read_weight nullptr
|
#define in_read_weight nullptr
|
||||||
|
|
||||||
bool in_write_weight(const YamlNode* node, uint32_t val, yaml_writer_func wf,
|
bool in_write_weight(const YamlNode* node, uint32_t val, yaml_writer_func wf,
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ static const struct YamlNode struct_OpenTxTheme__PersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -394,7 +395,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -363,7 +364,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -363,7 +364,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -363,7 +364,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -363,7 +364,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -378,6 +378,7 @@ static const struct YamlNode struct_OpenTxTheme__PersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 15, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 15, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -411,7 +412,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -378,6 +378,7 @@ static const struct YamlNode struct_OpenTxTheme__PersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 15, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 15, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -411,7 +412,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -363,7 +364,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -370,7 +371,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 12, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 12, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -409,7 +410,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -315,6 +315,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -350,7 +351,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -358,7 +359,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -355,7 +356,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -357,7 +358,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
// Use definitions from v220 conversions as long as nothing changes
|
// Use definitions from v220 conversions as long as nothing changes
|
||||||
|
|
||||||
namespace yaml_conv_220 {
|
namespace yaml_conv_220 {
|
||||||
|
bool w_board(void* user, uint8_t* data, uint32_t bitoffs, yaml_writer_func wf, void* opaque);
|
||||||
|
|
||||||
bool in_write_weight(const YamlNode* node, uint32_t val, yaml_writer_func wf, void* opaque);
|
bool in_write_weight(const YamlNode* node, uint32_t val, yaml_writer_func wf, void* opaque);
|
||||||
|
|
||||||
bool output_source_1_param(const char* src_prefix, size_t src_len, uint32_t n,
|
bool output_source_1_param(const char* src_prefix, size_t src_len, uint32_t n,
|
||||||
@@ -135,6 +137,12 @@ static inline void check_yaml_funcs()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool w_board(void* user, uint8_t* data, uint32_t bitoffs,
|
||||||
|
yaml_writer_func wf, void* opaque)
|
||||||
|
{
|
||||||
|
return yaml_conv_220::w_board(user, data, bitoffs, wf, opaque);
|
||||||
|
}
|
||||||
|
|
||||||
#define GVAR_SMALL 128
|
#define GVAR_SMALL 128
|
||||||
|
|
||||||
static uint32_t in_read_weight(const YamlNode* node, const char* val, uint8_t val_len)
|
static uint32_t in_read_weight(const YamlNode* node, const char* val, uint8_t val_len)
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ static const struct YamlNode struct_OpenTxTheme__PersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -390,12 +391,10 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_UNSIGNED( "templateSetup", 8 ),
|
YAML_UNSIGNED( "templateSetup", 8 ),
|
||||||
YAML_SIGNED( "PPM_Multiplier", 8 ),
|
YAML_SIGNED( "PPM_Multiplier", 8 ),
|
||||||
YAML_SIGNED_CUST( "hapticLength", 8, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticLength", 8, r_5pos, w_5pos ),
|
||||||
YAML_PADDING( 8 ),
|
|
||||||
YAML_UNSIGNED( "stickReverse", 8 ),
|
|
||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -364,7 +365,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -364,7 +365,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -364,7 +365,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -364,7 +365,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -380,6 +380,7 @@ static const struct YamlNode struct_OpenTxTheme__PersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 17, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 17, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -414,7 +415,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -378,6 +378,7 @@ static const struct YamlNode struct_OpenTxTheme__PersistentData[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 15, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 15, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -412,7 +413,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -364,7 +365,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 9, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -371,7 +372,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 12, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 12, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -410,7 +411,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -315,6 +315,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -351,7 +352,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 5, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -359,7 +360,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -356,7 +357,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ static const struct YamlNode struct_string_24[] = {
|
|||||||
};
|
};
|
||||||
static const struct YamlNode struct_RadioData[] = {
|
static const struct YamlNode struct_RadioData[] = {
|
||||||
YAML_UNSIGNED( "version", 8 ),
|
YAML_UNSIGNED( "version", 8 ),
|
||||||
|
YAML_CUSTOM("board",nullptr,w_board),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
YAML_ARRAY("calib", 48, 6, struct_CalibData, NULL),
|
||||||
YAML_PADDING( 16 ),
|
YAML_PADDING( 16 ),
|
||||||
@@ -358,7 +359,7 @@ static const struct YamlNode struct_RadioData[] = {
|
|||||||
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "beepLength", 3, r_5pos, w_5pos ),
|
||||||
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
YAML_SIGNED_CUST( "hapticStrength", 3, r_5pos, w_5pos ),
|
||||||
YAML_UNSIGNED( "gpsFormat", 1 ),
|
YAML_UNSIGNED( "gpsFormat", 1 ),
|
||||||
YAML_UNSIGNED( "unexpectedShutdown", 1 ),
|
YAML_PADDING( 1 ),
|
||||||
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
YAML_UNSIGNED_CUST( "speakerPitch", 8, r_spPitch, w_spPitch ),
|
||||||
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
YAML_SIGNED_CUST( "speakerVolume", 8, r_vol, w_vol ),
|
||||||
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
YAML_SIGNED_CUST( "vBatMin", 8, r_vbat_min, w_vbat_min ),
|
||||||
|
|||||||
Reference in New Issue
Block a user