38 #ifndef LIGHT_CTL_SETUP_SERVER_H__ 39 #define LIGHT_CTL_SETUP_SERVER_H__ 43 #include "light_ctl_common.h" 44 #include "model_common.h" 46 #include "light_lightness_setup_server.h" 48 #include "generic_ponoff_setup_server.h" 49 #include "generic_level_server.h" 66 #define LIGHT_CTL_SERVER_MODEL_ID (0x1303) 69 #define LIGHT_CTL_SETUP_SERVER_MODEL_ID (0x1304) 72 #define LIGHT_CTL_TEMPERATURE_SERVER_MODEL_ID (0x1306) 493 light_lightness_setup_server_t * p_ll_s_server,
494 uint8_t element_index);
access_model_handle_t model_handle
Model handle assigned to this instance.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
generic_level_server_t generic_level_srv
Parent model context for - Level server.
void(* light_ctl_state_temperature32_get_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_ctl_temperature_status_params_t *p_out)
Callback type for Light CTL Temperature Get message.
uint16_t access_model_handle_t
Access layer handle type.
Internal structure to hold state information.
void(* light_ctl_state_move_set_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_ctl_temperature_move_set_params_t *p_in, const model_transition_t *p_in_transition, light_ctl_temperature_status_params_t *p_out)
Callback type for the Light CTL move Set/Set Unacknowledged "message".
void(* light_ctl_state_default_set_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_ctl_default_set_params_t *p_in, light_ctl_default_status_params_t *p_out)
Callback type for the Light CTL Default Set/Set Unacknowledged message.
uint32_t light_ctl_server_status_publish(const light_ctl_server_t *p_server, const light_ctl_status_params_t *p_params)
Publishes unsolicited Status message.
Message format for the Light CTL Temperature Move Set "message".
User provided settings and callbacks for the Light CTL Setup Server model instance.
light_ctl_setup_server_state_cbs_t light_ctl_cbs
Transaction callbacks for the Light CTL states.
Structure for tracking TID expiry for the models.
access_model_handle_t model_handle
Model handle assigned to this instance.
Parameters for the Light CTL Default Status message.
void(* light_ctl_state_temperature32_set_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_ctl_temperature_set_params_t *p_in, const model_transition_t *p_in_transition, light_ctl_temperature_status_params_t *p_out)
Callback type for the Light CTL Temperature Set/Set Unacknowledged message.
void(* light_ctl_state_delta_set_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_ctl_temperature_delta_set_params_t *p_in, const model_transition_t *p_in_transition, light_ctl_temperature_status_params_t *p_out)
Callback type for the Light CTL delta Set/Set Unacknowledged "message".
uint8_t element_index
Element Index.
uint32_t light_ctl_server_temperature_range_status_publish(const light_ctl_server_t *p_server, const light_ctl_temperature_range_status_params_t *p_params)
Publishes unsolicited Status message.
Light CTL server callback list.
bool force_segmented
If server should force outgoing messages as segmented messages.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
uint32_t light_ctl_ponoff_binding_setup(light_ctl_setup_server_t *p_s_server, light_ctl_saved_values_t *p_saved_values)
Function to do the OnPowerup binding.
Forward declaration for __light_ctl_server_t.
uint8_t handle
Flash handle - only used by flash system.
Message format for the CTL Temperature Set message.
light_ctl_temperature_server_t ctl_temperature_srv
Parent model context for - CTL Temperature server.
light_ctl_server_t ctl_srv
Parent model context for - CTL server.
light_ctl_setup_server_settings_t settings
Model settings and callbacks for this instance.
uint32_t light_ctl_server_default_status_publish(const light_ctl_server_t *p_server, const light_ctl_default_status_params_t *p_params)
Publishes unsolicited Status message.
Storage format for model states while booting - the stored values will be read and passed to the mode...
void(* light_ctl_state_get_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_ctl_status_params_t *p_out)
Callback type for the Light CTL Get message.
access_model_handle_t model_handle
Model handle assigned to this instance.
void(* light_ctl_state_temperature32_range_get_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_ctl_temperature_range_status_params_t *p_out)
Callback type for the Light CTL Temperature Range Get message.
bool force_segmented
If server should force outgoing messages as segmented messages.
light_ctl_state_t state
State for this instance.
bool force_segmented
If server should force outgoing messages as segmented messages.
uint32_t light_ctl_setup_server_init(light_ctl_setup_server_t *p_s_server, light_lightness_setup_server_t *p_ll_s_server, uint8_t element_index)
Initializes the Light CTL Setup server.
Transaction callbacks for the Light CTL states.
User provided settings and callbacks for the CTL temperature model instance.
tid_tracker_t tid_tracker
Tid tracker structure.
nrf_mesh_transmic_size_t
Message MIC size selection.
uint32_t light_ctl_server_temperature_status_publish(const light_ctl_temperature_server_t *p_server, const light_ctl_temperature_status_params_t *p_params)
Publishes unsolicited Status message.
void(* light_ctl_state_temperature32_range_set_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_ctl_temperature_range_set_params_t *p_in, light_ctl_temperature_range_status_params_t *p_out)
Callback type for the Light CTL Temperature Range Set/Set Unacknowledged message. ...
Message format for the CTL Default Set message.
light_ctl_temperature_server_settings_t settings
Settings and callbacks for this instance.
const light_ctl_setup_server_callbacks_t * p_callbacks
Callback list.
Message format for the CTL delta set "message".
Parameters for the Light CTL Temperature Status message.
void(* light_ctl_state_set_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_ctl_set_params_t *p_in, const model_transition_t *p_in_transition, light_ctl_status_params_t *p_out)
Callback type for the Light CTL Set/Set Unacknowledged message.
Parameters for the Light CTL Status message.
Message format for the CTL Temperature Range Set message.
bool initialized
To keep track if values has been loaded from flash or not.
light_ctl_server_settings_t settings
Settings and callbacks for this instance.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
Parameters for the Light CTL Temperature Range Status message.
void(* light_ctl_state_default_get_cb_t)(const light_ctl_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_ctl_default_status_params_t *p_out)
Callback type for the Light CTL Default Get message.
Generic Transition parameters for the model messages.
tid_tracker_t tid_tracker
Tid tracker structure.
User provided settings and callbacks for the Light CTL server model instance.
Unpacked message structure typedefs are used for API interfaces and for implementing model code...