43 #include "scene_setup_server.h" 44 #include "app_transition.h" 45 #include "nrf_mesh_config_examples.h" 89 #define APP_SCENE_SETUP_SERVER_DEF(_name, _force_segmented, _mic_size, _transition_cb, _p_dtt_server); \ 90 APP_TIMER_DEF(_name ## _timer); \ 91 static app_scene_setup_server_t _name = \ 93 .scene_setup_server.settings.force_segmented = _force_segmented, \ 94 .scene_setup_server.settings.transmic_size = _mic_size, \ 95 .state.transition.timer.p_timer_id = &_name ## _timer, \ 96 .app_scene_transition_cb = _transition_cb, \ 97 .scene_setup_server.p_gen_dtt_server = _p_dtt_server \ 102 #ifndef APP_SCENE_MODEL_COUNT 103 #define APP_SCENE_MODEL_COUNT (1) 139 uint32_t transition_time_ms,
140 uint16_t target_scene);
154 uint8_t scene_index);
174 uint32_t transition_time_ms);
188 uint8_t scene_index);
208 scene_setup_server_t scene_setup_server;
255 app_scene_model_interface_t * p_app_scene_model_interface);
uint32_t app_scene_model_init(app_scene_setup_server_t *p_app, uint8_t element_index)
Initializes the behavioral module for the Scene model.
Internal structure to hold state.
app_scene_transition_cb_t app_scene_transition_cb
The device scene transition time.
#define APP_SCENE_MODEL_COUNT
Number of Scene Models to support storage.
app_scene_state_t state
Internal variable.
void(* app_scene_transition_cb_t)(const app_scene_setup_server_t *p_app, uint32_t transition_time_ms, uint16_t target_scene)
Application transition time callback prototype.
uint16_t target_scene_number
Target scene number for transition to active scene, as received from the model interface.
uint32_t app_scene_model_add(app_scene_setup_server_t *p_app, app_scene_model_interface_t *p_app_scene_model_interface)
The API is to be called by application to register a model which is to be stored with scene...
uint32_t next_model_interface
Internal variable.
Application level structure holding the Scene server model context and sensor state representation...
uint16_t current_scene_number
Current scene number for the active scene.
void(* app_scene_store_cb_t)(const app_scene_model_interface_t *p_app_model_if, uint8_t scene_index)
Application Scene state store callback prototype.
void(* app_scene_recall_cb_t)(const app_scene_model_interface_t *p_app_model_if, uint8_t scene_index, uint32_t delay_ms, uint32_t transition_time_ms)
Application Scene state recall callback prototype.
void app_scene_model_scene_changed(app_scene_setup_server_t *p_app)
This API is called by the behavioral modules of other models to inform that the current state of the ...
void(* app_scene_delete_cb_t)(const app_scene_model_interface_t *p_app_model_if, uint8_t scene_index)
Application Scene state delete callback prototype.
app_transition_t transition
Structure for using transition module functionality.