最終更新:2017-03-28 (火) 15:02:42 (2587d)
AOSP/hardware/libhardware/include/hardware/hardware.h
http://tools.oesf.biz/android-7.0.0_r1.0/xref/hardware/libhardware/include/hardware/hardware.h
定義
hw_module_t
uint32_t hw_module_t.tag? tag must be initialized to HARDWARE_MODULE_TAG? uint16_t hw_module_t.module_api_version? The API version of the implemented module. uint16_t hw_module_t.hal_api_version? The API version of the HAL module interface. const char * hw_module_t.id? Identifier of module const char * hw_module_t.name? Name of this module const char * hw_module_t.author? Author/owner/implementor of the module hw_module_methods_t? hw_module_t.methods? Modules methods void* hw_module_t.dso? module's dso uint32_t hw_module_t.reserved?
hw_module_methods_t?
int (*open)(const struct hw_module_t* module, const char* id, struct hw_device_t?** device) Open a specific device
hw_device_t?
- Every device data structure must begin with hw_device_t? followed by module specific public methods and attributes.
uint32_t hw_device_t.tag? uint32_t hw_device_t.version? Version of the module-specific device API. hw_module_t hw_device_t.module? reference to the module this device belongs to