This module has APIs for USB device driver. See this page, USB, for using USB using tinyUSB APIs
◆ UsbPhy_ret_t
This enumeration defines the return status for USB PHY.
| Enumerator |
|---|
| USB_PHY_OK | |
| USB_PHY_ERR | |
◆ USB_init()
This function initializes the USB driver.
◆ USB_dwcTask()
This function handles triggered events from the USB driver.
- process the events, check for the event type (device, EP or invalid etc) and invokes the appropriate handler
◆ USB_deinit()
This function De-Initialization USB driver.
◆ usb_phy_power_sequence()
Performs the USB PHY power-on sequence.
This function initializes the USB PHY by performing the necessary power-on sequence.
- Returns
- UsbPhy_ret_t indicating the status of the operation.
◆ USB_configureInterrupt()
| void USB_configureInterrupt |
( |
uint32_t |
intr | ) |
|
This function configures the interrupt.
- Parameters
-
| intr | Interrupt number or identifier. Specifies the interrupt to be handled or configured. |
◆ USB_disableInterrupt()
| void USB_disableInterrupt |
( |
uint32_t |
intr | ) |
|
This function disables the interrupt.
- Parameters
-
| intr | Interrupt number or identifier. Specifies the interrupt to be handled or configured. |
◆ USB_clearInterrupt()
| void USB_clearInterrupt |
( |
void |
| ) |
|
This function clears the MAIN0 interrupt.
◆ ep_in_buf
Global buffers for USB IN endpoints. These buffers are used for data transmission from the device to the host.
◆ ep_out_buf
Global buffers for USB OUT endpoints. These buffers are used for data reception from the host to the device.