30#include "common/tusb_fifo.h"
37#ifndef CFG_TUD_LOG_LEVEL
38#define CFG_TUD_LOG_LEVEL 2
41#define TU_LOG_USBD(...) TU_LOG(CFG_TUD_LOG_LEVEL, __VA_ARGS__)
49 #if CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL
53 void (* init ) (void);
54 void (* reset ) (uint8_t rhport);
57 bool (* xfer_cb ) (uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_t xferred_bytes);
58 void (* sof ) (uint8_t rhport, uint32_t frame_count);
66typedef bool (*usbd_control_xfer_cb_t)(uint8_t rhport, uint8_t stage,
tusb_control_request_t const * request);
68void usbd_int_set(
bool enabled);
79void usbd_edpt_close(uint8_t rhport, uint8_t ep_addr);
82bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes);
85bool usbd_edpt_xfer_fifo(uint8_t rhport, uint8_t ep_addr,
tu_fifo_t * ff, uint16_t total_bytes);
89bool usbd_edpt_claim(uint8_t rhport, uint8_t ep_addr);
92bool usbd_edpt_release(uint8_t rhport, uint8_t ep_addr);
95bool usbd_edpt_busy(uint8_t rhport, uint8_t ep_addr);
98void usbd_edpt_stall(uint8_t rhport, uint8_t ep_addr);
101void usbd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr);
104bool usbd_edpt_stalled(uint8_t rhport, uint8_t ep_addr);
107bool usbd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t largest_packet_size);
113TU_ATTR_ALWAYS_INLINE
static inline
114bool usbd_edpt_ready(uint8_t rhport, uint8_t ep_addr)
116 return !usbd_edpt_busy(rhport, ep_addr) && !usbd_edpt_stalled(rhport, ep_addr);
120void usbd_sof_enable(uint8_t rhport,
bool en);
126bool 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);
127void usbd_defer_func( osal_task_func_t func,
void* param,
bool in_isr );
AUDIO Channel Cluster Descriptor (4.1)
Definition audio.h:647
Definition tusb_fifo.h:108