38 #ifndef GENERIC_LEVEL_MC_H__ 39 #define GENERIC_LEVEL_MC_H__ 43 #include "generic_level_common.h" 44 #include "mesh_config.h" 46 #include "model_config_file.h" 48 #if (SCENE_SETUP_SERVER_INSTANCES_MAX > 0) || (DOXYGEN) 49 #include "scene_common.h" 65 #if (SCENE_SETUP_SERVER_INSTANCES_MAX > 0) || (DOXYGEN) 66 #define GENERIC_LEVEL_SERVER_STORED_WITH_SCENE_STATES (GENERIC_LEVEL_SERVER_INSTANCES_MAX + \ 67 (SCENE_REGISTER_ARRAY_SIZE * GENERIC_LEVEL_SERVER_INSTANCES_MAX)) 69 #define GENERIC_LEVEL_SERVER_STORED_WITH_SCENE_STATES (GENERIC_LEVEL_SERVER_INSTANCES_MAX) 72 #define GENERIC_LEVEL_EID_START (MESH_APP_MODEL_GENERIC_LEVEL_ID_START) 73 #define GENERIC_LEVEL_EID_END (GENERIC_LEVEL_EID_START + GENERIC_LEVEL_SERVER_STORED_WITH_SCENE_STATES - 1) 76 #define GENERIC_LEVEL_EID MESH_CONFIG_ENTRY_ID(MESH_OPT_MODEL_FILE_ID, GENERIC_LEVEL_EID_START) 101 #if (SCENE_SETUP_SERVER_INSTANCES_MAX > 0) || (DOXYGEN) uint32_t generic_level_mc_scene_level_store(uint8_t index, uint8_t scene_index, int16_t value)
Store internal Scene Level state variable.
uint32_t generic_level_mc_open(uint8_t *p_handle)
Create an instance of the Generic Level Server model states and return the corresponding handle...
uint32_t generic_level_mc_level_state_set(uint8_t index, int16_t value)
Set internal Level state variable.
void generic_level_mc_init(void)
Initialize the Generic Level Server persistent memory.
uint32_t generic_level_mc_level_state_get(uint8_t index, int16_t *p_value)
Get internal Level state variable.
uint32_t generic_level_mc_scene_level_recall(uint8_t index, uint8_t scene_index, int16_t *p_value)
Recall internal Scene Level state variable.
void generic_level_mc_clear(void)
Clear all stored data and reset state contexts to default values.