nRF Connect SDK API 2.8.99
|
#include <app_event_manager.h>
#include <app_event_manager_profiler_tracer.h>
#include <zephyr/drivers/sensor.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | sensor_state_event |
Sensor state event. More... | |
struct | sensor_event |
Sensor event. More... | |
struct | set_sensor_period_event |
Set sensor period event. More... | |
Enumerations | |
enum | sensor_state { SENSOR_STATE_DISABLED , SENSOR_STATE_SLEEP , SENSOR_STATE_ACTIVE , SENSOR_STATE_ERROR , SENSOR_STATE_COUNT , APP_EM_ENFORCE_ENUM_SIZE =(SENSOR_STATE) } |
Sensor states. More... | |
Functions | |
static size_t | sensor_event_get_data_cnt (const struct sensor_event *event) |
Get size of sensor data. | |
static struct sensor_value * | sensor_event_get_data_ptr (const struct sensor_event *event) |
Get pointer to the sensor data. | |
APP_EVENT_TYPE_DYNDATA_DECLARE (sensor_event) | |