added support for SoE setup

This commit is contained in:
Sascha Ittner
2018-02-23 13:26:32 +01:00
parent 2c5977f7e9
commit 732b3e108b
4 changed files with 222 additions and 6 deletions

View File

@@ -131,6 +131,14 @@ typedef struct {
uint8_t data[];
} lcec_slave_sdoconf_t;
typedef struct {
uint8_t drive;
uint16_t idn;
ec_al_state_t state;
size_t length;
uint8_t data[];
} lcec_slave_idnconf_t;
typedef struct lcec_slave {
struct lcec_slave *prev;
struct lcec_slave *next;
@@ -155,6 +163,7 @@ typedef struct lcec_slave {
ec_pdo_info_t *generic_pdos;
ec_sync_info_t *generic_sync_managers;
lcec_slave_sdoconf_t *sdo_config;
lcec_slave_idnconf_t *idn_config;
} lcec_slave_t;
int lcec_read_sdo(struct lcec_slave *slave, uint16_t index, uint8_t subindex, uint8_t *target, size_t size);