| USBD ROM Stack 1.0 ROM based USB device stack

Data Structures | Enumerations
USB Device Controller Driver

## Detailed Description

# Module Description

The Device Controller Driver Layer implements the routines to deal directly with the hardware.

## Data Structures
struct | USBD_HW_API_T
| Hardware API functions structure.This module exposes functions which interact directly with USB device controller hardware. More...

## Enumerations
enum | USBD_EVENT_T { USB_EVT_SETUP = 1, USB_EVT_OUT, USB_EVT_IN, USB_EVT_OUT_NAK, USB_EVT_IN_NAK, USB_EVT_OUT_STALL, USB_EVT_IN_STALL, USB_EVT_OUT_DMA_EOT, USB_EVT_IN_DMA_EOT, USB_EVT_OUT_DMA_NDR, USB_EVT_IN_DMA_NDR, USB_EVT_OUT_DMA_ERR, USB_EVT_IN_DMA_ERR, USB_EVT_RESET, USB_EVT_SOF, USB_EVT_DEV_STATE, USB_EVT_DEV_ERROR }

## Enumeration Type Documentation

## ◆ USBD_EVENT_T

enum USBD_EVENT_T

USB Endpoint/class handler Callback Events.

Enumerator
USB_EVT_SETUP | 1 Setup Packet received
USB_EVT_OUT | 2 OUT Packet received
USB_EVT_IN | 3 IN Packet sent
USB_EVT_OUT_NAK | 4 OUT Packet - Not Acknowledged
USB_EVT_IN_NAK | 5 IN Packet - Not Acknowledged
USB_EVT_OUT_STALL | 6 OUT Packet - Stalled
USB_EVT_IN_STALL | 7 IN Packet - Stalled
USB_EVT_OUT_DMA_EOT | 8 DMA OUT EP - End of Transfer
USB_EVT_IN_DMA_EOT | 9 DMA IN EP - End of Transfer
USB_EVT_OUT_DMA_NDR | 10 DMA OUT EP - New Descriptor Request
USB_EVT_IN_DMA_NDR | 11 DMA IN EP - New Descriptor Request
USB_EVT_OUT_DMA_ERR | 12 DMA OUT EP - Error
USB_EVT_IN_DMA_ERR | 13 DMA IN EP - Error
USB_EVT_RESET | 14 Reset event recieved
USB_EVT_SOF | 15 Start of Frame event
USB_EVT_DEV_STATE | 16 Device status events
USB_EVT_DEV_ERROR | 17 Device error events