Added memory config class
This commit is contained in:
46
firmware/src/logic/cfg_mem.h
Normal file
46
firmware/src/logic/cfg_mem.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef CONFIG_H_
|
||||
#define CONFIG_H_
|
||||
|
||||
/**** Includes ****/
|
||||
#include <stdint.h>
|
||||
#include "../hw/button.h"
|
||||
|
||||
namespace logic {
|
||||
|
||||
/**** Public definitions ****/
|
||||
|
||||
class CfgMemory
|
||||
{
|
||||
protected:
|
||||
uint8_t mem_btn_force;
|
||||
uint8_t mem_bmode;
|
||||
uint8_t mem_pot_mode;
|
||||
uint8_t mem_dsp_brigth;
|
||||
uint8_t mem_dsp_dimm;
|
||||
uint16_t mem_lock_current;
|
||||
|
||||
public:
|
||||
CfgMemory(void);
|
||||
~CfgMemory(void);
|
||||
|
||||
uint8_t btn_force;
|
||||
uint8_t bmode;
|
||||
uint8_t pot_mode;
|
||||
uint8_t dsp_brigth;
|
||||
uint8_t dsp_dimm;
|
||||
uint16_t lock_current;
|
||||
|
||||
void init(void);
|
||||
void save(void);
|
||||
void save_all(void);
|
||||
void restore(void);
|
||||
};
|
||||
|
||||
/**** Public function declarations ****/
|
||||
|
||||
#ifdef TESTING
|
||||
#endif
|
||||
|
||||
} //namespace
|
||||
|
||||
#endif /* DCCD_FORCE_H_ */
|
||||
Reference in New Issue
Block a user