Commit Graph

9 Commits

Author SHA1 Message Date
Steven Moreland
c293b01f04 Update sensors-base.h
Test: pass
Bug: 33541458
Change-Id: I9e29be69a3903ee5ec213ebc8e2e40e24f6ec755
2017-02-24 13:14:19 -08:00
Peng Xu
7d17b580ac [sensor] Sync automatically generated code after interface change
Sync up the automatically generated sensors-base.h after changes
to hardware/interfaces.

Test: compiles
Change-Id: I5d4e9f8b39bcbe8f62a4a0c20c70e637827f9146
2017-01-18 14:17:30 -08:00
Peng Xu
95f79b1879 [sensors] Minor tuning of hal definition
* Swap GEOMAGNETIC_FIELD with MAGNETIC_FIELD for more accurate
    definition.
  * Clarify that string type will be omitted for well defined sensor
    types.
  * Remove legacy 8-bit restriction to sensor handle. This is an
    unnecessary limit for since long time ago. Still leave the define
    for code compatibility and change the value to 32.
  * update sensors-base.h with companion .hal file change.

Test: test with sensorlogger, all sensor works
Change-Id: I6ff7022146eb25f7efdce87b70bf5ed488a70c6d
2017-01-13 10:58:23 -08:00
Ashutosh Joshi
da8827a283 Merge "Add an uncalibrated accelerometer type." 2017-01-13 17:47:33 +00:00
Peng Xu
08a4dd9e89 [sensors] Adding HAL API support for direct report mode
Added HAL function and constant definition for sensor direct
report mode. This new mode allows sensor hardware to communicate
with application directly via a lock-free queue based on shared
memory to achieve low latency and high report frequency.

Test: compiles and runs
Bug: 30985702
Change-Id: I79c73bcdcc45d43b5a236d65874e5071a589cecd
2017-01-12 12:19:12 -08:00
Ashutosh Joshi
d1e2562a79 Add an uncalibrated accelerometer type.
Add an uncalibrated accelerometer sensor type.

Test: Build compiles.

Change-Id: Iddc3b03abf0ba9beeec542eecf138b06d08355f2
2017-01-11 11:11:11 -08:00
Steven Moreland
54925f4636 Ran hardware/interfaces/update-base-files.sh.
Test: pass
Change-Id: Ic29c0dcc0876a522dc6a3693d7c2762bac3aabdf
2016-12-12 09:50:49 -08:00
Nick Vaccaro
cfd950b679 Add low latency offbody detect sensor type
Bug: 32492601
Test: no
Change-Id: Ieb0047c2a134b5b3c54ab48ac71b33827a353075
2016-11-04 16:10:08 -07:00
Andreas Huber
9219017251 sensor HAL v3
Bug: 32021636
Test: no
Change-Id: Ibbced293ecb560f07e1bd96d5b78ed3dc3a2fd59
2016-10-12 08:41:05 -07:00