#include "chip.h"
#include "USBD_HAL.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | TransferHeader |
struct | Transfer |
struct | MblTransfer |
struct | Endpoint |
Defines | |
#define | CHIP_USB_UDP |
#define | CHIP_USB_PULLUP_INTERNAL |
#define | CHIP_USB_NUMENDPOINTS 8 |
#define | CHIP_USB_ENDPOINTS_MAXPACKETSIZE(i) |
#define | CHIP_USB_ENDPOINTS_BANKS(i) |
#define | UDP_CSR_RXDATA_BK (UDP_CSR_RX_DATA_BK0 | UDP_CSR_RX_DATA_BK1) |
#define | UDP_ENDPOINT_DISABLED 0 |
#define | UDP_ENDPOINT_HALTED 1 |
#define | UDP_ENDPOINT_IDLE 2 |
#define | UDP_ENDPOINT_SENDING 3 |
#define | UDP_ENDPOINT_RECEIVING 4 |
#define | UDP_ENDPOINT_SENDINGM 5 |
#define | UDP_ENDPOINT_RECEIVINGM 6 |
#define | REG_NO_EFFECT_1_ALL |
#define | SET_CSR(endpoint, flags) |
#define | CLEAR_CSR(endpoint, flags) |
#define | MBL_NbBuffer(i, o, size) (((i)>(o))?((i)-(o)):((i)+(size)-(o))) |
#define | MBL_FULL 1 |
#define | MBL_NULL 2 |
Functions | |
void | USBD_IrqHandler (void) |
void | USBD_HAL_ResetEPs (uint32_t bmEPs, uint8_t bStatus, uint8_t bKeepCfg) |
Reset endpoints and disable them.
| |
void | USBD_HAL_CancelIo (uint32_t bmEPs) |
uint8_t | USBD_HAL_ConfigureEP (const USBEndpointDescriptor *pDescriptor) |
uint8_t | USBD_HAL_SetTransferCallback (uint8_t bEP, TransferCallback fCallback, void *pCbData) |
uint8_t | USBD_HAL_SetupMblTransfer (uint8_t bEndpoint, USBDTransferBuffer *pMbList, uint16_t mblSize, uint16_t startOffset) |
uint8_t | USBD_HAL_Write (uint8_t bEndpoint, const void *pData, uint32_t dLength) |
uint8_t | USBD_HAL_Read (uint8_t bEndpoint, void *pData, uint32_t dLength) |
void | USBD_HAL_Connect (void) |
Enable Pull-up, connect. | |
void | USBD_HAL_Disconnect (void) |
Disable Pull-up, disconnect. | |
void | USBD_HAL_RemoteWakeUp (void) |
void | USBD_HAL_SetAddress (uint8_t address) |
void | USBD_HAL_SetConfiguration (uint8_t cfgnum) |
void | USBD_HAL_Init (void) |
uint8_t | USBD_HAL_Stall (uint8_t bEP) |
uint8_t | USBD_HAL_Halt (uint8_t bEndpoint, uint8_t ctl) |
uint8_t | USBD_HAL_IsHighSpeed (void) |
void | USBD_HAL_Suspend (void) |
void | USBD_HAL_Activate (void) |
void | USBD_HAL_Test (uint8_t bIndex) |
Implementation of USB device functions on a UDP controller.
See USBD API Methods USBD API Methods.
Definition in file hal_udp.c.