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

Connection/disconnection & power management. More...

#include "usb_lib.h"
#include "usb_conf.h"
#include "usb_pwr.h"
#include "hw_config.h"
Include dependency graph for usb_pwr.c:

Functions

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

Variables

__IO uint32_t bDeviceState = UNCONNECTED
 
__IO boolean fSuspendEnabled = TRUE
 
__IO uint32_t EP [8]
 
struct {
   __IO RESUME_STATE   eState
 
   __IO uint8_t   bESOFcnt
 
ResumeS
 
__IO uint32_t remotewakeupon = 0
 

Detailed Description

Connection/disconnection & power management.

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.

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 = UNCONNECTED
__IO uint8_t bESOFcnt
__IO uint32_t EP[8]
__IO RESUME_STATE eState
__IO boolean fSuspendEnabled = TRUE
__IO uint32_t remotewakeupon = 0
struct { ... } ResumeS