NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usb_pwr.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USB_PWR_H
30 #define __USB_PWR_H
31 
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported types ------------------------------------------------------------*/
34 typedef enum _RESUME_STATE {
43 } RESUME_STATE;
44 
45 typedef enum _DEVICE_STATE {
52 } DEVICE_STATE;
53 
54 /* Exported constants --------------------------------------------------------*/
55 /* Exported macro ------------------------------------------------------------*/
56 /* Exported functions ------------------------------------------------------- */
57 void Suspend(void);
58 void Resume_Init(void);
59 void Resume(RESUME_STATE eResumeSetVal);
60 RESULT PowerOn(void);
61 RESULT PowerOff(void);
62 
63 /* External variables --------------------------------------------------------*/
64 extern __IO uint32_t bDeviceState; /* USB device status */
65 extern __IO boolean fSuspendEnabled; /* true when suspend is possible */ // HJI
66 #endif /*__USB_PWR_H*/
67 
68 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
__IO boolean fSuspendEnabled
Definition: usb_pwr.c:39
RESULT PowerOn(void)
Definition: usb_pwr.c:61
void Resume(RESUME_STATE eResumeSetVal)
Definition: usb_pwr.c:255
Definition: usb_pwr.h:35
Definition: usb_pwr.h:36
__IO uint32_t bDeviceState
Definition: usb_pwr.c:38
Definition: usb_pwr.h:46
Definition: usb_pwr.h:39
Definition: usb_pwr.h:49
void Resume_Init(void)
Definition: usb_pwr.c:218
Definition: usb_pwr.h:37
Definition: usb_pwr.h:50
Definition: usb_pwr.h:42
Definition: usb_pwr.h:41
_DEVICE_STATE
Definition: usb_pwr.h:45
Definition: usb_pwr.h:48
Definition: usb_pwr.h:47
enum _RESUME_STATE RESUME_STATE
enum _DEVICE_STATE DEVICE_STATE
Definition: usb_pwr.h:38
_RESUME_STATE
Definition: usb_pwr.h:34
Definition: usb_pwr.h:40
void Suspend(void)
Definition: usb_pwr.c:114
RESULT PowerOff(void)
Definition: usb_pwr.c:91
Definition: usb_pwr.h:51