Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Sensor Types (Sensing)

Sensor type identifiers used by the sensing subsystem. More...

Macros

#define SENSING_SENSOR_TYPE_ALL   0xFFFF
 Sensor type for all sensors.

Light sensors

#define SENSING_SENSOR_TYPE_LIGHT_AMBIENTLIGHT   0x41
 Sensor type for ambient light sensors.

Motion sensors

#define SENSING_SENSOR_TYPE_MOTION_ACCELEROMETER_3D   0x73
 Sensor type for 3D accelerometers.
#define SENSING_SENSOR_TYPE_MOTION_GYROMETER_3D   0x76
 Sensor type for 3D gyrometers.
#define SENSING_SENSOR_TYPE_MOTION_MOTION_DETECTOR   0x77
 Sensor type for motion detectors.
#define SENSING_SENSOR_TYPE_MOTION_UNCALIB_ACCELEROMETER_3D   0x240
 Sensor type for uncalibrated 3D accelerometers.
#define SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE   0x20B
 Sensor type for hinge angle sensors.

Other sensors

#define SENSING_SENSOR_TYPE_OTHER_CUSTOM   0xE1
 Sensor type for custom sensors.

Detailed Description

Sensor type identifiers used by the sensing subsystem.

Sensor types definition followed HID standard. https://usb.org/sites/default/files/hutrr39b_0.pdf

TODO: will add more types

Macro Definition Documentation

◆ SENSING_SENSOR_TYPE_ALL

#define SENSING_SENSOR_TYPE_ALL   0xFFFF

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for all sensors.

This macro defines the sensor type for all sensors.

Note
This value is not a valid sensor type and is used as a sentinel value to indicate all sensor types.

◆ SENSING_SENSOR_TYPE_LIGHT_AMBIENTLIGHT

#define SENSING_SENSOR_TYPE_LIGHT_AMBIENTLIGHT   0x41

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for ambient light sensors.

◆ SENSING_SENSOR_TYPE_MOTION_ACCELEROMETER_3D

#define SENSING_SENSOR_TYPE_MOTION_ACCELEROMETER_3D   0x73

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for 3D accelerometers.

◆ SENSING_SENSOR_TYPE_MOTION_GYROMETER_3D

#define SENSING_SENSOR_TYPE_MOTION_GYROMETER_3D   0x76

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for 3D gyrometers.

◆ SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE

#define SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE   0x20B

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for hinge angle sensors.

◆ SENSING_SENSOR_TYPE_MOTION_MOTION_DETECTOR

#define SENSING_SENSOR_TYPE_MOTION_MOTION_DETECTOR   0x77

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for motion detectors.

◆ SENSING_SENSOR_TYPE_MOTION_UNCALIB_ACCELEROMETER_3D

#define SENSING_SENSOR_TYPE_MOTION_UNCALIB_ACCELEROMETER_3D   0x240

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for uncalibrated 3D accelerometers.

◆ SENSING_SENSOR_TYPE_OTHER_CUSTOM

#define SENSING_SENSOR_TYPE_OTHER_CUSTOM   0xE1

#include <zephyr/sensing/sensing_sensor_types.h>

Sensor type for custom sensors.