1. Home
  2. Software Development for MediaTek X20
  3. Sensor Porting Guide
  4. 1.Sensor Architecture Description

1.Sensor Architecture Description

1.1 Android sensor support types

Now Android support sensor types as follow

Sensor types

TYPE_ACCELEROMETERTYPE_GRAVITY

TYPE_SIGNIFICANT_MOTION

TYPE_MAGNETIC_FIELDTYPE_LINEAR_ACCELERATIONTYPE_STEP_DETECTOR
TYPE_ORIENTATIONTYPE_ROTATION_VECTORTYPE_STEP_COUNTER
TYPE_GYROSCOPETYPE_RELATIVE_HUMIDITYTYPE_GEOMAGNETIC_ROTATION_VECTOR
TYPE_LIGHTTYPE_AMBIENT_TEMPERATURETYPE_HEART_RATE
TYPE_PRESSURETYPE_MAGNETIC_FIELD_UNC

ALIBRATED

TYPE_TILT_DETECTOR
TYPE_TEMPERATURETYPE_GAME_ROTATION_VECT

OR

TYPE_TILT_DETECTOR
TYPE_PROXIMITYTYPE_GAME_ROTATION_VECT

OR

TYPE_GLANCE_GESTURE

1.2 Sensor system Architecture

Sensor1

1.3 HAL & Driver Work Flow

20160617150552

Sensor2

1.4 Config File

android:

device\${COMPANY}\${PROJECT}\ProjectConfig.mk

kernel:

kernel-3.xx\arch\armxx\configs\$(proj)_defconfig and $(proj)_debug_defconfig

kernel-3.xx\arch\armxx\boot\dts\$(proj).dts

Init.rc:

alps\device\mediatek\${PLATFORM}\init.xxx.rc

Was this article helpful to you? Yes No 1

How can we help?