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

@@ -162,6 +162,11 @@ typedef struct {
uint8_t data[];
} lcec_slave_idnconf_t;
typedef struct {
int id;
LCEC_CONF_MODPARAM_VAL_T value;
} lcec_slave_modparam_t;
typedef struct lcec_slave {
struct lcec_slave *prev;
struct lcec_slave *next;
@@ -187,6 +192,7 @@ typedef struct lcec_slave {
ec_sync_info_t *generic_sync_managers;
lcec_slave_sdoconf_t *sdo_config;
lcec_slave_idnconf_t *idn_config;
lcec_slave_modparam_t *modparams;
} lcec_slave_t;
typedef struct {
@@ -204,5 +210,7 @@ int lcec_pin_newf_list(void *base, const lcec_pindesc_t *list, ...);
int lcec_param_newf(hal_type_t type, hal_pin_dir_t dir, void *data_addr, const char *fmt, ...);
int lcec_param_newf_list(void *base, const lcec_pindesc_t *list, ...);
LCEC_CONF_MODPARAM_VAL_T *lcec_modparam_get(struct lcec_slave *slave, int id);
#endif