| Nano100AN Series BSP V3.02.002 The Board Support Package for Nano100AN Series

Macros
USBD Exported Constants
NANO100 Device Driver » USBD Driver

## Macros
#define | USBD_BUF_BASE (USBD_BASE+0x100)
#define | USBD_MAX_EP 6
#define | EP0 0
#define | EP1 1
#define | EP2 2
#define | EP3 3
#define | EP4 4
#define | EP5 5
#define | USBD_WAKEUP_EN USBD_CTL_WAKEUP_EN_Msk
#define | USBD_DRVSE0 USBD_CTL_DRVSE0_Msk
#define | USBD_DPPU_EN USBD_CTL_DPPU_EN_Msk
#define | USBD_PWRDN USBD_CTL_PWRDB_Msk
#define | USBD_PHY_EN USBD_CTL_PHY_EN_Msk
#define | USBD_USB_EN USBD_CTL_USB_EN_Msk
#define | USBD_INT_BUS USBD_INTEN_BUSEVT_IE_Msk
#define | USBD_INT_USB USBD_INTEN_USBEVT_IE_Msk
#define | USBD_INT_FLDET USBD_INTEN_FLDET_IE_Msk
#define | USBD_INT_WAKEUP USBD_INTEN_WAKEUP_IE_Msk
#define | USBD_INTSTS_WAKEUP USBD_INTSTS_WKEUP_STS_Msk
#define | USBD_INTSTS_FLDET USBD_INTSTS_FLD_STS_Msk
#define | USBD_INTSTS_BUS USBD_INTSTS_BUS_STS_Msk
#define | USBD_INTSTS_USB USBD_INTSTS_USB_STS_Msk
#define | USBD_INTSTS_SETUP USBD_INTSTS_SETUP_Msk
#define | USBD_INTSTS_EP0 USBD_INTSTS_EPEVT0_Msk
#define | USBD_INTSTS_EP1 USBD_INTSTS_EPEVT1_Msk
#define | USBD_INTSTS_EP2 USBD_INTSTS_EPEVT2_Msk
#define | USBD_INTSTS_EP3 USBD_INTSTS_EPEVT3_Msk
#define | USBD_INTSTS_EP4 USBD_INTSTS_EPEVT4_Msk
#define | USBD_INTSTS_EP5 USBD_INTSTS_EPEVT5_Msk
#define | USBD_STATE_USBRST USBD_BUSSTS_USBRST_Msk
#define | USBD_STATE_SUSPEND USBD_BUSSTS_SUSPEND_Msk
#define | USBD_STATE_RESUME USBD_BUSSTS_RESUME_Msk
#define | USBD_STATE_TIMEOUT USBD_BUSSTS_TIMEOUT_Msk
#define | USBD_CFG_SSTALL USBD_CFG_SSTALL_Msk
#define | USBD_CFG_CSTALL USBD_CFG_CSTALL_Msk
#define | USBD_CFG_EPMODE_DISABLE (0ul << USBD_CFG_EPMODE_Pos)
#define | USBD_CFG_EPMODE_OUT (1ul << USBD_CFG_EPMODE_Pos)
#define | USBD_CFG_EPMODE_IN (2ul << USBD_CFG_EPMODE_Pos)
#define | USBD_CFG_TYPE_ISO (1ul << USBD_CFG_ISOCH_Pos)

## Detailed Description

## Macro Definition Documentation

## ◆ EP0

#define EP0 0

Endpoint 0

Definition at line 49 of file usbd.h.

## ◆ EP1

#define EP1 1

Endpoint 1

Definition at line 50 of file usbd.h.

## ◆ EP2

#define EP2 2

Endpoint 2

Definition at line 51 of file usbd.h.

## ◆ EP3

#define EP3 3

Endpoint 3

Definition at line 52 of file usbd.h.

## ◆ EP4

#define EP4 4

Endpoint 4

Definition at line 53 of file usbd.h.

## ◆ EP5

#define EP5 5

Endpoint 5

Definition at line 54 of file usbd.h.

## ◆ USBD_BUF_BASE

#define USBD_BUF_BASE (USBD_BASE+0x100)

Definition at line 45 of file usbd.h.

## ◆ USBD_CFG_CSTALL

#define USBD_CFG_CSTALL USBD_CFG_CSTALL_Msk

Clear Stall

Definition at line 143 of file usbd.h.

## ◆ USBD_CFG_EPMODE_DISABLE

#define USBD_CFG_EPMODE_DISABLE (0ul << USBD_CFG_EPMODE_Pos)

Endpoint Disable

Definition at line 145 of file usbd.h.

## ◆ USBD_CFG_EPMODE_IN

#define USBD_CFG_EPMODE_IN (2ul << USBD_CFG_EPMODE_Pos)

In Endpoint

Definition at line 147 of file usbd.h.

## ◆ USBD_CFG_EPMODE_OUT

#define USBD_CFG_EPMODE_OUT (1ul << USBD_CFG_EPMODE_Pos)

Out Endpoint

Definition at line 146 of file usbd.h.

## ◆ USBD_CFG_SSTALL

#define USBD_CFG_SSTALL USBD_CFG_SSTALL_Msk

Set Stall

Definition at line 142 of file usbd.h.

## ◆ USBD_CFG_TYPE_ISO

#define USBD_CFG_TYPE_ISO (1ul << USBD_CFG_ISOCH_Pos)

