dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_usb_hid_pwr.h File Reference
#include "usb_core.h"

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 bool fSuspendEnabled
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
UNCONNECTED 
ATTACHED 
POWERED 
SUSPENDED 
ADDRESSED 
CONFIGURED 

Definition at line 35 of file pios_usb_hid_pwr.h.

Enumerator
RESUME_EXTERNAL 
RESUME_INTERNAL 
RESUME_LATER 
RESUME_WAIT 
RESUME_START 
RESUME_ON 
RESUME_OFF 
RESUME_ESOF 

Definition at line 24 of file pios_usb_hid_pwr.h.

Function Documentation

RESULT PowerOff ( void  )

Definition at line 90 of file pios_usb_hid_pwr.c.

RESULT PowerOn ( void  )

Definition at line 58 of file pios_usb_hid_pwr.c.

void Resume ( RESUME_STATE  eResumeSetVal)

Definition at line 229 of file pios_usb_hid_pwr.c.

void Resume_Init ( void  )

Definition at line 186 of file pios_usb_hid_pwr.c.

void Suspend ( void  )

Definition at line 129 of file pios_usb_hid_pwr.c.

Variable Documentation

__IO uint32_t bDeviceState

Definition at line 27 of file pios_usb_hid_pwr.c.

__IO bool fSuspendEnabled

Definition at line 28 of file pios_usb_hid_pwr.c.