nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ BT_MESH_MODEL_PONOFF_SRV

#define BT_MESH_MODEL_PONOFF_SRV (   _srv)

#include <include/bluetooth/mesh/gen_ponoff_srv.h>

Value:
BT_MESH_MODEL_ONOFF_SRV(&(_srv)->onoff), \
BT_MESH_MODEL_DTT_SRV(&(_srv)->dtt), \
BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_POWER_ONOFF_SRV, \
_bt_mesh_ponoff_srv_op, &(_srv)->pub, \
struct bt_mesh_ponoff_srv, _srv), \
&_bt_mesh_ponoff_srv_cb), \
BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_POWER_ONOFF_SETUP_SRV, \
_bt_mesh_ponoff_setup_srv_op, NULL, \
struct bt_mesh_ponoff_srv, _srv), \
&_bt_mesh_ponoff_setup_srv_cb)
#define BT_MESH_MODEL_USER_DATA(_type, _user_data)
Utility macro for type checking of model user data.
Definition: model_types.h:113
#define BT_MESH_MODEL_ONOFF_SRV(_srv)
Generic OnOff Server model composition data entry.
Definition: gen_onoff_srv.h:44
Definition: gen_ponoff_srv.h:74

Generic Power OnOff model entry.

Parameters
[in]_srvPointer to a Generic Power OnOff Server model instance.