Isochronous

Definition at line 148 of file usbd.h.

## ◆ USBD_DPPU_EN

#define USBD_DPPU_EN USBD_CTL_DPPU_EN_Msk

USB D+ Pull-up Enable

Definition at line 115 of file usbd.h.

## ◆ USBD_DRVSE0

#define USBD_DRVSE0 USBD_CTL_DRVSE0_Msk

Drive SE0

Definition at line 113 of file usbd.h.

## ◆ USBD_INT_BUS

#define USBD_INT_BUS USBD_INTEN_BUSEVT_IE_Msk

USB Bus Event Interrupt

Definition at line 120 of file usbd.h.

## ◆ USBD_INT_FLDET

#define USBD_INT_FLDET USBD_INTEN_FLDET_IE_Msk

USB Float Detect Interrupt

Definition at line 122 of file usbd.h.

## ◆ USBD_INT_USB

#define USBD_INT_USB USBD_INTEN_USBEVT_IE_Msk

USB usb Event Interrupt

Definition at line 121 of file usbd.h.

## ◆ USBD_INT_WAKEUP

#define USBD_INT_WAKEUP USBD_INTEN_WAKEUP_IE_Msk

USB Wake-up Interrupt

Definition at line 123 of file usbd.h.

## ◆ USBD_INTSTS_BUS

#define USBD_INTSTS_BUS USBD_INTSTS_BUS_STS_Msk

USB Bus Event Interrupt Status

Definition at line 127 of file usbd.h.

## ◆ USBD_INTSTS_EP0

#define USBD_INTSTS_EP0 USBD_INTSTS_EPEVT0_Msk

USB Endpoint 0 Event

Definition at line 130 of file usbd.h.

## ◆ USBD_INTSTS_EP1

#define USBD_INTSTS_EP1 USBD_INTSTS_EPEVT1_Msk

USB Endpoint 1 Event

Definition at line 131 of file usbd.h.

## ◆ USBD_INTSTS_EP2

#define USBD_INTSTS_EP2 USBD_INTSTS_EPEVT2_Msk

USB Endpoint 2 Event

Definition at line 132 of file usbd.h.

## ◆ USBD_INTSTS_EP3

#define USBD_INTSTS_EP3 USBD_INTSTS_EPEVT3_Msk

USB Endpoint 3 Event

Definition at line 133 of file usbd.h.

## ◆ USBD_INTSTS_EP4

#define USBD_INTSTS_EP4 USBD_INTSTS_EPEVT4_Msk

USB Endpoint 4 Event

Definition at line 134 of file usbd.h.

## ◆ USBD_INTSTS_EP5

#define USBD_INTSTS_EP5 USBD_INTSTS_EPEVT5_Msk

USB Endpoint 5 Event

Definition at line 135 of file usbd.h.

## ◆ USBD_INTSTS_FLDET

#define USBD_INTSTS_FLDET USBD_INTSTS_FLD_STS_Msk

USB Float Detect Interrupt Status

Definition at line 126 of file usbd.h.

## ◆ USBD_INTSTS_SETUP

#define USBD_INTSTS_SETUP USBD_INTSTS_SETUP_Msk

USB Setup Event

Definition at line 129 of file usbd.h.

## ◆ USBD_INTSTS_USB

#define USBD_INTSTS_USB USBD_INTSTS_USB_STS_Msk

USB usb Event Interrupt Status

Definition at line 128 of file usbd.h.

## ◆ USBD_INTSTS_WAKEUP

#define USBD_INTSTS_WAKEUP USBD_INTSTS_WKEUP_STS_Msk

USB Wakeup Interrupt Status

Definition at line 125 of file usbd.h.

## ◆ USBD_MAX_EP

#define USBD_MAX_EP 6

Definition at line 47 of file usbd.h.

## ◆ USBD_PHY_EN

#define USBD_PHY_EN USBD_CTL_PHY_EN_Msk

PHY Enable

Definition at line 117 of file usbd.h.

## ◆ USBD_PWRDN

#define USBD_PWRDN USBD_CTL_PWRDB_Msk

PHY Turn-On

Definition at line 116 of file usbd.h.

## ◆ USBD_STATE_RESUME

#define USBD_STATE_RESUME USBD_BUSSTS_RESUME_Msk

USB Bus Resume

Definition at line 139 of file usbd.h.

## ◆ USBD_STATE_SUSPEND

#define USBD_STATE_SUSPEND USBD_BUSSTS_SUSPEND_Msk

USB Bus Suspend

Definition at line 138 of file usbd.h.

## ◆ USBD_STATE_TIMEOUT

#define USBD_STATE_TIMEOUT USBD_BUSSTS_TIMEOUT_Msk

USB Bus Timeout

Definition at line 140 of file usbd.h.

## ◆ USBD_STATE_USBRST

#define USBD_STATE_USBRST USBD_BUSSTS_USBRST_Msk

USB Bus Reset

Definition at line 137 of file usbd.h.

## ◆ USBD_USB_EN

#define USBD_USB_EN USBD_CTL_USB_EN_Msk

USB Enable

Definition at line 118 of file usbd.h.

## ◆ USBD_WAKEUP_EN

#define USBD_WAKEUP_EN USBD_CTL_WAKEUP_EN_Msk

USB Wake-up Enable

Definition at line 112 of file usbd.h.