38 #ifndef LIGHT_LIGHTNESS_SERVER_H__ 39 #define LIGHT_LIGHTNESS_SERVER_H__ 43 #include "light_lightness_common.h" 44 #include "model_common.h" 46 #include "generic_ponoff_setup_server.h" 47 #include "generic_level_server.h" 63 #define LIGHT_LIGHTNESS_SERVER_MODEL_ID 0x1300 66 #define LIGHT_LIGHTNESS_SETUP_SERVER_MODEL_ID 0x1301 453 uint8_t element_index);
uint32_t light_lightness_server_last_status_publish(light_lightness_server_t *p_server, const light_lightness_last_status_params_t *p_params)
Publishes unsolicited Status message.
void(* light_lightness_state_last_get_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_lightness_last_status_params_t *p_out)
Callback type for Light Lightness Last Get message.
uint16_t access_model_handle_t
Access layer handle type.
void(* light_lightness_state_move_set_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_lightness_move_set_params_t *p_in, const model_transition_t *p_in_transition, light_lightness_status_params_t *p_out)
Callback type for Light Lightness move Set/Set Unacknowledged "message".
Parameters for the light_lightness Linear Status message.
Light Lightness server callback list.
Structure for tracking TID expiry for the models.
Message format for the light_lightness Default set message.
tid_tracker_t tid_tracker
Tid tracker structure.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
bool force_segmented
If server should force outgoing messages as segmented messages.
Parameters for the light_lightness Last Status message.
light_lightness_server_t light_lightness_srv
Parent model context for - Light Lightness server.
uint32_t light_lightness_server_status_publish(const light_lightness_server_t *p_server, const light_lightness_status_params_t *p_params)
Publishes unsolicited Status message.
uint32_t light_lightness_server_linear_status_publish(light_lightness_server_t *p_server, const light_lightness_linear_status_params_t *p_params)
Publishes unsolicited Status message.
generic_ponoff_setup_server_t generic_ponoff_setup_srv
Parent model context for - Generic Power OnOff Setup server.
Unpacked message structure typedefs are used for API interfaces and for implementing model code...
uint32_t light_lightness_server_default_status_publish(const light_lightness_server_t *p_server, const light_lightness_default_status_params_t *p_params)
Publishes unsolicited Status message.
void(* light_lightness_state_set_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_lightness_set_params_t *p_in, const model_transition_t *p_in_transition, light_lightness_status_params_t *p_out)
Callback type for Light Lightness Set/Set Unacknowledged message.
const light_lightness_setup_server_callbacks_t * p_callbacks
Callback list.
light_lightness_setup_server_state_cbs_t light_lightness_cbs
Transaction callbacks for the Light Lightness states.
light_lightness_state_t state
State for this instance.
bool force_segmented
If server should force outgoing messages as segmented messages.
access_model_handle_t model_handle
Model handle assigned to this instance.
Transaction callbacks for the Light Lightness states.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
void(* light_lightness_state_default_get_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_lightness_default_status_params_t *p_out)
Callback type for Light Lightness Default Get message.
void(* light_lightness_state_range_set_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_lightness_range_set_params_t *p_in, light_lightness_range_status_params_t *p_out)
Callback type for Light Lightness Range Set/Set Unacknowledged message.
Message format for the light_lightness delta set "message".
uint32_t light_lightness_ponoff_binding_setup(light_lightness_setup_server_t *p_s_server, light_lightness_saved_values_t *p_saved_values)
Function to do the OnPowerup binding.
uint32_t light_lightness_setup_server_init(light_lightness_setup_server_t *p_server, uint8_t element_index)
Initializes Light Lightness Setup server.
Parameters for the light_lightness Default Status message.
Parameter format for code while booting - the stored values will be read and passed to the model to d...
User provided settings and callbacks for the model instance.
User provided settings and callbacks for the model instance.
light_lightness_server_settings_t settings
Settings and callbacks for this instance.
void(* light_lightness_state_range_get_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_lightness_range_status_params_t *p_out)
Callback type for Light Lightness Range Get message.
nrf_mesh_transmic_size_t
Message MIC size selection.
light_lightness_setup_server_settings_t settings
Model settings and callbacks for this instance.
void(* light_lightness_state_delta_set_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_lightness_delta_set_params_t *p_in, const model_transition_t *p_in_transition, light_lightness_status_params_t *p_out)
Callback type for Light Lightness delta Set/Set Unacknowledged "message".
uint32_t light_lightness_server_range_status_publish(const light_lightness_server_t *p_server, const light_lightness_range_status_params_t *p_params)
Publishes unsolicited Status message.
Message format for the light_lightness move set "message".
Message format for the light_lightness Range set message.
Parameters for the light_lightness Status message.
access_model_handle_t model_handle
Model handle assigned to this instance.
void(* light_lightness_state_get_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, light_lightness_status_params_t *p_out)
Callback type for Light Lightness Get message.
Parameters for the light_lightness Range Status message.
void(* light_lightness_state_default_set_cb_t)(const light_lightness_setup_server_t *p_self, const access_message_rx_meta_t *p_meta, const light_lightness_default_set_params_t *p_in, light_lightness_default_status_params_t *p_out)
Callback type for Light Lightness Default Set/Set Unacknowledged message.
generic_level_server_t generic_level_srv
Parent model context - Generic Level server, user must provide a state callback.
Generic Transition parameters for the model messages.
uint8_t element_index
Element Index.