include/ecrt.h
changeset 1978 d9b6e641eaeb
parent 1861 5b285964b4e7
child 1980 a89e2bedf004
equal deleted inserted replaced
1872:23d4e121faaf 1978:d9b6e641eaeb
   746 void ecrt_master_state(
   746 void ecrt_master_state(
   747         const ec_master_t *master, /**< EtherCAT master. */
   747         const ec_master_t *master, /**< EtherCAT master. */
   748         ec_master_state_t *state /**< Structure to store the information. */
   748         ec_master_state_t *state /**< Structure to store the information. */
   749         );
   749         );
   750 
   750 
       
   751 /** Reads the current master state and the al_state of all configured slaves.
       
   752  *
       
   753  * use this function instead of ecrt_master_state if there are unused
       
   754  * slaves on the bus
       
   755  * Stores the master state information in the given \a state structure.
       
   756  * \see ecrt_master_state()
       
   757  */
       
   758 void ecrt_master_configured_slaves_state(
       
   759         const ec_master_t *master, /**< EtherCAT master. */
       
   760         ec_master_state_t *state /**< Structure to store the information. */
       
   761         );
       
   762 
   751 /** Sets the application time.
   763 /** Sets the application time.
   752  *
   764  *
   753  * The master has to know the application's time when operating slaves with
   765  * The master has to know the application's time when operating slaves with
   754  * distributed clocks. The time is not incremented by the master itself, so
   766  * distributed clocks. The time is not incremented by the master itself, so
   755  * this method has to be called cyclically.
   767  * this method has to be called cyclically.