power_module 構造体リファレンス
power_module 構造体リファレンス
#include <
power.h
>
データ フィールド |
|
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) |
詳細な説明
すべてのハードウェア モジュールには 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