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...
 
}; 
 
uint32_t b_buf_end:1
 Registered buffer on this endpoint reach its end. More...
 
uint32_t b_shortpacket:1
 A short packet is requested for this job on endpoint IN. More...
 
uint32_t b_stall_requested:1
 A stall is requested for this job on endpoint IN. More...
 
uint32_t bank:2
 Current reception bank or current number of filled transmit banks. More...
 
uint8_t * buf
 Buffer located in internal RAM to send or fill during job. More...
 
iram_size_t buf_cnt
 Total number of data transfered on endpoint. More...
 
iram_size_t buf_size
 Size of buffer to send or fill. More...
 
uint32_t busy:1
 A job is registered on this endpoint. More...
 
uint32_t size:10
 Maximum packet size for the endpoint. More...
 

union { ... }
uint32_t udd_ep_job_t::b_buf_end

Registered buffer on this endpoint reach its end.

Referenced by udd_ep_alloc(), udd_ep_in_sent(), udd_ep_interrupt(), udd_ep_job_table_reset(), and udd_ep_run().

uint32_t udd_ep_job_t::b_shortpacket

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

Referenced by udd_ep_in_sent(), udd_ep_interrupt(), udd_ep_job_table_reset(), and udd_ep_run().

uint32_t udd_ep_job_t::b_stall_requested
uint32_t udd_ep_job_t::bank

Current reception bank or current number of filled transmit banks.

Referenced by udd_ep_abort(), udd_ep_ack_out_received(), udd_ep_alloc(), udd_ep_in_sent(), udd_ep_interrupt(), udd_ep_job_table_reset(), udd_ep_set_halt(), and udd_ep_write_fifo().

uint8_t* udd_ep_job_t::buf

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

Referenced by udd_ep_out_received(), udd_ep_run(), and udd_ep_write_fifo().

iram_size_t udd_ep_job_t::buf_cnt

Total number of data transfered on endpoint.

Referenced by udd_ep_in_sent(), udd_ep_interrupt(), udd_ep_out_received(), udd_ep_run(), and udd_ep_write_fifo().

iram_size_t udd_ep_job_t::buf_size
uint32_t udd_ep_job_t::busy

A job is registered on this endpoint.

Referenced by udd_ep_clear_halt(), udd_ep_finish_job(), udd_ep_job_table_reset(), udd_ep_run(), and udd_ep_wait_stall_clear().

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_finish_job(), and udd_ep_run().

uint32_t udd_ep_job_t::size

Maximum packet size for the endpoint.

Referenced by udd_ep_alloc(), udd_ep_out_received(), and udd_ep_write_fifo().