USBController.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 /* Enable C linkage for C++ Compilers: */
5 #if defined(__cplusplus)
6 extern "C" {
7 #endif
8 
9 /* Defines: */
15 #define ENDPOINT_DIR_MASK 0x80
16 
20 #define ENDPOINT_DIR_OUT 0x00
21 
25 #define ENDPOINT_DIR_IN 0x80
26 
27 
33 #define EP_TYPE_MASK 0x03
34 
39 #define EP_TYPE_CONTROL 0x00
40 
45 #define EP_TYPE_ISOCHRONOUS 0x01
46 
51 #define EP_TYPE_BULK 0x02
52 
57 #define EP_TYPE_INTERRUPT 0x03
58 
71 #define EP_SYNC_TYPE_NO_SYNC 0
72 #define EP_SYNC_TYPE_ASYN 1
73 #define EP_SYNC_TYPE_ADAPTIVE 2
74 #define EP_SYNC_TYPE_SYNC 3
75 
76 #define EP_USAGE_TYPE_DATA 0
77 #define EP_USAGE_TYPE_FEEDBACK 1
78 #define EP_USAGE_TYPE_FEEDBACK_DATA 2
79 #define EP_USAGE_TYPE_RSV 3
80 
82 
83 /* Disable C linkage for C++ Compilers: */
84 #if defined(__cplusplus)
85 }
86 #endif
87