include/ecrt.h
changeset 1944 73896ef6d077
parent 1913 cbef34ba142b
child 1947 024a3c6aa3f7
equal deleted inserted replaced
1943:7e9deec7742d 1944:73896ef6d077
   380     EC_REQUEST_BUSY, /**< Request is being processed. */
   380     EC_REQUEST_BUSY, /**< Request is being processed. */
   381     EC_REQUEST_SUCCESS, /**< Request was processed successfully. */
   381     EC_REQUEST_SUCCESS, /**< Request was processed successfully. */
   382     EC_REQUEST_ERROR, /**< Request processing failed. */
   382     EC_REQUEST_ERROR, /**< Request processing failed. */
   383 } ec_request_state_t;
   383 } ec_request_state_t;
   384 
   384 
       
   385 /*****************************************************************************/
       
   386 
       
   387 /** Application-layer state.
       
   388  */
       
   389 typedef enum {
       
   390     EC_AL_STATE_INIT = 1, /**< Init. */
       
   391     EC_AL_STATE_PREOP = 2, /**< Pre-operational. */
       
   392     EC_AL_STATE_SAFEOP = 4, /**< Safe-operational. */
       
   393     EC_AL_STATE_OP = 8, /**< Operational. */
       
   394 } ec_al_state_t;
       
   395 
   385 /******************************************************************************
   396 /******************************************************************************
   386  * Global functions
   397  * Global functions
   387  *****************************************************************************/
   398  *****************************************************************************/
   388 
   399 
   389 #ifdef __cplusplus
   400 #ifdef __cplusplus
  1200  * \retval <0 Error code.
  1211  * \retval <0 Error code.
  1201  */
  1212  */
  1202 int ecrt_slave_config_idn(
  1213 int ecrt_slave_config_idn(
  1203         ec_slave_config_t *sc, /**< Slave configuration. */
  1214         ec_slave_config_t *sc, /**< Slave configuration. */
  1204         uint16_t idn, /**< SoE IDN. */
  1215         uint16_t idn, /**< SoE IDN. */
       
  1216         ec_al_state_t state, /**< AL state in which to write the IDN (PREOP or
       
  1217                                SAFEOP). */
  1205         const uint8_t *data, /**< Pointer to the data. */
  1218         const uint8_t *data, /**< Pointer to the data. */
  1206         size_t size /**< Size of the \a data. */
  1219         size_t size /**< Size of the \a data. */
  1207         );
  1220         );
  1208 
  1221 
  1209 /******************************************************************************
  1222 /******************************************************************************