nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
gen_plvl.h File Reference
#include <zephyr/bluetooth/mesh.h>
#include <bluetooth/mesh/model_types.h>

Go to the source code of this file.

Data Structures

struct  bt_mesh_plvl_set
 
struct  bt_mesh_plvl_status
 
struct  bt_mesh_plvl_range
 
struct  bt_mesh_plvl_range_status
 

Functions

static uint8_t bt_mesh_plvl_to_percent (uint16_t plvl)
 Convert Power Level to a percent.
 
static uint16_t bt_mesh_plvl_from_percent (uint8_t plvl_percent)
 Convert percent to raw Power Level.