master/master.h
branchstable-1.5
changeset 2421 bc2d4bf9cbe5
parent 2419 fdb85a806585
child 2433 3bdd7a747fae
equal deleted inserted replaced
2420:69056c46aa4d 2421:bc2d4bf9cbe5
   204     unsigned int slave_count; /**< Number of slaves on the bus. */
   204     unsigned int slave_count; /**< Number of slaves on the bus. */
   205 
   205 
   206     /* Configuration applied by the application. */
   206     /* Configuration applied by the application. */
   207     struct list_head configs; /**< List of slave configurations. */
   207     struct list_head configs; /**< List of slave configurations. */
   208     struct list_head domains; /**< List of domains. */
   208     struct list_head domains; /**< List of domains. */
   209     
   209 
   210     u64 app_time; /**< Time of the last ecrt_master_sync() call. */
   210     u64 app_time; /**< Time of the last ecrt_master_sync() call. */
   211     u64 app_start_time; /**< Application start time. */
   211     u64 app_start_time; /**< Application start time. */
   212     u8 has_app_time; /**< Application time is valid. */
   212     u8 has_app_time; /**< Application time is valid. */
   213     ec_datagram_t ref_sync_datagram; /**< Datagram used for synchronizing the
   213     ec_datagram_t ref_sync_datagram; /**< Datagram used for synchronizing the
   214                                        reference clock to the master clock. */
   214                                        reference clock to the master clock. */
   215     ec_datagram_t sync_datagram; /**< Datagram used for DC drift
   215     ec_datagram_t sync_datagram; /**< Datagram used for DC drift
   216                                    compensation. */
   216                                    compensation. */
   217     ec_datagram_t sync_mon_datagram; /**< Datagram used for DC synchronisation
   217     ec_datagram_t sync_mon_datagram; /**< Datagram used for DC synchronisation
   218                                        monitoring. */
   218                                        monitoring. */
   219     ec_slave_t *dc_ref_clock; /**< DC reference clock slave. */
   219     ec_slave_t *dc_ref_clock; /**< DC reference clock slave. */
   220     
   220 
   221     unsigned int scan_busy; /**< Current scan state. */
   221     unsigned int scan_busy; /**< Current scan state. */
   222     unsigned int allow_scan; /**< \a True, if slave scanning is allowed. */
   222     unsigned int allow_scan; /**< \a True, if slave scanning is allowed. */
   223     struct semaphore scan_sem; /**< Semaphore protecting the \a scan_busy
   223     struct semaphore scan_sem; /**< Semaphore protecting the \a scan_busy
   224                                  variable and the \a allow_scan flag. */
   224                                  variable and the \a allow_scan flag. */
   225     wait_queue_head_t scan_queue; /**< Queue for processes that wait for
   225     wait_queue_head_t scan_queue; /**< Queue for processes that wait for