27 #define CONF_MAGIC 0x0151 37 #define SPIVREF (2.5/(R12+R13)*R13) 38 #define SPIADCVOLTSPERLSB (SPIVREF/65536) 39 #define SPIDIFFVOLTSPERLSB (SPIADCVOLTSPERLSB/R18*(R16+R18)) 40 #define SPIHIGHAMPSPERLSB (SPIADCVOLTSPERLSB/R23) 41 #define SPILOWAMPSPERLSB (SPIADCVOLTSPERLSB/R25) 46 #define PRESET2 0.0015
double i2
Current Limit for Pv-Area (3.5A for TIP102)
Definition: config.h:73
double DACHighAmpsPerLSB
Amperes per LSB in High Current Range.
Definition: config.h:95
double dacHighAdj
A factor considering RchanP.
Definition: config.h:113
uint8_t tempMax
Definition: config.h:69
void WriteConfig(void)
Writes the Config-Struct to EEPROM.
Definition: config.c:148
double i3
Current Limit for 60V (350mA for TIP102)
Definition: config.h:74
Holds all Configuration Data stored in EEPROM.
Definition: config.h:82
void DumpConfigSignal(uint8_t number)
double rangeLowLimit
Below this Current, Eload switches to low current Range.
Definition: config.h:115
volatileConfStruct_t volatileConfig
Configuration Values that can be calculated.
Definition: config.c:38
double iMax
The absolute maximum Current. Eload will not allow currents more than this.
Definition: config.h:72
uint8_t LCDV0
Control Voltage for LCD Contrast.
Definition: config.h:84
double Rhigh
Value of the Sense Resistor for High Current Range.
Definition: config.h:111
double ADCHighAmpsPerLSB
Amperes per LSB in High Current Range.
Definition: config.h:92
double pMax
Up to this Voltage, 4A are allowable (20V for TIP102)
Definition: config.h:70
double SBa
Definition: config.h:117
double Rlow
Value of the Sense Resistor for Low Current Range.
Definition: config.h:110
void DumpConfig(void)
Lists the current configuration values.
Definition: config.c:186
double VImax
Maximum Voltage at IMax.
Definition: config.h:116
uint16_t magic
Used to discover unprogrammed Devices.
Definition: config.h:83
double DACLowAmpsPerLSB
Amperes per LSB in Low Current Range.
Definition: config.h:94
These values will be calculated by ReadConfig() and/or on-the-fly by measurement.
Definition: config.h:109
bool configDirty
Set to true by routines affecting configuration if config memory needs to be saved to the EEPROM.
Definition: config.c:116
double SBb
Definition: config.h:118
confStruct_t config
The Configuration. It is read on startup from the EEPROM.
Definition: config.c:37
double rangeHighLimit
Above this Current, Eload switches to high current Range.
Definition: config.h:114
bool backlightAlwaysOn
True if the Backlight should stay on forever.
Definition: config.h:88
double P5VoltsPerLSB
Calibration Value for 5V.
Definition: config.h:86
void ReadConfig(void)
Reads the Config-Struct from EEPROM into config.
Definition: config.c:125
double ADCDiffVoltsPerLSB
Volts per LSB for differential Voltage measurement.
Definition: config.h:93
double ADCLowAmpsPerLSB
Amperes per LSB in Low Current Range.
Definition: config.h:91
double RchanP
Calculated Channel Resistance of the FET shorting Rhigh || Rhigh.
Definition: config.h:112
uint8_t backlightOnTime
Time the Backlight will stay on after Key Press in Seconds.
Definition: config.h:89
uint8_t LCDBright
LCD Brightness.
Definition: config.h:85
soa_t soa
The Safe Operating Area.
Definition: config.h:96
double P12VoltsPerLSB
Calibration Value for Unreg.
Definition: config.h:87
double v2
Voltage Limit for Pv-Area (25V for TIP102)
Definition: config.h:71
double SOAGetImax(double v)
Calculate maximum allowable Current at a given Voltage.
Definition: config.c:165