include/ecrt.h
changeset 1594 2019bec460ad
parent 1585 1f640e321ee4
child 1611 7c49cd56f96f
equal deleted inserted replaced
1593:fb8337e664fb 1594:2019bec460ad
   206                                  bit! */
   206                                  bit! */
   207 } ec_slave_config_state_t;
   207 } ec_slave_config_state_t;
   208 
   208 
   209 /*****************************************************************************/
   209 /*****************************************************************************/
   210 
   210 
   211 #ifndef __KERNEL__
       
   212 
       
   213 /** Master information.
   211 /** Master information.
   214  *
   212  *
   215  * This is used as an output parameter of ecrt_master().
   213  * This is used as an output parameter of ecrt_master().
   216  *
   214  *
   217  * \see ecrt_master().
   215  * \see ecrt_master().
   244     uint8_t sync_count; /**< Number of sync managers. */
   242     uint8_t sync_count; /**< Number of sync managers. */
   245     uint16_t sdo_count; /**< Number of SDOs. */
   243     uint16_t sdo_count; /**< Number of SDOs. */
   246     char name[EC_MAX_STRING_LENGTH]; /**< Name of the slave. */
   244     char name[EC_MAX_STRING_LENGTH]; /**< Name of the slave. */
   247 } ec_slave_info_t;
   245 } ec_slave_info_t;
   248 
   246 
   249 #endif // #ifndef __KERNEL__
       
   250 
       
   251 /*****************************************************************************/
   247 /*****************************************************************************/
   252 
   248 
   253 /** Domain working counter interpretation.
   249 /** Domain working counter interpretation.
   254  *
   250  *
   255  * This is used in ec_domain_state_t.
   251  * This is used in ec_domain_state_t.
   537         uint16_t position, /**< Slave position. */
   533         uint16_t position, /**< Slave position. */
   538         uint32_t vendor_id, /**< Expected vendor ID. */
   534         uint32_t vendor_id, /**< Expected vendor ID. */
   539         uint32_t product_code /**< Expected product code. */
   535         uint32_t product_code /**< Expected product code. */
   540         );
   536         );
   541 
   537 
   542 #ifndef __KERNEL__
       
   543 
       
   544 /** Obtains master information.
   538 /** Obtains master information.
   545  *
   539  *
   546  * No memory is allocated on the heap in
   540  * No memory is allocated on the heap in
   547  * this function.
   541  * this function.
   548  *
   542  *
   570         ec_master_t *master, /**< EtherCAT master */
   564         ec_master_t *master, /**< EtherCAT master */
   571         uint16_t slave_position, /**< Slave position. */
   565         uint16_t slave_position, /**< Slave position. */
   572         ec_slave_info_t *slave_info /**< Structure that will output the
   566         ec_slave_info_t *slave_info /**< Structure that will output the
   573                                       information */
   567                                       information */
   574         );
   568         );
       
   569 
       
   570 #ifndef __KERNEL__
   575 
   571 
   576 /** Returns the proposed configuration of a slave's sync manager.
   572 /** Returns the proposed configuration of a slave's sync manager.
   577  *
   573  *
   578  * Fills a given ec_sync_info_t structure with the attributes of a sync
   574  * Fills a given ec_sync_info_t structure with the attributes of a sync
   579  * manager. The \a pdos field of the return value is left empty. Use
   575  * manager. The \a pdos field of the return value is left empty. Use