/* Copyright 2025 by COG9 Enterprises LLC
 * All rights reserved.
 * Title: eepromconst.h
 * Author: Jed Marti KI7NNP
 * Description: Structures and prototypes for EEPROM constants.
 * Created: Wed Oct 22 08:20:26 2025
 * Revision History:
 *   Sun Feb 22 18:10:19 2026 - JBM Remove 219 calibration junk.
 */

#ifndef eepromconst_h
#define eepromconst_h

typedef struct {
  char     eeOwner[8];      // Startup owner splash screen (i.e. call sign).
  float    eeM;             // Battery LLSQ values.
  float    eeB;
  float    eeBatLow;        // Battery voltage levels.
  float    eeBatOver;
  float    eeBatBad;
  int16_t  eeMaxTemp;       // Maximum temperature, any monitor.
  uint16_t eeSampleMS;      // rate 10
  uint16_t eeSampleSize;    // samples 20
  uint16_t graphMS;         // Milliseconds between graph updates.
  uint8_t  whichRecord;     // What was recorded.
  float    Wh;              // Watt hours of this battery.
  float    lastWh;          // Rewritten when power off.
} eePROMValues;

void initEEPROM(void);
void updateEEPROM(void);
void resetEEPROM(void);
void setEEPROM(void);
#endif
