#ifndef _EEPROM_PARAMETERS_H_ #define _EEPROM_PARAMETERS_H_ struct ee_param { int16_t uin_loss; int16_t uin_restore; int16_t ubat_full; int16_t ubat_low; int16_t ubat_critical; int16_t ibat_full; uint16_t crc16; }; #define DEFAULT_PARAMETERS { \ .uin_loss = 12000, \ .uin_restore = 14000, \ .ubat_full = 13300, \ .ubat_low = 12000, \ .ubat_critical = 11000, \ .ibat_full = 150, \ }; uint8_t read_parameters(void); void write_parameters(void); #endif