nRF Connect SDK API
0.1.0
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 Thu Sep 26 2024 10:53:18 for nRF Connect SDK API by
1.9.6