dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
pios_usb_hid_pwr.h
Go to the documentation of this file.
1
/******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
2
* File Name : usb_pwr.h
3
* Author : MCD Application Team
4
* Version : V3.2.1
5
* Date : 07/05/2010
6
* Description : Connection/disconnection & power management header
7
********************************************************************************
8
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
9
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
10
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
11
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
12
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
13
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14
*******************************************************************************/
15
16
/* Define to prevent recursive inclusion -------------------------------------*/
17
#ifndef __USB_PWR_H
18
#define __USB_PWR_H
19
20
#include "usb_core.h"
21
22
/* Includes ------------------------------------------------------------------*/
23
/* Exported types ------------------------------------------------------------*/
24
typedef
enum
_RESUME_STATE
{
25
RESUME_EXTERNAL
,
26
RESUME_INTERNAL
,
27
RESUME_LATER
,
28
RESUME_WAIT
,
29
RESUME_START
,
30
RESUME_ON
,
31
RESUME_OFF
,
32
RESUME_ESOF
33
}
RESUME_STATE
;
34
35
typedef
enum
_DEVICE_STATE
{
36
UNCONNECTED
,
37
ATTACHED
,
38
POWERED
,
39
SUSPENDED
,
40
ADDRESSED
,
41
CONFIGURED
42
}
DEVICE_STATE
;
43
44
/* Exported constants --------------------------------------------------------*/
45
/* Exported macro ------------------------------------------------------------*/
46
/* Exported functions ------------------------------------------------------- */
47
void
Suspend
(
void
);
48
void
Resume_Init
(
void
);
49
void
Resume
(
RESUME_STATE
eResumeSetVal);
50
RESULT
PowerOn
(
void
);
51
RESULT
PowerOff
(
void
);
52
/* External variables --------------------------------------------------------*/
53
extern
__IO uint32_t
bDeviceState
;
/* USB device status */
54
extern
__IO
bool
fSuspendEnabled
;
/* true when suspend is possible */
55
56
#endif
/*__USB_PWR_H*/
57
58
/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
RESUME_ESOF
Definition:
pios_usb_hid_pwr.h:32
RESUME_WAIT
Definition:
pios_usb_hid_pwr.h:28
RESUME_INTERNAL
Definition:
pios_usb_hid_pwr.h:26
RESUME_STATE
enum _RESUME_STATE RESUME_STATE
_RESUME_STATE
_RESUME_STATE
Definition:
pios_usb_hid_pwr.h:24
Resume
void Resume(RESUME_STATE eResumeSetVal)
Definition:
pios_usb_hid_pwr.c:229
PowerOff
RESULT PowerOff(void)
Definition:
pios_usb_hid_pwr.c:90
UNCONNECTED
Definition:
pios_usb_hid_pwr.h:36
PowerOn
RESULT PowerOn(void)
Definition:
pios_usb_hid_pwr.c:58
fSuspendEnabled
__IO bool fSuspendEnabled
Definition:
pios_usb_hid_pwr.c:28
SUSPENDED
Definition:
pios_usb_hid_pwr.h:39
Resume_Init
void Resume_Init(void)
Definition:
pios_usb_hid_pwr.c:186
RESUME_ON
Definition:
pios_usb_hid_pwr.h:30
Suspend
void Suspend(void)
Definition:
pios_usb_hid_pwr.c:129
ATTACHED
Definition:
pios_usb_hid_pwr.h:37
RESUME_EXTERNAL
Definition:
pios_usb_hid_pwr.h:25
RESUME_OFF
Definition:
pios_usb_hid_pwr.h:31
bDeviceState
__IO uint32_t bDeviceState
Definition:
pios_usb_hid_pwr.c:27
RESUME_LATER
Definition:
pios_usb_hid_pwr.h:27
CONFIGURED
Definition:
pios_usb_hid_pwr.h:41
RESUME_START
Definition:
pios_usb_hid_pwr.h:29
DEVICE_STATE
enum _DEVICE_STATE DEVICE_STATE
ADDRESSED
Definition:
pios_usb_hid_pwr.h:40
POWERED
Definition:
pios_usb_hid_pwr.h:38
_DEVICE_STATE
_DEVICE_STATE
Definition:
pios_usb_hid_pwr.h:35
flight
PiOS
inc
pios_usb_hid_pwr.h
Generated by
1.8.6