nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
sensor_module_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _SENSOR_MODULE_EVENT_H_
8#define _SENSOR_MODULE_EVENT_H_
9
16#include <app_event_manager.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#define ACCELEROMETER_AXIS_COUNT 3
24
68
84
92
100
108
112 struct app_event_header header;
115 union {
117 struct sensor_module_data sensors;
125 uint32_t id;
127 int err;
129};
130
132
133#ifdef __cplusplus
134}
135#endif
136
141#endif /* _SENSOR_MODULE_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition app_event_manager.h:143
sensor_module_event_type
Sensor event types submitted by the Sensor module.
Definition sensor_module_event.h:26
@ SENSOR_EVT_MOVEMENT_INACTIVITY_DETECTED
Definition sensor_module_event.h:35
@ SENSOR_EVT_ERROR
Definition sensor_module_event.h:66
@ SENSOR_EVT_MOVEMENT_IMPACT_DETECTED
Definition sensor_module_event.h:40
@ SENSOR_EVT_SHUTDOWN_READY
Definition sensor_module_event.h:61
@ SENSOR_EVT_FUEL_GAUGE_NOT_SUPPORTED
Definition sensor_module_event.h:56
@ SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED
Definition sensor_module_event.h:48
@ SENSOR_EVT_FUEL_GAUGE_READY
Definition sensor_module_event.h:53
@ SENSOR_EVT_ENVIRONMENTAL_DATA_READY
Definition sensor_module_event.h:45
@ SENSOR_EVT_MOVEMENT_ACTIVITY_DETECTED
Definition sensor_module_event.h:30
#define ACCELEROMETER_AXIS_COUNT
Definition sensor_module_event.h:23
double values[3]
Definition sensor_module_event.h:90
int64_t timestamp
Definition sensor_module_event.h:88
Structure used to provide acceleration data.
Definition sensor_module_event.h:86
int64_t timestamp
Definition sensor_module_event.h:104
int battery_level
Definition sensor_module_event.h:106
Structure used to provide battery level.
Definition sensor_module_event.h:102
double humidity
Definition sensor_module_event.h:76
int bsec_air_quality
Definition sensor_module_event.h:82
double pressure
Definition sensor_module_event.h:78
int64_t timestamp
Definition sensor_module_event.h:72
double temperature
Definition sensor_module_event.h:74
Structure used to provide environmental data.
Definition sensor_module_event.h:70
int err
Definition sensor_module_event.h:127
enum sensor_module_event_type type
Definition sensor_module_event.h:114
union sensor_module_event::@13 data
uint32_t id
Definition sensor_module_event.h:125
struct app_event_header header
Definition sensor_module_event.h:112
Sensor module event.
Definition sensor_module_event.h:110
double magnitude
Definition sensor_module_event.h:98
int64_t timestamp
Definition sensor_module_event.h:96
Structure used to provide impact data.
Definition sensor_module_event.h:94