Finished working initial version Co-authored-by: Andis Zīle <andis.jarganns@gmail.com> Reviewed-on: #4 Co-authored-by: Andis Zīle <andis.jargans@gmail.com> Co-committed-by: Andis Zīle <andis.jargans@gmail.com>
48 lines
734 B
C++
48 lines
734 B
C++
#ifndef DCCD_APP_H_
|
|
#define DCCD_APP_H_
|
|
|
|
/**** Includes ****/
|
|
#include <stdint.h>
|
|
#include "dccd_hw.h"
|
|
|
|
namespace dccd {
|
|
|
|
/**** Public definitions ****/
|
|
class DccdApp
|
|
{
|
|
public:
|
|
DccdApp(void);
|
|
~DccdApp(void);
|
|
|
|
void init(DccdHw* dccd_hw);
|
|
void process(void);
|
|
|
|
uint16_t lock_current;
|
|
uint16_t max_hbrake_time;
|
|
uint16_t btn_force_repeat_time;
|
|
uint16_t btn_mode_repeat_time;
|
|
uint8_t button_inputs;
|
|
uint8_t display_brigth;
|
|
uint8_t display_dimm;
|
|
|
|
uint8_t btn_force;
|
|
uint8_t pot_force;
|
|
uint8_t brake_mode;
|
|
|
|
uint8_t loadMemCfg(void);
|
|
void saveMemCfg(void);
|
|
|
|
#ifdef TESTING
|
|
protected:
|
|
#endif
|
|
DccdHw* hardware;
|
|
};
|
|
|
|
/**** Public function declarations ****/
|
|
|
|
#ifdef TESTING
|
|
#endif
|
|
|
|
} //namespace
|
|
|
|
#endif /* DCCD_APP_H_ */ |