Open FFBoard
Open source force feedback firmware
usbh_pvt.h File Reference

Go to the source code of this file.

Classes

struct  usbh_class_driver_t
 

Functions

usbh_class_driver_t const * usbh_app_driver_get_cb (uint8_t *driver_count) TU_ATTR_WEAK
 
void usbh_driver_set_config_complete (uint8_t dev_addr, uint8_t itf_num)
 
uint8_t usbh_get_rhport (uint8_t dev_addr)
 
uint8_t * usbh_get_enum_buf (void)
 
void usbh_int_set (bool enabled)
 
void usbh_defer_func (osal_task_func_t func, void *param, bool in_isr)
 
bool usbh_edpt_xfer_with_callback (uint8_t dev_addr, uint8_t ep_addr, uint8_t *buffer, uint16_t total_bytes, tuh_xfer_cb_t complete_cb, uintptr_t user_data)
 
static TU_ATTR_ALWAYS_INLINE bool usbh_edpt_xfer (uint8_t dev_addr, uint8_t ep_addr, uint8_t *buffer, uint16_t total_bytes)
 
bool usbh_edpt_claim (uint8_t dev_addr, uint8_t ep_addr)
 
bool usbh_edpt_release (uint8_t dev_addr, uint8_t ep_addr)
 
bool usbh_edpt_busy (uint8_t dev_addr, uint8_t ep_addr)
 

Variables

 C
 

Function Documentation

◆ usbh_app_driver_get_cb()

usbh_class_driver_t const * usbh_app_driver_get_cb ( uint8_t *  driver_count)

◆ usbh_defer_func()

void usbh_defer_func ( osal_task_func_t  func,
void *  param,
bool  in_isr 
)

Definition at line 832 of file usbh.c.

◆ usbh_driver_set_config_complete()

void usbh_driver_set_config_complete ( uint8_t  dev_addr,
uint8_t  itf_num 
)

Definition at line 1717 of file usbh.c.

◆ usbh_edpt_busy()

bool usbh_edpt_busy ( uint8_t  dev_addr,
uint8_t  ep_addr 
)

Definition at line 935 of file usbh.c.

◆ usbh_edpt_claim()

bool usbh_edpt_claim ( uint8_t  dev_addr,
uint8_t  ep_addr 
)

Definition at line 846 of file usbh.c.

◆ usbh_edpt_release()

bool usbh_edpt_release ( uint8_t  dev_addr,
uint8_t  ep_addr 
)

Definition at line 861 of file usbh.c.

◆ usbh_edpt_xfer()

static TU_ATTR_ALWAYS_INLINE bool usbh_edpt_xfer ( uint8_t  dev_addr,
uint8_t  ep_addr,
uint8_t *  buffer,
uint16_t  total_bytes 
)
inlinestatic

Definition at line 87 of file usbh_pvt.h.

◆ usbh_edpt_xfer_with_callback()

bool usbh_edpt_xfer_with_callback ( uint8_t  dev_addr,
uint8_t  ep_addr,
uint8_t *  buffer,
uint16_t  total_bytes,
tuh_xfer_cb_t  complete_cb,
uintptr_t  user_data 
)

Definition at line 877 of file usbh.c.

◆ usbh_get_enum_buf()

uint8_t * usbh_get_enum_buf ( void  )

Definition at line 819 of file usbh.c.

◆ usbh_get_rhport()

uint8_t usbh_get_rhport ( uint8_t  dev_addr)

Definition at line 814 of file usbh.c.

◆ usbh_int_set()

void usbh_int_set ( bool  enabled)

Definition at line 823 of file usbh.c.

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
#define TU_LOG_USBH(...) TU_LOG(CFG_TUH_LOG_LEVEL, __VA_ARGS__)
#define TU_LOG_MEM_USBH(...) TU_LOG_MEM(CFG_TUH_LOG_LEVEL, __VA_ARGS__)
#define TU_LOG_BUF_USBH(...) TU_LOG_BUF(CFG_TUH_LOG_LEVEL, __VA_ARGS__)
#define TU_LOG_INT_USBH(...) TU_LOG_INT(CFG_TUH_LOG_LEVEL, __VA_ARGS__)
#define TU_LOG_HEX_USBH(...) TU_LOG_HEX(CFG_TUH_LOG_LEVEL, __VA_ARGS__)
enum {
USBH_EPSIZE_BULK_MAX = (TUH_OPT_HIGH_SPEED ? TUSB_EPSIZE_BULK_HS : TUSB_EPSIZE_BULK_FS)
}
@ TUSB_EPSIZE_BULK_HS
Definition: tusb_types.h:74
@ TUSB_EPSIZE_BULK_FS
Definition: tusb_types.h:73