使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Vehicle_prop_config 结构参考
#include < vehicle.h >
指定属性的最小允许值。这对于没有指定枚举的属性是必需的。
指定属性的最大允许值。这对于没有指定枚举的属性是必需的。
分区属性的最小值数组。分区属性可以通过两种不同的方式指定最小/最大值:
- 应设置具有相同最小/最大值的所有区域:*_min/max_value,并且该数组应设置为 NULL。
- 所有具有单独的最小/最大值的区域:应填充 *_min/max_values 数组,并且其长度应与 *_zone_flags 指定的活动区域的数量相同。
如果每个区域没有单独的最大值,则应为 NULL。
分区属性的最大值数组。其用法请参见上文。如果每个区域没有单独的最大值,则应为 NULL。如果不为 NULL,则数组的长度应与 min_values 的长度匹配。
某些属性可能具有关联区域(例如 HVAC),在这些情况下,配置应包含关联区域的 ORed 值。
定义属性是连续的还是变化的。值应该是枚举vehicle_prop_change_mode之一。
定义位于文件Vehicle.h的第1332行。
某些属性可能需要通过该字符串传递附加信息。大多数属性不需要设置此项,在这种情况下,config_string.data 应为 NULL,config_string.len 应为 0。
定义位于文件Vehicle.h的第1381行。
int32_t* int32_max_values |
int32_t* int32_min_values |
int64_t* int64_max_values |
int64_t* int64_min_values |
最大采样率(以 Hz 为单位)。对于 VEHICLE_PROP_CHANGE_MODE_ON_CHANGE 传感器类型应为 0
定义位于文件Vehicle.h的第1437行。
最小采样率(以 Hz 为单位)。对于 VEHICLE_PROP_CHANGE_MODE_ON_CHANGE 传感器类型应为 0
定义位于文件Vehicle.h的第1433行。
用于此属性的数据类型。每个属性的此类型都是固定的。检查vehicle_value_type 的允许值。
定义位于文件Vehicle.h的第1338行。
int32_tvehicle_radio_num_presets |
无线电模块存储的预设数量。如果没有可用的预设,则传递 0。预设范围定义为从 1(请参阅 VEHICLE_RADIO_PRESET_MIN_VALUE)到vehicle_radio_num_presets。
定义位于文件Vehicle.h的第1372行。
该结构的文档是从以下文件生成的:
- 硬件/libhardware/include/hardware/vehicle.h
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u6700\u540e\u66f4\u65b0\u65f6\u95f4 (UTC)\uff1a2023-12-01\u3002"}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2023-12-01。"]]