master/slave.h
branchstable-1.0
changeset 1624 9dc190591c0f
parent 1621 4bbe090553f7
equal deleted inserted replaced
1623:05622513f627 1624:9dc190591c0f
    43 
    43 
    44 #include <linux/list.h>
    44 #include <linux/list.h>
    45 #include <linux/kobject.h>
    45 #include <linux/kobject.h>
    46 
    46 
    47 #include "globals.h"
    47 #include "globals.h"
    48 #include "command.h"
    48 #include "datagram.h"
    49 #include "types.h"
    49 #include "types.h"
    50 
    50 
    51 /*****************************************************************************/
    51 /*****************************************************************************/
    52 
    52 
    53 /**
    53 /**
   290 
   290 
   291     struct list_head sdo_dictionary; /**< SDO directory list */
   291     struct list_head sdo_dictionary; /**< SDO directory list */
   292 
   292 
   293     ec_slave_state_t requested_state; /**< requested slave state */
   293     ec_slave_state_t requested_state; /**< requested slave state */
   294     ec_slave_state_t current_state; /**< current slave state */
   294     ec_slave_state_t current_state; /**< current slave state */
   295     unsigned int state_error; /**< a state error has happened */
   295     unsigned int error_flag; /**< stop processing after an error */
   296     unsigned int online; /**< non-zero, if the slave responds. */
   296     unsigned int online; /**< non-zero, if the slave responds. */
   297 
   297 
   298     struct list_head varsize_fields; /**< size information for variable-sized
   298     struct list_head varsize_fields; /**< size information for variable-sized
   299                                         data fields. */
   299                                         data fields. */
   300 };
   300 };
   324 int ec_slave_fetch_pdo(ec_slave_t *, const uint8_t *, size_t, ec_pdo_type_t);
   324 int ec_slave_fetch_pdo(ec_slave_t *, const uint8_t *, size_t, ec_pdo_type_t);
   325 int ec_slave_locate_string(ec_slave_t *, unsigned int, char **);
   325 int ec_slave_locate_string(ec_slave_t *, unsigned int, char **);
   326 
   326 
   327 // misc.
   327 // misc.
   328 size_t ec_slave_calc_sync_size(const ec_slave_t *, const ec_sync_t *);
   328 size_t ec_slave_calc_sync_size(const ec_slave_t *, const ec_sync_t *);
       
   329 uint16_t ec_slave_calc_eeprom_sync_size(const ec_slave_t *,
       
   330                                         const ec_eeprom_sync_t *);
       
   331 
   329 void ec_slave_print(const ec_slave_t *, unsigned int);
   332 void ec_slave_print(const ec_slave_t *, unsigned int);
   330 int ec_slave_check_crc(ec_slave_t *);
   333 int ec_slave_check_crc(ec_slave_t *);
   331 
   334 
   332 /*****************************************************************************/
   335 /*****************************************************************************/
   333 
   336