1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
2  *
3  * Copyright (c) 2018 Vikrant More
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #ifndef _STORAGE_H
9 #define _STORAGE_H
10 
11 enum ps_variables_id {
12 	RESET_COUNTER = 0x01,
13 	GEN_DEF_TRANS_TIME_STATE,
14 	GEN_ONPOWERUP_STATE,
15 
16 	DEF_STATES,
17 
18 	LIGHTNESS_LAST_STATE,
19 
20 	LAST_TARGET_STATES,
21 
22 	LIGHTNESS_RANGE,
23 	TEMPERATURE_RANGE
24 };
25 
26 extern uint8_t reset_counter;
27 
28 extern struct k_work storage_work;
29 
30 int ps_settings_init(void);
31 void save_on_flash(uint8_t id);
32 
33 #endif
34