38 #ifndef SCENE_SETUP_SERVER_H__ 39 #define SCENE_SETUP_SERVER_H__ 42 #include "scene_common.h" 43 #include "scene_messages.h" 44 #include "generic_dtt_server.h" 54 #define SCENE_SERVER_MODEL_ID 0x1203 57 #define SCENE_SETUP_SERVER_MODEL_ID 0x1204 140 typedef struct scene_setup_server
uint8_t state_handle
State handle for this instance.
uint16_t access_model_handle_t
Access layer handle type.
Parameters for the Scene Register Status message.
generic_dtt_server_t * p_gen_dtt_server
Default transition time server context pointer.
void(* scene_state_delete_cb_t)(const scene_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const scene_delete_params_t *p_in, scene_register_status_params_t *p_out)
Callback type for Scene Delete/Delete Unacknowledged message.
Structure for tracking TID expiry for the models.
tid_tracker_t tid_tracker
Tid tracker structure.
Parameters for the Scene Recall message.
const scene_setup_server_callbacks_t * p_callbacks
Callback list.
User provided settings and callbacks for the model instance.
Parameters for the Scene Delete message.
scene_state_register_get_cb_t register_get_cb
Callback for the Scene Register Get message.
scene_state_get_cb_t get_cb
Callback for the Scene Get message.
Transaction callbacks for the Scene states.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
uint32_t scene_server_status_publish(const scene_server_t *p_server, const scene_status_params_t *p_params)
Publishes unsolicited Status message.
scene_server_t scene_srv
Parent model context for - Scene server.
bool force_segmented
If server should force outgoing messages as segmented messages.
void(* scene_state_get_cb_t)(const scene_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, scene_status_params_t *p_out)
Callback type for Scene Get message.
Parameters for the Scene Store 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.
uint8_t element_index
Element Index.
void(* scene_state_store_cb_t)(const scene_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const scene_store_params_t *p_in, scene_register_status_params_t *p_out)
Callback type for Scene Store/Store Unacknowledged message.
scene_state_store_cb_t store_cb
Callback for the Scene Store message.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
void(* scene_state_register_get_cb_t)(const scene_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, scene_register_status_params_t *p_out)
Callback type for Scene Register Get message.
Scene server callback list.
nrf_mesh_transmic_size_t
Message MIC size selection.
scene_setup_server_state_cbs_t scene_cbs
Transaction callbacks for the Scene states.
scene_state_delete_cb_t delete_cb
Callback for the Scene Delete message.
void(* scene_state_recall_cb_t)(const scene_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const scene_recall_params_t *p_in, const model_transition_t *p_in_transition, scene_status_params_t *p_out)
Callback type for Scene Recall/Recall Unacknowledged message.
scene_setup_server_settings_t settings
Model settings and callbacks for this instance.
scene_state_recall_cb_t recall_cb
Callback for the Scene Recall message.
access_model_handle_t model_handle
Model handle assigned to this instance.
Parameters for the Scene Status message.
scene_server_settings_t settings
Settings and callbacks for this instance.
User provided settings and callbacks for the model instance.
Generic Transition parameters for the model messages.
uint32_t scene_setup_server_init(scene_setup_server_t *p_s_server, uint8_t element_index)
Initializes Scene Setup server.