NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usb_pwr.h File Reference

Connection/disconnection & power management header. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum _RESUME_STATE RESUME_STATE
 
typedef enum _DEVICE_STATE DEVICE_STATE
 

Enumerations

enum  _RESUME_STATE {
  RESUME_EXTERNAL, RESUME_INTERNAL, RESUME_LATER, RESUME_WAIT,
  RESUME_START, RESUME_ON, RESUME_OFF, RESUME_ESOF
}
 
enum  _DEVICE_STATE {
  UNCONNECTED, ATTACHED, POWERED, SUSPENDED,
  ADDRESSED, CONFIGURED
}
 

Functions

void Suspend (void)
 
void Resume_Init (void)
 
void Resume (RESUME_STATE eResumeSetVal)
 
RESULT PowerOn (void)
 
RESULT PowerOff (void)
 

Variables

__IO uint32_t bDeviceState
 
__IO boolean fSuspendEnabled
 

Detailed Description

Connection/disconnection & power management header.

Author
MCD Application Team
Version
V4.0.0
Date
21-January-2013
Attention

© COPYRIGHT 2013 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Typedef Documentation

Enumeration Type Documentation

Enumerator
UNCONNECTED 
ATTACHED 
POWERED 
SUSPENDED 
ADDRESSED 
CONFIGURED 
Enumerator
RESUME_EXTERNAL 
RESUME_INTERNAL 
RESUME_LATER 
RESUME_WAIT 
RESUME_START 
RESUME_ON 
RESUME_OFF 
RESUME_ESOF 

Function Documentation

RESULT PowerOff ( void  )

Here is the call graph for this function:

RESULT PowerOn ( void  )

Here is the call graph for this function:

void Resume ( RESUME_STATE  eResumeSetVal)

Here is the call graph for this function:

void Resume_Init ( void  )

Here is the call graph for this function:

void Suspend ( void  )

Variable Documentation

__IO uint32_t bDeviceState
__IO boolean fSuspendEnabled