master/sdo_entry.h
changeset 991 2548ca639b1f
parent 847 92266462d411
child 1092 69393cf60399
equal deleted inserted replaced
990:4f223f3df05a 991:2548ca639b1f
    54 /*****************************************************************************/
    54 /*****************************************************************************/
    55 
    55 
    56 /** CANopen Sdo entry.
    56 /** CANopen Sdo entry.
    57  */
    57  */
    58 typedef struct {
    58 typedef struct {
    59     struct kobject kobj; /**< kobject */
       
    60     struct list_head list; /**< List item. */
    59     struct list_head list; /**< List item. */
    61     ec_sdo_t *sdo; /**< Parent Sdo. */
    60     ec_sdo_t *sdo; /**< Parent Sdo. */
    62     uint8_t subindex; /**< Subindex. */
    61     uint8_t subindex; /**< Subindex. */
    63     uint16_t data_type; /**< Data type. */
    62     uint16_t data_type; /**< Data type. */
    64     uint16_t bit_length; /**< Data size in bit. */
    63     uint16_t bit_length; /**< Data size in bit. */
    65     char *description; /**< Description. */
    64     char *description; /**< Description. */
    66 } ec_sdo_entry_t;
    65 } ec_sdo_entry_t;
    67 
    66 
    68 /*****************************************************************************/
    67 /*****************************************************************************/
    69 
    68 
    70 int ec_sdo_entry_init(ec_sdo_entry_t *, uint8_t, ec_sdo_t *);
    69 void ec_sdo_entry_init(ec_sdo_entry_t *, ec_sdo_t *, uint8_t);
    71 void ec_sdo_entry_destroy(ec_sdo_entry_t *);
    70 void ec_sdo_entry_clear(ec_sdo_entry_t *);
    72 
    71 
    73 /*****************************************************************************/
    72 /*****************************************************************************/
    74 
    73 
    75 #endif
    74 #endif