38 #ifndef GENERIC_LEVEL_SERVER_H__ 39 #define GENERIC_LEVEL_SERVER_H__ 43 #include "generic_level_common.h" 44 #include "model_common.h" 53 #define GENERIC_LEVEL_SERVER_MODEL_ID 0x1002 uint16_t access_model_handle_t
Access layer handle type.
bool force_segmented
If server should force outgoing messages as segmented messages.
Structure for tracking TID expiry for the models.
uint8_t state_handle
State handle for this instance.
void(* generic_level_state_set_cb_t)(const generic_level_server_t *p_self, const access_message_rx_meta_t *p_meta, const generic_level_set_params_t *p_in, const model_transition_t *p_in_transition, generic_level_status_params_t *p_out)
Callback type for Generic Level Set/Set Unacknowledged message.
void(* generic_level_state_get_cb_t)(const generic_level_server_t *p_self, const access_message_rx_meta_t *p_meta, generic_level_status_params_t *p_out)
Callback type for Generic Level Get message.
access_model_handle_t model_handle
Model handle assigned to this instance.
uint32_t generic_level_server_state_set(generic_level_server_t *p_server, int16_t level)
Function to trigger level value set as a Generic Level server callback.
const generic_level_server_callbacks_t * p_callbacks
Callback list.
Transaction callbacks for the Level state.
Message format for the generic_level Move Set message.
Parameters for the generic_level Status message.
User provided settings and callbacks for the model instance.
uint32_t generic_level_server_init(generic_level_server_t *p_server, uint8_t element_index)
Initializes Generic Level server.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
Message format for the generic_level Delta Set message.
generic_level_server_settings_t settings
Model settings and callbacks for this instance.
nrf_mesh_transmic_size_t
Message MIC size selection.
generic_level_server_state_cbs_t level_cbs
Callbacks for the level state.
tid_tracker_t tid_tracker
Tid tracker structure.
uint32_t generic_level_server_status_publish(generic_level_server_t *p_server, const generic_level_status_params_t *p_params)
Publishes unsolicited Status message.
Unpacked message structure typedefs are used for API interfaces and for implementing model code...
Level server callback list.
void(* generic_level_state_delta_set_cb_t)(const generic_level_server_t *p_self, const access_message_rx_meta_t *p_meta, const generic_level_delta_set_params_t *p_in, const model_transition_t *p_in_transition, generic_level_status_params_t *p_out)
Callback type for Generic Level Delta Set/Delta Set Unacknowledged message.
void(* generic_level_state_move_set_cb_t)(const generic_level_server_t *p_self, const access_message_rx_meta_t *p_meta, const generic_level_move_set_params_t *p_in, const model_transition_t *p_in_transition, generic_level_status_params_t *p_out)
Callback type for Generic Level Move Set/Move Set Unacknowledged message.
Generic Transition parameters for the model messages.