This file contains USB device wrapper APIs.
Go to the source code of this file.
Data Structures | |
| struct | usb_handle_t |
| Structure representing the USB device handle. More... | |
Macros | |
| #define | BOOTPARAM_TIMEOUT_MS 60000U |
Enumerations | |
| enum | UsbPhy_ret_t { USB_PHY_OK = 0x01U, USB_PHY_ERR = 0x02U } |
| This enumeration defines the return status for USB PHY. More... | |
Functions | |
| UsbPhy_ret_t | usb_phy_power_sequence (void) |
| Performs the USB PHY power-on sequence. More... | |
| void | USB_configureInterrupt (uint32_t intr) |
| This function configures the interrupt. More... | |
| void | USB_disableInterrupt (uint32_t intr) |
| This function disables the interrupt. More... | |
| void | USB_clearInterrupt (void) |
| This function clears the MAIN0 interrupt. More... | |
Variables | |
| uint8_t | ep_in_buf [DWC_MAX_EPS - 1U][DWC_MAX_PACKET_SIZE] |
| Global buffers for USB IN endpoints. These buffers are used for data transmission from the device to the host. More... | |
| uint8_t | ep_out_buf [DWC_MAX_EPS - 1U][DWC_MAX_PACKET_SIZE] |
| Global buffers for USB OUT endpoints. These buffers are used for data reception from the host to the device. More... | |
| #define BOOTPARAM_TIMEOUT_MS 60000U |