Open FFBoard
Open source force feedback firmware
hcd_pio_usb.c File Reference

Go to the source code of this file.

Functions

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)
 
void hcd_port_reset (uint8_t rhport)
 
void hcd_port_reset_end (uint8_t rhport)
 
bool hcd_port_connect_status (uint8_t rhport)
 
tusb_speed_t hcd_port_speed_get (uint8_t rhport)
 
void hcd_device_close (uint8_t rhport, uint8_t dev_addr)
 
uint32_t hcd_frame_number (uint8_t rhport)
 
void hcd_int_enable (uint8_t rhport)
 
void hcd_int_disable (uint8_t rhport)
 
bool hcd_edpt_open (uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const *desc_ep)
 
bool hcd_edpt_xfer (uint8_t rhport, uint8_t dev_addr, 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 dev_addr, uint8_t const setup_packet[8])
 
bool hcd_edpt_clear_stall (uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr)
 
static void __no_inline_not_in_flash_func() handle_endpoint_irq (root_port_t *rport, xfer_result_t result, volatile uint32_t *ep_reg)
 
void __no_inline_not_in_flash_func() pio_usb_host_irq_handler (uint8_t root_id)
 

Variables

static pio_usb_configuration_t pio_host_cfg = PIO_USB_DEFAULT_CONFIG
 

Function Documentation

◆ handle_endpoint_irq()

static void __no_inline_not_in_flash_func() handle_endpoint_irq ( root_port_t *  rport,
xfer_result_t  result,
volatile uint32_t *  ep_reg 
)
static

Definition at line 162 of file hcd_pio_usb.c.

◆ hcd_configure()

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

Definition at line 51 of file hcd_pio_usb.c.

◆ hcd_device_close()

void hcd_device_close ( uint8_t  rhport,
uint8_t  dev_addr 
)

Definition at line 94 of file hcd_pio_usb.c.

◆ hcd_edpt_abort_xfer()

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

Definition at line 130 of file hcd_pio_usb.c.

◆ hcd_edpt_clear_stall()

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

Definition at line 154 of file hcd_pio_usb.c.

◆ hcd_edpt_open()

bool hcd_edpt_open ( uint8_t  rhport,
uint8_t  dev_addr,
tusb_desc_endpoint_t const *  desc_ep 
)

Definition at line 116 of file hcd_pio_usb.c.

◆ hcd_edpt_xfer()

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

Definition at line 125 of file hcd_pio_usb.c.

◆ hcd_frame_number()

uint32_t hcd_frame_number ( uint8_t  rhport)

Definition at line 99 of file hcd_pio_usb.c.

◆ hcd_init()

bool hcd_init ( uint8_t  rhport,
const tusb_rhport_init_t rh_init 
)

Definition at line 58 of file hcd_pio_usb.c.

◆ hcd_int_disable()

void hcd_int_disable ( uint8_t  rhport)

Definition at line 108 of file hcd_pio_usb.c.

◆ hcd_int_enable()

void hcd_int_enable ( uint8_t  rhport)

Definition at line 104 of file hcd_pio_usb.c.

◆ hcd_port_connect_status()

bool hcd_port_connect_status ( uint8_t  rhport)

Definition at line 78 of file hcd_pio_usb.c.

◆ hcd_port_reset()

void hcd_port_reset ( uint8_t  rhport)

Definition at line 68 of file hcd_pio_usb.c.

◆ hcd_port_reset_end()

void hcd_port_reset_end ( uint8_t  rhport)

Definition at line 73 of file hcd_pio_usb.c.

◆ hcd_port_speed_get()

tusb_speed_t hcd_port_speed_get ( uint8_t  rhport)

Definition at line 87 of file hcd_pio_usb.c.

◆ hcd_setup_send()

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

Definition at line 135 of file hcd_pio_usb.c.

◆ pio_usb_host_irq_handler()

void __no_inline_not_in_flash_func() pio_usb_host_irq_handler ( uint8_t  root_id)

Definition at line 181 of file hcd_pio_usb.c.

Variable Documentation

◆ pio_host_cfg

pio_usb_configuration_t pio_host_cfg = PIO_USB_DEFAULT_CONFIG
static

Definition at line 46 of file hcd_pio_usb.c.