nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
caf_sensor_common.h File Reference
#include <zephyr/drivers/sensor.h>

Go to the source code of this file.

Data Structures

struct  caf_sampled_channel
 Description of single channel. More...
 

Macros

#define FLOAT_TO_SENSOR_VAL_CONST   1000000
 
#define FLOAT_TO_SENSOR_VALUE(float_val)
 

Functions

static bool sensor_value_greater_then (struct sensor_value sensor_val1, struct sensor_value sensor_val2)
 Helper function for checking if one sensor_value is greater than the other.
 
static struct sensor_value sensor_value_abs_difference (struct sensor_value sensor_val1, struct sensor_value sensor_val2)
 Helper function for calculating absolute value of difference of two sensor_values.