00001 #ifndef _USB_STANDARD_REQUEST_H_
00002 #define _USB_STANDARD_REQUEST_H_
00003
00004
00005
00006 #include "usb_task.h"
00007 #include "usb_descriptors.h"
00008
00009
00010
00011
00012
00015
00016
00017
00018
00019 #define ATTACHED 0
00020 #define POWERED 1
00021 #define DEFAULT 2
00022 #define ADDRESSED 3
00023 #define CONFIGURED 4
00024 #define SUSPENDED 5
00025
00026 #define USB_REMOTE_WAKEUP 1
00027 #define OTG_B_HNP_ENABLE 3
00028 #define OTG_A_HNP_SUPPORT 4
00029 #define OTG_A_ALT_HNP_SUPPORT 5
00030
00031
00032
00033
00036 #define Is_device_enumerated() ((usb_configuration_nb!=0) ? TRUE : FALSE)
00037 #define Is_device_not_enumerated() ((usb_configuration_nb!=0) ? FALSE : TRUE)
00038
00039
00040
00041
00061 void usb_process_request( void);
00062
00072 void usb_generate_remote_wakeup(void);
00073
00074 extern U8 usb_configuration_nb;
00075
00076
00077 #if (USE_DEVICE_SN_UNIQUE==ENABLE)
00078 extern U8 f_get_serial_string;
00079 #endif
00080
00082
00083 #endif // _USB_STANDARD_REQUEST_H_
00084