Microchip® Advanced Software Framework

uhd_pipe_job_t Struct Reference

Structure definition to store registered jobs on a pipe.

Data Fields

uint8_t b_shortpacket:1
 A short packet is requested for this job on endpoint IN. More...
 
uint8_t * buf
 Buffer located in internal RAM to send or fill during job. More...
 
uint8_t * buf_internal
 Internal buffer allocated in internal RAM to receive data in case of small user buffer. More...
 
iram_size_t buf_size
 Size of buffer to send or fill. More...
 
uint8_t busy:1
 A job is registered on this pipe. More...
 
uhd_callback_trans_t call_end
 Callback to call at the end of transfer. More...
 
iram_size_t nb_trans
 Total number of transferred data on endpoint. More...
 
uint16_t timeout
 timeout on this request (ms) More...
 

uint8_t uhd_pipe_job_t::b_shortpacket

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

Referenced by _uhd_pipe_trans_complete(), and uhd_ep_run().

uint8_t* uhd_pipe_job_t::buf

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

Referenced by _uhd_pipe_trans_complete(), and uhd_ep_run().

uint8_t* uhd_pipe_job_t::buf_internal

Internal buffer allocated in internal RAM to receive data in case of small user buffer.

Referenced by _uhd_pipe_finish_job(), and _uhd_pipe_trans_complete().

iram_size_t uhd_pipe_job_t::buf_size

Size of buffer to send or fill.

Referenced by _uhd_pipe_trans_complete(), and uhd_ep_run().

uint8_t uhd_pipe_job_t::busy

A job is registered on this pipe.

Referenced by _uhd_pipe_finish_job(), _uhd_pipe_trans_complete(), _uhd_sof_interrupt(), and uhd_ep_run().

uhd_callback_trans_t uhd_pipe_job_t::call_end

Callback to call at the end of transfer.

Referenced by _uhd_pipe_finish_job(), and uhd_ep_run().

iram_size_t uhd_pipe_job_t::nb_trans

Total number of transferred data on endpoint.

Referenced by _uhd_pipe_finish_job(), _uhd_pipe_trans_complete(), and uhd_ep_run().

uint16_t uhd_pipe_job_t::timeout

timeout on this request (ms)

Referenced by _uhd_sof_interrupt(), and uhd_ep_run().