![]() |
Edge AI Add-on API 2.2.0
|
|
inlinestatic |
#include <samples/data_forwarder/src/sensor/data_fwd_sensor.h>
Convert a Zephyr sensor value to a protocol sample value.
When CONFIG_DATA_FWD_PROTO_INT32_VALUES is enabled, the result is clamped to INT32_MIN..INT32_MAX micro-units. Otherwise a float is returned.
| val | Zephyr sensor value to convert. |