master/master.h
changeset 2024 96e2ae6cce95
parent 2021 ee30e7f90c2e
child 2028 55854f070c4a
equal deleted inserted replaced
2023:da133ec36c3a 2024:96e2ae6cce95
   227     struct list_head eoe_handlers; /**< Ethernet over EtherCAT handlers. */
   227     struct list_head eoe_handlers; /**< Ethernet over EtherCAT handlers. */
   228 #endif
   228 #endif
   229 
   229 
   230     struct semaphore io_sem; /**< Semaphore used in \a IDLE phase. */
   230     struct semaphore io_sem; /**< Semaphore used in \a IDLE phase. */
   231 
   231 
   232     void (*send_cb)(void *); /**< Current send datagrams callback. */
   232     void (*fsm_queue_lock_cb)(void *); /**< FSM queue lock callback. */
   233     void (*receive_cb)(void *); /**< Current receive datagrams callback. */
   233     void (*fsm_queue_unlock_cb)(void *); /**< FSM queue unlock callback. */
   234     void *cb_data; /**< Current callback data. */
   234     void *fsm_queue_locking_data; /**< Data parameter of fsm queue locking callbacks. */
   235     void (*app_send_cb)(void *); /**< Application's send datagrams
   235     void (*app_fsm_queue_lock_cb)(void *); /**< App's FSM queue lock callback. */
   236                                           callback. */
   236     void (*app_fsm_queue_unlock_cb)(void *); /**< App's FSM queue unlock callback. */
   237     void (*app_receive_cb)(void *); /**< Application's receive datagrams
   237     void *app_fsm_queue_locking_data; /**< App's data parameter of fsm queue locking callbacks. */
   238                                       callback. */
       
   239     void *app_cb_data; /**< Application callback data. */
       
   240 
   238 
   241     struct list_head sii_requests; /**< SII write requests. */
   239     struct list_head sii_requests; /**< SII write requests. */
   242     wait_queue_head_t sii_queue; /**< Wait queue for SII
   240     wait_queue_head_t sii_queue; /**< Wait queue for SII
   243                                       write requests from user space. */
   241                                       write requests from user space. */
   244 
   242 
   302         uint16_t, uint32_t, uint32_t);
   300         uint16_t, uint32_t, uint32_t);
   303 
   301 
   304 void ec_master_calc_dc(ec_master_t *);
   302 void ec_master_calc_dc(ec_master_t *);
   305 void ec_master_request_op(ec_master_t *);
   303 void ec_master_request_op(ec_master_t *);
   306 
   304 
   307 void ec_master_internal_send_cb(void *);
   305 /*****************************************************************************/
   308 void ec_master_internal_receive_cb(void *);
   306 
   309 
   307 #endif
   310 /*****************************************************************************/
       
   311 
       
   312 #endif