libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
st_usbfs_v1.h File Reference
Include dependency graph for st_usbfs_v1.h:

Go to the source code of this file.

Macros

#define USB_EP_TX_ADDR(EP)    ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 0) * 2))
 
#define USB_EP_TX_COUNT(EP)    ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 2) * 2))
 
#define USB_EP_RX_ADDR(EP)    ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 4) * 2))
 
#define USB_EP_RX_COUNT(EP)    ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 6) * 2))
 
#define USB_GET_EP_TX_BUFF(EP)    (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_TX_ADDR(EP) * 2))
 
#define USB_GET_EP_RX_BUFF(EP)    (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_RX_ADDR(EP) * 2))
 

Macro Definition Documentation

◆ USB_EP_RX_ADDR

#define USB_EP_RX_ADDR (   EP)     ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 4) * 2))

Definition at line 47 of file st_usbfs_v1.h.

◆ USB_EP_RX_COUNT

#define USB_EP_RX_COUNT (   EP)     ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 6) * 2))

Definition at line 50 of file st_usbfs_v1.h.

◆ USB_EP_TX_ADDR

#define USB_EP_TX_ADDR (   EP)     ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 0) * 2))

Definition at line 41 of file st_usbfs_v1.h.

◆ USB_EP_TX_COUNT

#define USB_EP_TX_COUNT (   EP)     ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 2) * 2))

Definition at line 44 of file st_usbfs_v1.h.

◆ USB_GET_EP_RX_BUFF

#define USB_GET_EP_RX_BUFF (   EP)     (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_RX_ADDR(EP) * 2))

Definition at line 58 of file st_usbfs_v1.h.

◆ USB_GET_EP_TX_BUFF

#define USB_GET_EP_TX_BUFF (   EP)     (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_TX_ADDR(EP) * 2))

Definition at line 55 of file st_usbfs_v1.h.