master/fsm_coe_map.h
changeset 792 3778920f61e4
parent 768 b709149d5bba
child 814 a51f857b1b2d
equal deleted inserted replaced
791:3b81d074735c 792:3778920f61e4
    49 /*****************************************************************************/
    49 /*****************************************************************************/
    50 
    50 
    51 typedef struct ec_fsm_coe_map ec_fsm_coe_map_t; /**< \see ec_fsm_coe_map */
    51 typedef struct ec_fsm_coe_map ec_fsm_coe_map_t; /**< \see ec_fsm_coe_map */
    52 
    52 
    53 /**
    53 /**
       
    54  * \todo doc
    54  */
    55  */
    55 
       
    56 struct ec_fsm_coe_map
    56 struct ec_fsm_coe_map
    57 {
    57 {
    58     void (*state)(ec_fsm_coe_map_t *); /**< CoE mapping state function */
    58     void (*state)(ec_fsm_coe_map_t *); /**< CoE mapping state function */
    59     ec_fsm_coe_t *fsm_coe; /**< CoE state machine to use */
    59     ec_fsm_coe_t *fsm_coe; /**< CoE state machine to use */
    60 
    60 
    64     unsigned int sync_index; /**< index of the current sync manager */
    64     unsigned int sync_index; /**< index of the current sync manager */
    65     ec_sdo_t *sync_sdo; /**< pointer to the sync managers mapping SDO */
    65     ec_sdo_t *sync_sdo; /**< pointer to the sync managers mapping SDO */
    66     uint8_t sync_subindices; /**< number of mapped PDOs */
    66     uint8_t sync_subindices; /**< number of mapped PDOs */
    67     uint16_t sync_subindex; /**< current subindex in mapping SDO */
    67     uint16_t sync_subindex; /**< current subindex in mapping SDO */
    68 
    68 
    69     struct list_head pdos; /**< list of mapped PDOs */
    69     ec_pdo_mapping_t mapping; /**< Mapping to apply. */
    70     ec_pdo_t *pdo; /**< current PDO */
    70     ec_pdo_t *pdo; /**< current PDO */
    71     ec_sdo_t *pdo_sdo; /**< current PDO SDO */
    71     ec_sdo_t *pdo_sdo; /**< current PDO SDO */
    72     uint8_t pdo_subindices; /**< number of PDO entries */
    72     uint8_t pdo_subindices; /**< number of PDO entries */
    73     uint16_t pdo_subindex; /**< current subindex in PDO SDO */
    73     uint16_t pdo_subindex; /**< current subindex in PDO SDO */
    74 };
    74 };