Files
charge-controller-firmware/src/log.h
T
Martin Jaeger 4e0b7f2a12 Restructuring of data types (structs) and files
- dcdc_port_t renamed to power_port_t for future use in PWM charge controllers
- structs.h split into battery.h, log.h and charger.h
- bat_charger.cpp/h split into battery.cpp/h and charger.cpp/h
2019-03-10 17:19:44 +01:00

34 lines
544 B
C

#ifndef __LOG_H_
#define __LOG_H_
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Log Data
*
* Saves maximum ever measured values to EEPROM
*/
typedef struct {
float battery_voltage_max;
float solar_voltage_max;
float dcdc_current_max;
float load_current_max;
float temp_int; // °C (internal MCU temperature sensor)
float temp_int_max; // °C
float temp_mosfets_max;
int day_counter;
} log_data_t;
#ifdef __cplusplus
}
#endif
#endif // __LOG_H_