Supported sensors.
Synopsis:
#include <bps/sensor.h>
typedef enum {
SENSOR_TYPE_ACCELEROMETER = 0
SENSOR_TYPE_MAGNETOMETER = 1
SENSOR_TYPE_GYROSCOPE = 2
SENSOR_TYPE_AZIMUTH_PITCH_ROLL = 3
SENSOR_TYPE_ALTIMETER = 4
SENSOR_TYPE_TEMPERATURE = 5
SENSOR_TYPE_PROXIMITY = 6
SENSOR_TYPE_LIGHT = 7
SENSOR_TYPE_GRAVITY = 8
SENSOR_TYPE_LINEAR_ACCEL = 9
SENSOR_TYPE_ROTATION_VECTOR = 10
SENSOR_TYPE_ROTATION_MATRIX = 11
SENSOR_TYPE_ORIENTATION = 12
SENSOR_TYPE_FACE_DETECT = 13
SENSOR_TYPE_HOLSTER = 14
SENSOR_TYPE_COMPASS = 15
SENSOR_TYPE_PRESSURE = 16
} sensor_type_t;
Data:
- SENSOR_TYPE_ACCELEROMETER
- The acceleration sensor that measures the acceleration force along the x, y, and z-axis.
- SENSOR_TYPE_MAGNETOMETER
- The magnetic sensor that measures the magnetic field for x, y, and z-axis.
- SENSOR_TYPE_GYROSCOPE
- The gyroscope sensor that measures the rate of rotation around the x, y, and z-axis.
- SENSOR_TYPE_AZIMUTH_PITCH_ROLL
- The azimuth-pitch-roll sensor that measures the current angles with reference to the world reference frame.
- SENSOR_TYPE_ALTIMETER
- The altimeter measures the altitude by using air pressure measurements.
- SENSOR_TYPE_TEMPERATURE
- The temperature sensor that measures the temperature in degrees Celsius.
- SENSOR_TYPE_PROXIMITY
- The proximity sensor measures how close an object, such as a user's ear, is to the front of the device.
- SENSOR_TYPE_LIGHT
- The illuminance sensor that measures the amount of ambient light or illumination.
- SENSOR_TYPE_GRAVITY
- The gravity sensor that measures the force of gravity along the x, y, and z-axis.
- SENSOR_TYPE_LINEAR_ACCEL
- The linear acceleration sensor that measures acceleration along the x, y, or z-axis.
The measurement excludes gravity.
- SENSOR_TYPE_ROTATION_VECTOR
- The rotation sensor that measures the orientation of the device by providing the rotation vector around the x, y, and z-axis.
- SENSOR_TYPE_ROTATION_MATRIX
- The rotation matrix represents the orientation of the world frame in the device frame.
- SENSOR_TYPE_ORIENTATION
- The orientation sensor that measures the degrees of orientation around the x, y, and z-axis.
- SENSOR_TYPE_FACE_DETECT
- The face-detection sensor is used to detect a face that is near the device.
- SENSOR_TYPE_HOLSTER
- The holster sensor that detects when the device is holstered or removed from the holster.
- SENSOR_TYPE_COMPASS
- The compass sensor give compass heading readings.
- SENSOR_TYPE_PRESSURE
- The pressure sensor give air pressure readings.
Library:
libbps (For the qcc command, use the -l bps option to link against this library)
Description:
This enumeration defines the various sensors that are supported by this API.