nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
sensor_manager.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_MANAGER_H_
8#define _SENSOR_MANAGER_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <zephyr/device.h>
15#include <zephyr/drivers/sensor.h>
18
19
23
26 struct sensor_value thresh;
27 unsigned int timeout_ms;
28};
29
34
45 const struct device *dev;
52 const char *event_descr;
64 uint8_t chan_cnt;
76 unsigned int sampling_period_ms;
87 bool suspend;
88};
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* _SENSOR_MANAGER_H_ */
static struct sm_trigger sensor_trigger
Definition sensor_manager_def.h:18
act_type
Definition sensor_manager.h:20
@ ACT_TYPE_ABS
Definition sensor_manager.h:21
Description of single channel.
Definition caf_sensor_common.h:39
const struct device * dev
Device.
Definition sensor_manager.h:45
const struct caf_sampled_channel * chans
Used channels description.
Definition sensor_manager.h:58
uint8_t chan_cnt
Number of channels.
Definition sensor_manager.h:64
const char * event_descr
Event descriptor.
Definition sensor_manager.h:52
bool suspend
Flag to indicate whether sensor should be suspended or not.
Definition sensor_manager.h:87
unsigned int sampling_period_ms
Sampling period.
Definition sensor_manager.h:76
uint8_t active_events_limit
Allowed number of unprocessed events.
Definition sensor_manager.h:72
struct sm_trigger * trigger
Sensor trigger configuration.
Definition sensor_manager.h:83
Sensor configuration.
Definition sensor_manager.h:41
struct sensor_value thresh
Definition sensor_manager.h:26
enum act_type type
Definition sensor_manager.h:25
unsigned int timeout_ms
Definition sensor_manager.h:27
Definition sensor_manager.h:24
struct sm_trigger_activation activation
Definition sensor_manager.h:32
struct sensor_trigger cfg
Definition sensor_manager.h:31
Definition sensor_manager.h:30