power_module Struct Reference

power_module Struct Reference

#include < power.h >

Data Fields

struct hw_module_t   common
void(*  init )(struct power_module *module)
void(*  setInteractive )(struct power_module *module, int on)
void(*  powerHint )(struct power_module *module, power_hint_t hint, void *data)
void(*  setFeature )(struct power_module *module, feature_t feature, int state)
int(*  get_platform_low_power_stats )(struct power_module *module, power_state_platform_sleep_state_t *list)
ssize_t(*  get_number_of_platform_modes )(struct power_module *module)
int(*  get_voter_list )(struct power_module *module, size_t *voter)

Detailed Description

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.

Definition at line 163 of file power.h .

Field Documentation

struct hw_module_t common

Definition at line 164 of file power.h .

ssize_t(* get_number_of_platform_modes)(struct power_module *module)

Definition at line 309 of file power.h .

int(* get_platform_low_power_stats)(struct power_module *module, power_state_platform_sleep_state_t *list)

Definition at line 291 of file power.h .

int(* get_voter_list)(struct power_module *module, size_t *voter)

Definition at line 326 of file power.h .

void(* init)(struct power_module *module)

Definition at line 176 of file power.h .

void(* powerHint)(struct power_module *module, power_hint_t hint, void *data)

Definition at line 255 of file power.h .

void(* setFeature)(struct power_module *module, feature_t feature, int state)

Definition at line 270 of file power.h .

void(* setInteractive)(struct power_module *module, int on)

Definition at line 204 of file power.h .

The documentation for this struct was generated from the following file:
  • hardware/libhardware/include/hardware/ power.h