文档简介
HAL_sensor模型分析 47: 48: #ifndef ANDROID_SENSORS_INTERFACE_H 49: #define ANDROID_SENSORS_INTERFACE_H 50: 51: #include 52: #include 53: #include 54: 55: #include 56: #include 57: 58: __BEGIN_DECLS 59: 60: /** 61: * The id of this module 62: */ 63: #define SENSORS_HARDWARE_MODULE_ID "sensors" 64: 定义了sensor的ID,HAL层通过这个ID找到Stub 65: /** 66: * Name of the sensors device to open 67: */ 68: #define SENSORS_HARDWARE_CONTROL "control" 69: #define SENSORS_HARDWARE_DATA "data" 70: 71: /** 72: * Handles must be higher than SENSORS_HANDLE_BASE and must be unique. 73: * A Handle identifies a given sensors. The handle is used to activate 74: * and/or deactivate sensors. 75: * In this versi……
评论
加载更多
推荐下载
查看更多
精选文集
推荐帖子