master/slave.h
changeset 409 bc4c852e1b93
parent 406 e4f531d0d62d
child 410 3b8e94d623ab
equal deleted inserted replaced
408:0eda82d1a8c1 409:bc4c852e1b93
   162     uint8_t subindex; /**< entry subindex */
   162     uint8_t subindex; /**< entry subindex */
   163     char *name; /**< entry name */
   163     char *name; /**< entry name */
   164     uint8_t bit_length; /**< entry length in bit */
   164     uint8_t bit_length; /**< entry length in bit */
   165 }
   165 }
   166 ec_sii_pdo_entry_t;
   166 ec_sii_pdo_entry_t;
   167 
       
   168 /*****************************************************************************/
       
   169 
       
   170 /**
       
   171    CANopen SDO.
       
   172 */
       
   173 
       
   174 typedef struct
       
   175 {
       
   176     struct list_head list; /**< list item */
       
   177     uint16_t index; /**< SDO index */
       
   178     uint8_t object_code; /**< object code */
       
   179     char *name; /**< SDO name */
       
   180     struct list_head entries; /**< entry list */
       
   181 }
       
   182 ec_sdo_t;
       
   183 
       
   184 /*****************************************************************************/
       
   185 
       
   186 /**
       
   187    CANopen SDO entry.
       
   188 */
       
   189 
       
   190 typedef struct
       
   191 {
       
   192     struct list_head list; /**< list item */
       
   193     uint8_t subindex; /**< entry subindex */
       
   194     uint16_t data_type; /**< entry data type */
       
   195     uint16_t bit_length; /**< entry length in bit */
       
   196     char *name; /**< entry name */
       
   197 }
       
   198 ec_sdo_entry_t;
       
   199 
       
   200 /*****************************************************************************/
       
   201 
       
   202 typedef struct
       
   203 {
       
   204     struct list_head list; /**< list item */
       
   205     uint16_t index; /**< SDO index */
       
   206     uint8_t subindex; /**< SDO subindex */
       
   207     uint8_t *data; /**< pointer to SDO data */
       
   208     size_t size; /**< size of SDO data */
       
   209 }
       
   210 ec_sdo_data_t;
       
   211 
   167 
   212 /*****************************************************************************/
   168 /*****************************************************************************/
   213 
   169 
   214 /**
   170 /**
   215    FMMU configuration.
   171    FMMU configuration.