libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.

Defined Constants and Types for the USB module More...

Collaboration diagram for USB Defines:

Macros

#define USB_CTRL   MMIO32(USB_BASE + 0x000)
 
#define USB_STATUS   MMIO32(USB_BASE + 0x004)
 
#define USB_IF   MMIO32(USB_BASE + 0x008)
 
#define USB_IFS   MMIO32(USB_BASE + 0x00C)
 
#define USB_IFC   MMIO32(USB_BASE + 0x010)
 
#define USB_IEN   MMIO32(USB_BASE + 0x014)
 
#define USB_ROUTE   MMIO32(USB_BASE + 0x018)
 
#define USB_CTRL_BIASPROGEM23_MASK   (0x3 << 24)
 
#define USB_CTRL_BIASPROGEM01_MASK   (0x3 << 20)
 
#define USB_CTRL_VREGOSEN   (1 << 17)
 
#define USB_CTRL_VREGDIS   (1 << 16)
 
#define USB_CTRL_LEMIDLEEN   (1 << 9)
 
#define USB_CTRL_LEMPHYCTRL   (1 << 7)
 
#define USB_CTRL_LEMOSCCTRL_MASK   (0x3 << 4)
 
#define USB_CTRL_LEMOSCCTRL_NONE   (0x0 << 4)
 
#define USB_CTRL_LEMOSCCTRL_GATE   (0x1 << 4)
 
#define USB_CTRL_DMPUAP   (1 << 1)
 
#define USB_ROUTE_DMPUPEN   (1 << 2)
 
#define USB_ROUTE_PHYPEN   (1 << 0)
 

Detailed Description

Defined Constants and Types for the USB module

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ USB_CTRL

#define USB_CTRL   MMIO32(USB_BASE + 0x000)

Definition at line 36 of file hg/usb.h.

◆ USB_CTRL_BIASPROGEM01_MASK

#define USB_CTRL_BIASPROGEM01_MASK   (0x3 << 20)

Definition at line 48 of file hg/usb.h.

◆ USB_CTRL_BIASPROGEM23_MASK

#define USB_CTRL_BIASPROGEM23_MASK   (0x3 << 24)

Definition at line 46 of file hg/usb.h.

◆ USB_CTRL_DMPUAP

#define USB_CTRL_DMPUAP   (1 << 1)

Definition at line 61 of file hg/usb.h.

◆ USB_CTRL_LEMIDLEEN

#define USB_CTRL_LEMIDLEEN   (1 << 9)

Definition at line 53 of file hg/usb.h.

◆ USB_CTRL_LEMOSCCTRL_GATE

#define USB_CTRL_LEMOSCCTRL_GATE   (0x1 << 4)

Definition at line 59 of file hg/usb.h.

◆ USB_CTRL_LEMOSCCTRL_MASK

#define USB_CTRL_LEMOSCCTRL_MASK   (0x3 << 4)

Definition at line 57 of file hg/usb.h.

◆ USB_CTRL_LEMOSCCTRL_NONE

#define USB_CTRL_LEMOSCCTRL_NONE   (0x0 << 4)

Definition at line 58 of file hg/usb.h.

◆ USB_CTRL_LEMPHYCTRL

#define USB_CTRL_LEMPHYCTRL   (1 << 7)

Definition at line 55 of file hg/usb.h.

◆ USB_CTRL_VREGDIS

#define USB_CTRL_VREGDIS   (1 << 16)

Definition at line 51 of file hg/usb.h.

◆ USB_CTRL_VREGOSEN

#define USB_CTRL_VREGOSEN   (1 << 17)

Definition at line 50 of file hg/usb.h.

◆ USB_IEN

#define USB_IEN   MMIO32(USB_BASE + 0x014)

Definition at line 41 of file hg/usb.h.

◆ USB_IF

#define USB_IF   MMIO32(USB_BASE + 0x008)

Definition at line 38 of file hg/usb.h.

◆ USB_IFC

#define USB_IFC   MMIO32(USB_BASE + 0x010)

Definition at line 40 of file hg/usb.h.

◆ USB_IFS

#define USB_IFS   MMIO32(USB_BASE + 0x00C)

Definition at line 39 of file hg/usb.h.

◆ USB_ROUTE

#define USB_ROUTE   MMIO32(USB_BASE + 0x018)

Definition at line 42 of file hg/usb.h.

◆ USB_ROUTE_DMPUPEN

#define USB_ROUTE_DMPUPEN   (1 << 2)

Definition at line 66 of file hg/usb.h.

◆ USB_ROUTE_PHYPEN

#define USB_ROUTE_PHYPEN   (1 << 0)

Definition at line 68 of file hg/usb.h.

◆ USB_STATUS

#define USB_STATUS   MMIO32(USB_BASE + 0x004)

Definition at line 37 of file hg/usb.h.