![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "../EndpointCommon.h"Go to the source code of this file.
Macros | |
| #define | USED_PHYSICAL_ENDPOINTS (ENDPOINT_DETAILS_MAXEP * 2)/* This macro effect memory size of the DCD */ |
| #define | USB_EN (0x1 << 7) /* Device Enable */ |
| #define | USB_SETUP_RCVD (0x1 << 8) /* SETUP token received */ |
| #define | USB_PLL_ON (0x1 << 9) /* PLL is always ON */ |
| #define | USB_LPM (0x1 << 11) /* LPM is supported */ |
| #define | USB_IntOnNAK_AO (0x1 << 12) /* Device Interrupt on NAK BULK OUT */ |
| #define | USB_IntOnNAK_AI (0x1 << 13) /* Device Interrupt on NAK BULK IN */ |
| #define | USB_IntOnNAK_CO (0x1 << 14) /* Device Interrupt on NAK CTRL OUT */ |
| #define | USB_IntOnNAK_CI (0x1 << 15) /* Device Interrupt on NAK CTRL IN */ |
| #define | USB_DCON (0x1 << 16) /* Device connect */ |
| #define | USB_DSUS (0x1 << 17) /* Device Suspend */ |
| #define | USB_LPM_SUS (0x1 << 19) /* LPM suspend */ |
| #define | USB_REMOTE_WAKE (0x1 << 20) /* LPM Remote Wakeup */ |
| #define | USB_DCON_C (0x1 << 24) /* Device connection change */ |
| #define | USB_DSUS_C (0x1 << 25) /* Device SUSPEND change */ |
| #define | USB_DRESET_C (0x1 << 26) /* Device RESET */ |
| #define | USB_VBUS_DBOUNCE (0x1 << 28) /* Device VBUS detect */ |
| #define | EP0_INT (0x1 << 0) |
| #define | EP1_INT (0x1 << 1) |
| #define | EP2_INT (0x1 << 2) |
| #define | EP3_INT (0x1 << 3) |
| #define | EP4_INT (0x1 << 4) |
| #define | EP5_INT (0x1 << 5) |
| #define | EP6_INT (0x1 << 6) |
| #define | EP7_INT (0x1 << 7) |
| #define | EP8_INT (0x1 << 8) |
| #define | EP9_INT (0x1 << 9) |
| #define | FRAME_INT (0x1 << 30) |
| #define | DEV_STAT_INT (0x80000000) |
| #define | PKT_LNGTH_MASK 0x000003FF |
| #define | ERR_NOERROR 0x00 |
| #define | ERR_PID_ENCODE 0x01 |
| #define | ERR_UNKNOWN_PID 0x02 |
| #define | ERR_UNEXPECT_PKT 0x03 |
| #define | ERR_TCRC 0x04 |
| #define | ERR_DCRC 0x05 |
| #define | ERR_TIMEOUT 0x06 |
| #define | ERR_BABBIE 0x07 |
| #define | ERR_EOF_PKT 0x08 |
| #define | ERR_TX_RX_NAK 0x09 |
| #define | ERR_SENT_STALL 0x0A |
| #define | ERR_BUF_OVERRUN 0x0B |
| #define | ERR_SENT_EPT_PKT 0x0C |
| #define | ERR_BIT_STUFF 0x0D |
| #define | ERR_SYNC 0x0E |
| #define | ERR_TOGGLE_BIT 0x0F |
Variables | |
| USB_CMD_STAT | EndPointCmdStsList [10][2] |
| uint8_t | USB_Device_ControlEndpointSize |