nRF Connect SDK API
2.8.99
Loading...
Searching...
No Matches
◆
FLOAT_TO_SENSOR_VALUE
#define FLOAT_TO_SENSOR_VALUE
(
float_val
)
#include <
include/caf/caf_sensor_common.h
>
Value:
{ \
.val1 = (int32_t)(float_val), \
.val2 = (int32_t)(((float_val) - (int32_t)(float_val)) * \
FLOAT_TO_SENSOR_VAL_CONST
), \
}
FLOAT_TO_SENSOR_VAL_CONST
#define FLOAT_TO_SENSOR_VAL_CONST
Definition
caf_sensor_common.h:25
CAF Sensor Common
Generated on Tue Nov 5 2024 08:55:09 for nRF Connect SDK API by
1.12.0