| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations
USB Device Controller Driver
On Chip USB Rom Drivers

## 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, 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 }
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, 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

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
  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 | 16 Device error events

Definition at line 48 of file usbd_hw.h.

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
  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 | 16 Device error events

Definition at line 50 of file usbd_hw.h.