sensors_event_t स्ट्रक्चर का रेफ़रंस
#include <
sensors.h
>
डेटा फ़ील्ड |
|
| int32_t | वर्शन |
| int32_t | सेंसर |
| int32_t | type |
| int32_t | reserved0 |
| int64_t | timestamp |
| union { | |
| union { | |
| float data [16] | |
| sensors_vec_t acceleration | |
| sensors_vec_t magnetic | |
| sensors_vec_t orientation | |
| sensors_vec_t gyro | |
| float temperature | |
| float distance | |
| float light | |
| फ़्लोट दबाव | |
| float relative_humidity | |
| uncalibrated_event_t uncalibrated_gyro | |
| uncalibrated_event_t uncalibrated_magnetic | |
| heart_rate_event_t heart_rate | |
| meta_data_event_t meta_data | |
| dynamic_sensor_meta_event_t dynamic_sensor_meta | |
| additional_info_event_t additional_info | |
| } | |
| union { | |
| uint64_t data [8] | |
| uint64_t step_counter | |
| } u64 | |
| }; | |
| uint32_t | फ़्लैग |
| uint32_t | reserved1 [3] |
पूरी जानकारी
अलग-अलग तरह के सेंसर डेटा का यूनियन, जिसे दिखाया जा सकता है.
फ़ील्ड का दस्तावेज़
| union { ... } |
| sensors_vec_t acceleration |
| additional_info_event_t additional_info |
| dynamic_sensor_meta_event_t dynamic_sensor_meta |
| sensors_vec_t gyro |
| heart_rate_event_t heart_rate |
| sensors_vec_t चुंबकीय |
| meta_data_event_t meta_data |
| sensors_vec_t ओरिएंटेशन |
| union { ... } u64 |
| uncalibrated_event_t uncalibrated_gyro |
| uncalibrated_event_t uncalibrated_magnetic |
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
- hardware/libhardware/include/hardware/ sensors.h