nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ sensor_state

#include <include/caf/events/sensor_event.h>

Sensor states.

Enumerator
SENSOR_STATE_DISABLED 

Initial state of the sensor. The state is used only before sensor is initialized and it should not be broadcasted using sensor_state_event.

SENSOR_STATE_SLEEP 

Sensor is sleeping and no sampling is performed.

SENSOR_STATE_ACTIVE 

Sensor is sampled periodically.

SENSOR_STATE_ERROR 

Sensor error occurred. The sensor is no longer sampled.

SENSOR_STATE_COUNT 

Number of sensor states.

APP_EM_ENFORCE_ENUM_SIZE 

Unused in code, required for inter-core compatibility.