add module custom parameters, flag for stmds5k multiturn encoders

This commit is contained in:
Sascha Ittner
2018-03-22 15:16:32 +01:00
parent e2bc889ac8
commit 825a9a0400
6 changed files with 303 additions and 80 deletions

View File

@@ -47,7 +47,8 @@ typedef enum {
lcecConfTypeIdnConfig,
lcecConfTypeIdnDataRaw,
lcecConfTypeInitCmds,
lcecConfTypeComplexEntry
lcecConfTypeComplexEntry,
lcecConfTypeModParam
} LCEC_CONF_TYPE_T;
typedef enum {
@@ -162,6 +163,7 @@ typedef struct {
unsigned int pdoMappingCount;
size_t sdoConfigLength;
size_t idnConfigLength;
unsigned int modParamCount;
char name[LCEC_CONF_STR_MAXLEN];
} LCEC_CONF_SLAVE_T;
@@ -237,4 +239,17 @@ typedef struct {
uint8_t data[];
} LCEC_CONF_IDNCONF_T;
typedef union {
hal_bit_t bit;
hal_s32_t s32;
hal_u32_t u32;
hal_float_t flt;
} LCEC_CONF_MODPARAM_VAL_T;
typedef struct {
LCEC_CONF_TYPE_T confType;
int id;
LCEC_CONF_MODPARAM_VAL_T value;
} LCEC_CONF_MODPARAM_T;
#endif