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

Go to the source code of this file.

Classes

struct  hcd_event_t
 
struct  hcd_devtree_info_t
 

Functions

bool hcd_dcache_clean (void const *addr, uint32_t data_size) TU_ATTR_WEAK
 
bool hcd_dcache_invalidate (void const *addr, uint32_t data_size) TU_ATTR_WEAK
 
bool hcd_dcache_clean_invalidate (void const *addr, uint32_t data_size) TU_ATTR_WEAK
 
bool hcd_configure (uint8_t rhport, uint32_t cfg_id, const void *cfg_param)
 
bool hcd_init (uint8_t rhport, const tusb_rhport_init_t *rh_init)
 
bool hcd_deinit (uint8_t rhport)
 
void hcd_int_handler (uint8_t rhport, bool in_isr)
 
void hcd_int_enable (uint8_t rhport)
 
void hcd_int_disable (uint8_t rhport)
 
uint32_t hcd_frame_number (uint8_t rhport)
 
bool hcd_port_connect_status (uint8_t rhport)
 
void hcd_port_reset (uint8_t rhport)
 
void hcd_port_reset_end (uint8_t rhport)
 
tusb_speed_t hcd_port_speed_get (uint8_t rhport)
 
void hcd_device_close (uint8_t rhport, uint8_t dev_addr)
 
bool hcd_edpt_open (uint8_t rhport, uint8_t daddr, tusb_desc_endpoint_t const *ep_desc)
 
bool hcd_edpt_xfer (uint8_t rhport, uint8_t daddr, uint8_t ep_addr, uint8_t *buffer, uint16_t buflen)
 
bool hcd_edpt_abort_xfer (uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr)
 
bool hcd_setup_send (uint8_t rhport, uint8_t daddr, uint8_t const setup_packet[8])
 
bool hcd_edpt_clear_stall (uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr)
 
void hcd_devtree_get_info (uint8_t dev_addr, hcd_devtree_info_t *devtree_info)
 
void hcd_event_handler (hcd_event_t const *event, bool in_isr)
 
static TU_ATTR_ALWAYS_INLINE void hcd_event_device_attach (uint8_t rhport, bool in_isr)
 
static TU_ATTR_ALWAYS_INLINE void hcd_event_device_remove (uint8_t rhport, bool in_isr)
 
static TU_ATTR_ALWAYS_INLINE void hcd_event_xfer_complete (uint8_t dev_addr, uint8_t ep_addr, uint32_t xferred_bytes, xfer_result_t result, bool in_isr)
 

Variables

 C
 

Function Documentation

◆ hcd_configure()

bool hcd_configure ( uint8_t  rhport,
uint32_t  cfg_id,
const void *  cfg_param 
)

Definition at line 55 of file usbh.c.

◆ hcd_dcache_clean()

bool hcd_dcache_clean ( void const *  addr,
uint32_t  data_size 
)

Definition at line 45 of file hcd_ci_hs.c.

◆ hcd_dcache_clean_invalidate()

bool hcd_dcache_clean_invalidate ( void const *  addr,
uint32_t  data_size 
)

Definition at line 53 of file hcd_ci_hs.c.

◆ hcd_dcache_invalidate()

bool hcd_dcache_invalidate ( void const *  addr,
uint32_t  data_size 
)

Definition at line 49 of file hcd_ci_hs.c.

◆ hcd_deinit()

bool hcd_deinit ( uint8_t  rhport)

Definition at line 50 of file usbh.c.

◆ hcd_device_close()

void hcd_device_close ( uint8_t  rhport,
uint8_t  dev_addr 
)

Definition at line 615 of file hcd_max3421.c.

◆ hcd_devtree_get_info()

void hcd_devtree_get_info ( uint8_t  dev_addr,
hcd_devtree_info_t devtree_info 
)

Definition at line 949 of file usbh.c.

◆ hcd_edpt_abort_xfer()

