power_module 구조체 참조
power_module 구조체 참조
#include <
power.h
>
데이터 필드 |
|
struct hw_module_t | 일반적인 |
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) |
상세 설명
모든 하드웨어 모듈에는 HAL_MODULE_INFO_SYM이라는 데이터 구조가 있어야 하며 이 데이터 구조의 필드는 hw_module_t 로 시작하고 그 뒤에 모듈별 정보가 나와야 합니다.
필드 문서
struct hw_module_t common |
ssize_t(* get_number_of_platform_modes)(struct power_module *module) |
int(* get_platform_low_power_stats)(struct power_module *module, power_state_platform_sleep_state_t *list) |
int(* get_voter_list)(struct power_module *module, size_t *voter) |
void(* init)(struct power_module *module) |
void(* powerHint)(struct power_module *module, power_hint_t hint, void *data) |
void(* setFeature)(struct power_module *module, feature_t feature, int state) |
void(* setInteractive)(struct power_module *module, int on) |
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
- hardware/libhardware/include/hardware/ power.h