Microchip® Advanced Software Framework

udd_ep_job_t Struct Reference

Structure definition about job registered on an endpoint.

Data Fields

union {
   udd_callback_halt_cleared_t   call_nohalt
 Callback to call when the endpoint halt is cleared. More...
 
   udd_callback_trans_t   call_trans
 Callback to call at the end of transfer. More...
 
}; 
 
uint8_t b_shortpacket:1
 A short packet is requested for this job on endpoint IN. More...
 
uint8_t b_use_out_cache_buffer:1
 The cache buffer is currently used on endpoint OUT. More...
 
uint8_t * buf
 Buffer located in internal RAM to send or fill during job. More...
 
iram_size_t buf_size
 Size of buffer to send or fill. More...
 
uint8_t busy:1
 A job is registered on this endpoint. More...
 
iram_size_t nb_trans
 Total number of data transfered on endpoint. More...
 

union { ... }
uint8_t udd_ep_job_t::b_shortpacket

A short packet is requested for this job on endpoint IN.

Referenced by udd_ep_run(), and udd_ep_trans_complet().

uint8_t udd_ep_job_t::b_use_out_cache_buffer

The cache buffer is currently used on endpoint OUT.

Referenced by udd_ep_run(), and udd_ep_trans_complet().

uint8_t* udd_ep_job_t::buf

Buffer located in internal RAM to send or fill during job.

Referenced by udd_ep_run(), and udd_ep_trans_complet().

iram_size_t udd_ep_job_t::buf_size

Size of buffer to send or fill.

Referenced by udd_ep_run(), and udd_ep_trans_complet().

uint8_t udd_ep_job_t::busy
udd_callback_halt_cleared_t udd_ep_job_t::call_nohalt

Callback to call when the endpoint halt is cleared.

Referenced by udd_ep_clear_halt(), and udd_ep_wait_stall_clear().

udd_callback_trans_t udd_ep_job_t::call_trans

Callback to call at the end of transfer.

Referenced by udd_ep_abort(), udd_ep_run(), and udd_ep_trans_complet().

iram_size_t udd_ep_job_t::nb_trans

Total number of data transfered on endpoint.

Referenced by udd_ep_run(), and udd_ep_trans_complet().