26#ifndef TUSB_USBD_PVT_H_
27#define TUSB_USBD_PVT_H_
37#define TU_LOG_USBD(...) TU_LOG(CFG_TUD_LOG_LEVEL, __VA_ARGS__)
44 SOF_CONSUMER_USER = 0,
54 void (* init ) (void);
55 bool (* deinit ) (void);
56 void (* reset ) (uint8_t rhport);
59 bool (* xfer_cb ) (uint8_t rhport, uint8_t ep_addr,
xfer_result_t result, uint32_t xferred_bytes);
60 void (* sof ) (uint8_t rhport, uint32_t frame_count);
115TU_ATTR_ALWAYS_INLINE
static inline
127bool usbd_open_edpt_pair(uint8_t rhport, uint8_t
const* p_desc, uint8_t ep_count, uint8_t xfer_type, uint8_t* ep_out, uint8_t* ep_in);
AUDIO Channel Cluster Descriptor (4.1)
static TU_ATTR_ALWAYS_INLINE bool usbd_edpt_ready(uint8_t rhport, uint8_t ep_addr)
void usbd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
void usbd_edpt_close(uint8_t rhport, uint8_t ep_addr)
bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t *buffer, uint16_t total_bytes)
void usbd_edpt_stall(uint8_t rhport, uint8_t ep_addr)
bool usbd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const *desc_ep)
bool usbd_edpt_claim(uint8_t rhport, uint8_t ep_addr)
void usbd_defer_func(osal_task_func_t func, void *param, bool in_isr)
bool usbd_edpt_busy(uint8_t rhport, uint8_t ep_addr)
bool usbd_edpt_release(uint8_t rhport, uint8_t ep_addr)
bool usbd_open_edpt_pair(uint8_t rhport, uint8_t const *p_desc, uint8_t ep_count, uint8_t xfer_type, uint8_t *ep_out, uint8_t *ep_in)
bool usbd_edpt_xfer_fifo(uint8_t rhport, uint8_t ep_addr, tu_fifo_t *ff, uint16_t total_bytes)
bool usbd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const *p_endpoint_desc)
void usbd_int_set(bool enabled)
void usbd_sof_enable(uint8_t rhport, sof_consumer_t consumer, bool en)
bool usbd_edpt_stalled(uint8_t rhport, uint8_t ep_addr)
usbd_class_driver_t const * usbd_app_driver_get_cb(uint8_t *driver_count) TU_ATTR_WEAK
bool usbd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t largest_packet_size)
bool(* usbd_control_xfer_cb_t)(uint8_t rhport, uint8_t stage, tusb_control_request_t const *request)
CFG_TUH_MEM_ALIGN tusb_control_request_t request