Improved mixer source (de-)serialization

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:02 +01:00
parent b7640a830f
commit 4ee58045e1
35 changed files with 394 additions and 131 deletions
@@ -628,7 +628,7 @@ static const struct YamlNode struct_TrainerModuleData[] = {
};
static const struct YamlNode union_ScriptDataInput_elmts[] = {
YAML_SIGNED( "value", 16 ),
YAML_UNSIGNED( "source", 16 ),
YAML_UNSIGNED_CUST( "source", 16, r_mixSrcRaw, w_mixSrcRaw ),
YAML_END
};
static const struct YamlNode union_ScriptDataInput[] = {
@@ -715,19 +715,19 @@ static const struct YamlNode struct_TelemetrySensor[] = {
};
static const struct YamlNode struct_FrSkyBarData[] = {
YAML_IDX,
YAML_UNSIGNED( "source", 16 ),
YAML_UNSIGNED_CUST( "source", 16, r_mixSrcRaw, w_mixSrcRaw ),
YAML_SIGNED( "barMin", 16 ),
YAML_SIGNED( "barMax", 16 ),
YAML_END
};
static const struct YamlNode struct_unsigned_16[] = {
static const struct YamlNode struct_LineDataSource[] = {
YAML_IDX,
YAML_UNSIGNED( "val", 16 ),
YAML_UNSIGNED_CUST( "val", 16, r_mixSrcRaw, w_mixSrcRaw ),
YAML_END
};
static const struct YamlNode struct_FrSkyLineData[] = {
YAML_IDX,
YAML_ARRAY("sources", 16, 2, struct_unsigned_16, NULL),
YAML_ARRAY("sources", 16, 2, struct_LineDataSource, NULL),
YAML_END
};
static const struct YamlNode struct_TelemetryScriptData[] = {