Android Hardware Abstraction Layer
Data Structures | Macros | Typedefs | Enumerations
power.h File Reference
#include <stdint.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <hardware/hardware.h>

Go to the source code of this file.

Data Structures

struct  power_module
 

Macros

#define POWER_MODULE_API_VERSION_0_1   HARDWARE_MODULE_API_VERSION(0, 1)
 
#define POWER_MODULE_API_VERSION_0_2   HARDWARE_MODULE_API_VERSION(0, 2)
 
#define POWER_HARDWARE_MODULE_ID   "power"
 

Typedefs

typedef struct power_module power_module_t
 

Enumerations

enum  power_hint_t { POWER_HINT_VSYNC = 0x00000001, POWER_HINT_INTERACTION = 0x00000002, POWER_HINT_VIDEO_ENCODE = 0x00000003, POWER_HINT_VIDEO_DECODE = 0x00000004 }
 

Macro Definition Documentation

#define POWER_HARDWARE_MODULE_ID   "power"

The id of this module

Definition at line 34 of file power.h.

#define POWER_MODULE_API_VERSION_0_1   HARDWARE_MODULE_API_VERSION(0, 1)

Definition at line 28 of file power.h.

#define POWER_MODULE_API_VERSION_0_2   HARDWARE_MODULE_API_VERSION(0, 2)

Definition at line 29 of file power.h.

Typedef Documentation

typedef struct power_module power_module_t

Every hardware module must have a data structure named HAL_MODULE_INFO_SYM and the fields of this data structure must begin with hw_module_t followed by module specific information.

Enumeration Type Documentation

Enumerator
POWER_HINT_VSYNC 
POWER_HINT_INTERACTION 
POWER_HINT_VIDEO_ENCODE 
POWER_HINT_VIDEO_DECODE 

Definition at line 40 of file power.h.