38 #ifndef GENERIC_PONOFF_SETUP_SERVER_H__ 39 #define GENERIC_PONOFF_SETUP_SERVER_H__ 43 #include "generic_ponoff_common.h" 44 #include "model_common.h" 46 #include "generic_onoff_server.h" 47 #include "generic_dtt_server.h" 61 #define GENERIC_PONOFF_SERVER_MODEL_ID 0x1006 64 #define GENERIC_PONOFF_SETUP_SERVER_MODEL_ID 0x1007 uint16_t access_model_handle_t
Access layer handle type.
User provided settings and callbacks for the model instance.
uint32_t generic_ponoff_setup_server_init(generic_ponoff_setup_server_t *p_server, uint8_t element_index)
Initializes Generic Power OnOff Setup server.
Parameters for the Power OnOff Status message.
generic_dtt_server_t generic_dtt_srv
Parent model context for - Generic Default Transition Time server.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
Unpacked message structure typedefs are used for API interfaces and for implementing model code...
generic_ponoff_setup_server_state_cbs_t ponoff_cbs
Callback for transactions related to Power OnOff states.
Default Transition Time server callback list.
uint8_t element_index
Element Index.
access_model_handle_t model_handle
Model handle assigned to this instance.
generic_ponoff_server_t generic_ponoff_srv
Parent model context for - Generic Power OnOff server.
generic_ponoff_server_settings_t settings
Model settings and callbacks for this instance.
const generic_ponoff_setup_server_callbacks_t * p_callbacks
Callback list.
void(* generic_ponoff_state_get_cb_t)(const generic_ponoff_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, generic_ponoff_status_params_t *p_out)
Callback type for Generic Power OnOff Get message.
bool force_segmented
If server should force outgoing messages as segmented messages.
access_model_handle_t model_handle
Model handle assigned to this instance.
User provided settings and callbacks for the model instance.
uint32_t generic_ponoff_server_status_publish(generic_ponoff_server_t *p_server, const generic_ponoff_status_params_t *p_params)
Publishes unsolicited Status message.
Transaction callbacks for the Power OnOff state.
bool force_segmented
If server should force outgoing messages as segmented messages.
generic_onoff_server_t generic_onoff_srv
Parent model context - Generic OnOff server, user must provide a state callback.
nrf_mesh_transmic_size_t
Message MIC size selection.
void(* generic_ponoff_state_set_cb_t)(const generic_ponoff_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const generic_ponoff_set_params_t *p_in, generic_ponoff_status_params_t *p_out)
Callback type for Generic Power OnOff Set/Set Unacknowledged message.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
generic_ponoff_setup_server_settings_t settings
Model settings and callbacks for this instance.