master/domain.c
branchstable-1.5
changeset 2522 ec403cf308eb
parent 2470 4f97d61a8671
child 2532 bdadf6da4914
equal deleted inserted replaced
2521:3d68bb0047a1 2522:ec403cf308eb
    41 #include "slave_config.h"
    41 #include "slave_config.h"
    42 
    42 
    43 #include "domain.h"
    43 #include "domain.h"
    44 #include "datagram_pair.h"
    44 #include "datagram_pair.h"
    45 
    45 
       
    46 /** Extra debug output for redundancy functions.
       
    47  */
    46 #define DEBUG_REDUNDANCY 0
    48 #define DEBUG_REDUNDANCY 0
    47 
    49 
    48 /*****************************************************************************/
    50 /*****************************************************************************/
    49 
    51 
    50 void ec_domain_clear_data(ec_domain_t *);
    52 void ec_domain_clear_data(ec_domain_t *);
   185  * Detects, if a slave configuration has already been taken into account for
   187  * Detects, if a slave configuration has already been taken into account for
   186  * a datagram's expected working counter calculation.
   188  * a datagram's expected working counter calculation.
   187  *
   189  *
   188  * Walks through the list of all FMMU configurations for the current datagram
   190  * Walks through the list of all FMMU configurations for the current datagram
   189  * and ends before the current datagram.
   191  * and ends before the current datagram.
       
   192  *
       
   193  * \return Non-zero if slave connfig was already counted.
   190  */
   194  */
   191 int shall_count(
   195 int shall_count(
   192         const ec_fmmu_config_t *cur_fmmu, /**< Current FMMU with direction to
   196         const ec_fmmu_config_t *cur_fmmu, /**< Current FMMU with direction to
   193                                             search for. */
   197                                             search for. */
   194         const ec_fmmu_config_t *first_fmmu /**< Datagram's first FMMU. */
   198         const ec_fmmu_config_t *first_fmmu /**< Datagram's first FMMU. */
   338 }
   342 }
   339 
   343 
   340 /*****************************************************************************/
   344 /*****************************************************************************/
   341 
   345 
   342 /** Get a certain FMMU configuration via its position in the list.
   346 /** Get a certain FMMU configuration via its position in the list.
       
   347  *
       
   348  * \return FMMU at position \a pos, or NULL.
   343  */
   349  */
   344 const ec_fmmu_config_t *ec_domain_find_fmmu(
   350 const ec_fmmu_config_t *ec_domain_find_fmmu(
   345         const ec_domain_t *domain, /**< EtherCAT domain. */
   351         const ec_domain_t *domain, /**< EtherCAT domain. */
   346         unsigned int pos /**< List position. */
   352         unsigned int pos /**< List position. */
   347         )
   353         )