bool hcd_edpt_abort_xfer ( uint8_t  rhport,
uint8_t  dev_addr,
uint8_t  ep_addr 
)

Definition at line 759 of file hcd_max3421.c.

◆ hcd_edpt_clear_stall()

bool hcd_edpt_clear_stall ( uint8_t  rhport,
uint8_t  dev_addr,
uint8_t  ep_addr 
)

Definition at line 797 of file hcd_max3421.c.

◆ hcd_edpt_open()

bool hcd_edpt_open ( uint8_t  rhport,
uint8_t  daddr,
tusb_desc_endpoint_t const *  ep_desc 
)

Definition at line 625 of file hcd_max3421.c.

◆ hcd_edpt_xfer()

bool hcd_edpt_xfer ( uint8_t  rhport,
uint8_t  daddr,
uint8_t  ep_addr,
uint8_t *  buffer,
uint16_t  buflen 
)

Definition at line 733 of file hcd_max3421.c.

◆ hcd_event_device_attach()

static TU_ATTR_ALWAYS_INLINE void hcd_event_device_attach ( uint8_t  rhport,
bool  in_isr 
)
inlinestatic

Definition at line 197 of file hcd.h.

◆ hcd_event_device_remove()

static TU_ATTR_ALWAYS_INLINE void hcd_event_device_remove ( uint8_t  rhport,
bool  in_isr 
)
inlinestatic

Definition at line 209 of file hcd.h.

◆ hcd_event_handler()

void hcd_event_handler ( hcd_event_t const *  event,
bool  in_isr 
)

Definition at line 964 of file usbh.c.

◆ hcd_event_xfer_complete()

static TU_ATTR_ALWAYS_INLINE void hcd_event_xfer_complete ( uint8_t  dev_addr,
uint8_t  ep_addr,
uint32_t  xferred_bytes,
xfer_result_t  result,
bool  in_isr 
)
inlinestatic

Definition at line 221 of file hcd.h.

◆ hcd_frame_number()

uint32_t hcd_frame_number ( uint8_t  rhport)

Definition at line 582 of file hcd_max3421.c.

◆ hcd_init()

bool hcd_init ( uint8_t  rhport,
const tusb_rhport_init_t rh_init 
)

Definition at line 497 of file hcd_max3421.c.

◆ hcd_int_disable()

void hcd_int_disable ( uint8_t  rhport)

Definition at line 577 of file hcd_max3421.c.

◆ hcd_int_enable()

void hcd_int_enable ( uint8_t  rhport)

Definition at line 571 of file hcd_max3421.c.

◆ hcd_int_handler()

void hcd_int_handler ( uint8_t  rhport,
bool  in_isr 
)

Definition at line 1002 of file hcd_max3421.c.

◆ hcd_port_connect_status()

bool hcd_port_connect_status ( uint8_t  rhport)

Definition at line 592 of file hcd_max3421.c.

◆ hcd_port_reset()

void hcd_port_reset ( uint8_t  rhport)

Definition at line 599 of file hcd_max3421.c.

◆ hcd_port_reset_end()

void hcd_port_reset_end ( uint8_t  rhport)

Definition at line 604 of file hcd_max3421.c.

◆ hcd_port_speed_get()

tusb_speed_t hcd_port_speed_get ( uint8_t  rhport)

Definition at line 609 of file hcd_max3421.c.

◆ hcd_setup_send()

bool hcd_setup_send ( uint8_t  rhport,
uint8_t  daddr,
uint8_t const  setup_packet[8] 
)

Definition at line 775 of file hcd_max3421.c.

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
#ifndef CFG_TUH_ENDPOINT_MAX
#define CFG_TUH_ENDPOINT_MAX 16
#endif
typedef enum {
HCD_EVENT_DEVICE_ATTACH,
HCD_EVENT_DEVICE_REMOVE,
HCD_EVENT_XFER_COMPLETE,
USBH_EVENT_FUNC_CALL,
HCD_EVENT_COUNT
} hcd_eventid_t