nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
bt_mesh_sensor_format_cb Struct Reference

#include <sensor.h>

Data Fields

bool(*const delta_check )(const struct bt_mesh_sensor_value *current, const struct bt_mesh_sensor_value *previous, const struct bt_mesh_sensor_deltas *delta)
 Perform a delta check between two bt_mesh_sensor_value instances.
 
int(*const compare )(const struct bt_mesh_sensor_value *op1, const struct bt_mesh_sensor_value *op2)
 Compare two bt_mesh_sensor_value instances.
 
enum bt_mesh_sensor_value_status(*const to_micro )(const struct bt_mesh_sensor_value *sensor_val, int64_t *val)
 Convert a bt_mesh_sensor_value instance to an integer in micro units.
 
int(*const from_micro )(const struct bt_mesh_sensor_format *format, int64_t val, struct bt_mesh_sensor_value *sensor_val)
 Convert an integer in micro units to a bt_mesh_sensor_value.
 
enum bt_mesh_sensor_value_status(*const to_float )(const struct bt_mesh_sensor_value *sensor_val, float *val)
 Convert a bt_mesh_sensor_value to a float.
 
int(*const from_float )(const struct bt_mesh_sensor_format *format, float val, struct bt_mesh_sensor_value *sensor_val)
 Convert a float to a bt_mesh_sensor_value.
 
int(*const from_special_status )(const struct bt_mesh_sensor_format *format, enum bt_mesh_sensor_value_status status, struct bt_mesh_sensor_value *sensor_val)
 Convert a special bt_mesh_sensor_value_status value to a bt_mesh_sensor_value.
 
int(*const to_string )(const struct bt_mesh_sensor_value *sensor_val, char *str, size_t len)
 Get a human readable representation of a bt_mesh_sensor_value.
 
bool(*const value_in_column )(const struct bt_mesh_sensor_value *sensor_val, const struct bt_mesh_sensor_column *col)
 Check if a bt_mesh_sensor_value lies within a bt_mesh_sensor_column.
 

Detailed Description

Sensor format callbacks.

(For internal use, applications should use the conversion functions provided in sensor.h instead.)


The documentation for this struct was generated from the following file: