Commit graph

16 commits

Author SHA1 Message Date
Steven Moreland
3556da3b4a Add include/hardware/*.h symlinks.
These are required to build. Separate CL to preserve blame history.

From running 'update-includes.sh' script here.

Bug: 37280010
Test: boot/build (sanity)
Change-Id: Id9c2dc37f674b27b947a9f823bd38a550d64d31b
2023-06-02 23:01:56 +00:00
Steven Moreland
d783cabd4d Split up headers.
This splits headers into three locations:
include - for backwards compatibility, the global include
include_all - for things system/vendor both use
include_vendor - for things that only vendors use

The goal is to gradually have system things stop referencing
(at least most) of these headers.

Bug: 37280010
Test: build (CL on top adds back in symlinks)

Change-Id: Ibf194276b7faa857e1e7605d7719f4e7d873ecba
2023-06-02 23:01:54 +00:00
Eva Chen
544076be9c Add TYPE_HEADING sensor type definitions.
Bug: 189983308
Test: Presubmits
Change-Id: I74186ac6685a376158101f65d2687f1905c09814
2022-01-25 17:10:44 -08:00
Eva Chen
2588d75554 Add limited axes imu sensor type definitions.
Included sensors:
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED

These changes will enable support for automotive style IMUs that have
more limited axes for accelerometers (x-axis and y-axis) and gyroscopes
(z-axis).

Bug: 187342209
Test: N/A
Change-Id: Iff0553c88f62e4b5693a72116173063f35b914e9
2022-01-18 20:38:28 -08:00
Brian Duddie
d3e67d55ac Add definitions for new head tracker sensor type
Bug: 210156629
Test: n/a
Change-Id: If267401f059fe1377e495a91776b2eb4448fd1ef
2022-01-10 16:13:14 -08:00
Anthony Stange
e2a118aafb Update new values for latest sensor HAL changes
A hinge angle sensor type has been added to the sensor HAL which
requires updating sensor.h and sensor-base.h.

Bug: 144139857
Test: N/A
Change-Id: I0d8e7d028cc1b2e05a8ec74b7ab3da9ffff5dbde
2020-01-16 19:39:06 -05:00
Steven Moreland
52fc52755d Update auto-generated files.
Test: (sanity) boot
Bug: N/A
Change-Id: I13ae0d30dacea10fc9a9d7b9985902f33422eb54
2019-01-16 17:24:08 +00:00
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