40 #ifndef _USBREQUESTS_H_ 41 #define _USBREQUESTS_H_ 112 #define USBGenericRequest_GETSTATUS 0 114 #define USBGenericRequest_CLEARFEATURE 1 116 #define USBGenericRequest_SETFEATURE 3 118 #define USBGenericRequest_SETADDRESS 5 120 #define USBGenericRequest_GETDESCRIPTOR 6 122 #define USBGenericRequest_SETDESCRIPTOR 7 124 #define USBGenericRequest_GETCONFIGURATION 8 126 #define USBGenericRequest_SETCONFIGURATION 9 128 #define USBGenericRequest_GETINTERFACE 10 130 #define USBGenericRequest_SETINTERFACE 11 132 #define USBGenericRequest_SYNCHFRAME 12 144 #define USBGenericRequest_DEVICE 0 146 #define USBGenericRequest_INTERFACE 1 148 #define USBGenericRequest_ENDPOINT 2 150 #define USBGenericRequest_OTHER 3 161 #define USBGenericRequest_STANDARD 0 163 #define USBGenericRequest_CLASS 1 165 #define USBGenericRequest_VENDOR 2 175 #define USBGenericRequest_OUT 0 177 #define USBGenericRequest_IN 1 210 #define USBFeatureRequest_ENDPOINTHALT 0 212 #define USBFeatureRequest_DEVICEREMOTEWAKEUP 1 214 #define USBFeatureRequest_TESTMODE 2 216 #define USBFeatureRequest_OTG 0x0B 218 #define USBFeatureRequest_OTG_B_HNP_ENABLE 3 220 #define USBFeatureRequest_OTG_A_HNP_SUPPORT 4 222 #define USBFeatureRequest_OTG_A_ALT_HNP_SUPPORT 5 237 #define USBFeatureRequest_TESTJ 1 239 #define USBFeatureRequest_TESTK 2 242 #define USBFeatureRequest_TESTSE0NAK 3 244 #define USBFeatureRequest_TESTPACKET 4 246 #define USBFeatureRequest_TESTFORCEENABLE 5 248 #define USBFeatureRequest_TESTSENDZLP 6 265 #if defined ( __CC_ARM ) 266 #elif defined ( __ICCARM__ ) 267 #define __attribute__(...) 268 #elif defined ( __GNUC__ ) uint8_t USBSetAddressRequest_GetAddress(const USBGenericRequest *request)
uint8_t USBGenericRequest_GetRecipient(const USBGenericRequest *request)
uint8_t USBGenericRequest_GetType(const USBGenericRequest *request)
uint16_t USBGenericRequest_GetValue(const USBGenericRequest *request)
uint8_t USBInterfaceRequest_GetInterface(const USBGenericRequest *request)
uint8_t USBSetConfigurationRequest_GetConfiguration(const USBGenericRequest *request)
uint16_t USBGenericRequest_GetLength(const USBGenericRequest *request)
uint8_t USBFeatureRequest_GetTestSelector(const USBGenericRequest *request)
uint8_t USBGenericRequest_GetDirection(const USBGenericRequest *request)
uint8_t USBGenericRequest_GetEndpointNumber(const USBGenericRequest *request)
uint8_t USBGetDescriptorRequest_GetDescriptorType(const USBGenericRequest *request)
uint8_t USBGenericRequest_GetRequest(const USBGenericRequest *request)
uint8_t USBInterfaceRequest_GetAlternateSetting(const USBGenericRequest *request)
uint16_t USBGenericRequest_GetIndex(const USBGenericRequest *request)
uint8_t USBGetDescriptorRequest_GetDescriptorIndex(const USBGenericRequest *request)
uint8_t USBFeatureRequest_GetFeatureSelector(const USBGenericRequest *request)