Collaboration diagram for USB low level drivers module:
![]() |
Modules | |
Configuration macros for endpoints | |
List of the standard macro used to configure pipes and endpoints. | |
USB Pads Regulator drivers | |
Turns ON/OFF USB pads regulator. | |
USB common management drivers | |
These macros manage the USB controller. | |
USB device controller drivers | |
These macros manage the USB Device controller. | |
USB endpoint drivers | |
These macros manage the common features of the endpoints. | |
USB host controller drivers | |
These macros manage the USB Host controller. | |
USB pipe drivers | |
These macros manage the common features of the pipes. | |
Defines | |
#define | MAX_EP_NB 7 |
#define | EP_CONTROL 0 |
#define | EP_1 1 |
#define | EP_2 2 |
#define | EP_3 3 |
#define | EP_4 4 |
#define | EP_5 5 |
#define | EP_6 6 |
#define | EP_7 7 |
#define | PIPE_CONTROL 0 |
#define | PIPE_0 0 |
#define | PIPE_1 1 |
#define | PIPE_2 2 |
#define | PIPE_3 3 |
#define | PIPE_4 4 |
#define | PIPE_5 5 |
#define | PIPE_6 6 |
#define | PIPE_7 7 |
#define | MSK_EP_DIR 0x7F |
#define | MSK_UADD 0x7F |
#define | MSK_EPTYPE 0xC0 |
#define | MSK_EPSIZE 0x70 |
#define | MSK_EPBK 0x0C |
#define | MSK_DTSEQ 0x0C |
#define | MSK_NBUSYBK 0x03 |
#define | MSK_NBUSYBK 0x03 |
#define | MSK_CURRBK 0x03 |
#define | MSK_DAT 0xFF |
#define | MSK_BYCTH 0x07 |
#define | MSK_BYCTL 0xFF |
#define | MSK_EPINT 0x7F |
#define | MSK_HADDR 0xFF |
#define | MSK_PNUM 0x07 |
#define | MSK_PRST 0x7F |
#define | MSK_PTYPE 0xC0 |
#define | MSK_PTYPE 0xC0 |
#define | MSK_PTOKEN 0x30 |
#define | MSK_PTOKEN 0x30 |
#define | MSK_PEPNUM 0x0F |
#define | MSK_PEPNUM 0x0F |
#define | MSK_PSIZE 0x70 |
#define | MSK_PSIZE 0x70 |
#define | MSK_PBK 0x0C |
#define | MSK_PBK 0x0C |
#define | MSK_ERROR 0x1F |
#define | MSK_TOKEN_SETUP 0x30 |
#define | MSK_TOKEN_IN 0x10 |
#define | MSK_TOKEN_OUT 0x20 |
#define | TYPE_CONTROL 0 |
#define | TYPE_ISOCHRONOUS 1 |
#define | TYPE_BULK 2 |
#define | TYPE_INTERRUPT 3 |
#define | DIRECTION_OUT 0 |
#define | DIRECTION_IN 1 |
#define | SIZE_8 0 |
#define | SIZE_16 1 |
#define | SIZE_32 2 |
#define | SIZE_64 3 |
#define | SIZE_128 4 |
#define | SIZE_256 5 |
#define | SIZE_512 6 |
#define | SIZE_1024 7 |
#define | ONE_BANK 0 |
#define | TWO_BANKS 1 |
#define | NYET_ENABLED 0 |
#define | NYET_DISABLED 1 |
#define | TOKEN_SETUP 0 |
#define | TOKEN_IN 1 |
#define | TOKEN_OUT 2 |
#define | wSWAP(x) |
wSWAP This macro swaps the U8 order in words. | |
#define | Usb_write_word_enum_struc(x) (wSWAP(x)) |
Usb_write_word_enum_struc This macro help to fill the U16 fill in USB enumeration struct. |
|
|
|
Definition at line 32 of file usb_drv.h. Referenced by usb_clear_feature(), usb_device_task(), usb_init_device(), and usb_set_feature(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 52 of file usb_drv.h. Referenced by usb_clear_feature(), usb_get_status(), and usb_set_feature(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 92 of file usb_drv.h. Referenced by usb_init_device(). |
|
|
|
|
|
Definition at line 95 of file usb_drv.h. Referenced by usb_user_endpoint_init(). |
|
Definition at line 98 of file usb_drv.h. Referenced by usb_init_device(), and usb_user_endpoint_init(). |
|
Definition at line 99 of file usb_drv.h. Referenced by usb_user_endpoint_init(). |
|
Definition at line 102 of file usb_drv.h. Referenced by host_determine_pipe_size(), and usb_user_endpoint_init(). |
|
Definition at line 103 of file usb_drv.h. Referenced by host_determine_pipe_size(). |
|
Definition at line 104 of file usb_drv.h. Referenced by host_determine_pipe_size(). |
|
Definition at line 105 of file usb_drv.h. Referenced by host_determine_pipe_size(), and usb_init_device(). |
|
Definition at line 106 of file usb_drv.h. Referenced by host_determine_pipe_size(). |
|
Definition at line 107 of file usb_drv.h. Referenced by host_determine_pipe_size(). |
|
Definition at line 108 of file usb_drv.h. Referenced by host_determine_pipe_size(). |
|
Definition at line 109 of file usb_drv.h. Referenced by host_determine_pipe_size(). |
|
Definition at line 113 of file usb_drv.h. Referenced by usb_init_device(), and usb_user_endpoint_init(). |
|
|
|
Definition at line 117 of file usb_drv.h. Referenced by usb_user_endpoint_init(). |
|
Definition at line 118 of file usb_drv.h. Referenced by usb_init_device(). |
|
|
|
|
|
|
|
Value: ( (((x)>>8)&0x00FF) \ | (((x)<<8)&0xFF00) \ )
|
|
Usb_write_word_enum_struc This macro help to fill the U16 fill in USB enumeration struct. Depending on the CPU architecture, the macro swap or not the nibbles
|