include/ecrt.h
changeset 900 f8b5c6d21705
parent 894 440c43d56b33
child 916 db73994fbdac
equal deleted inserted replaced
899:e82e2e4cdc9b 900:f8b5c6d21705
    83  *   be reached by specifying an explicit Pdo mapping and registering those
    83  *   be reached by specifying an explicit Pdo mapping and registering those
    84  *   Pdo entries.
    84  *   Pdo entries.
    85  * - Added an Sdo access interface, working with Sdo requests. These can be
    85  * - Added an Sdo access interface, working with Sdo requests. These can be
    86  *   scheduled for reading and writing during realtime operation.
    86  *   scheduled for reading and writing during realtime operation.
    87  * - Exported ecrt_slave_config_sdo(), the generic Sdo configuration function.
    87  * - Exported ecrt_slave_config_sdo(), the generic Sdo configuration function.
       
    88  * - Removed the bus_state and bus_tainted flags from ec_master_state_t.
    88  *
    89  *
    89  * @{
    90  * @{
    90  */
    91  */
    91 
    92 
    92 /*****************************************************************************/
    93 /*****************************************************************************/
   146 struct ec_sdo_request;
   147 struct ec_sdo_request;
   147 typedef struct ec_sdo_request ec_sdo_request_t; /**< \see ec_sdo_request. */
   148 typedef struct ec_sdo_request ec_sdo_request_t; /**< \see ec_sdo_request. */
   148 
   149 
   149 /*****************************************************************************/
   150 /*****************************************************************************/
   150 
   151 
   151 /** Bus state.
       
   152  *
       
   153  * This is used in ec_master_state_t.
       
   154  *
       
   155  * \deprecated
       
   156  * \todo remove
       
   157  */
       
   158 typedef enum {
       
   159     EC_BUS_FAILURE = -1, /**< At least one configured slave is offline. */
       
   160     EC_BUS_OK            /**< All configured slaves are online. */
       
   161 } ec_bus_state_t;
       
   162 
       
   163 /*****************************************************************************/
       
   164 
       
   165 /** Master state.
   152 /** Master state.
   166  *
   153  *
   167  * This is used for the output parameter of ecrt_master_state().
   154  * This is used for the output parameter of ecrt_master_state().
   168  */
   155  */
   169 typedef struct {
   156 typedef struct {
   170     ec_bus_state_t bus_state; /**< \see ec_bus_state_t */
       
   171     unsigned int bus_tainted; /**< Non-zero, if the bus topology differs from
       
   172                                 the requested configuration. */
       
   173     unsigned int slaves_responding; /**< Number of slaves in the bus. */
   157     unsigned int slaves_responding; /**< Number of slaves in the bus. */
   174 } ec_master_state_t;
   158 } ec_master_state_t;
   175 
   159 
   176 /*****************************************************************************/
   160 /*****************************************************************************/
   177 
   161