66#define CELL_DISCONNECT_MASK (0x001)
67#define CELL_PEC_FAIL_MASK (0x01 << 1)
68#define CELL_DCFAULT_MASK (0x01 << 3)
69#define CELL_TEMP_FAIL_MASK (0x01 << 4)
void loadConfig(BMSConfigStructTypedef *config)
Definition BMSconfig.c:10
: Header for main.c file. This file contains the common defines of the application.
Definition BMSconfig.h:20
uint16_t HUV_threshold
Definition BMSconfig.h:34
uint8_t numOfTempPerIC
Definition BMSconfig.h:27
bool GPIO3PulldownOff
Definition BMSconfig.h:52
uint16_t normalCurrent
Definition BMSconfig.h:45
uint8_t ADCMode
Definition BMSconfig.h:61
bool DischargeCell[12]
Definition BMSconfig.h:59
uint8_t addressesofICs[16]
Definition BMSconfig.h:24
bool ReferenceOn
Definition BMSconfig.h:55
bool GPIO1PulldownOff
Definition BMSconfig.h:54
uint8_t address[16]
Definition BMSconfig.h:23
uint8_t numOfICs
Definition BMSconfig.h:22
bool GPIO2PulldownOff
Definition BMSconfig.h:53
uint16_t UndervoltageComparisonVoltage
Definition BMSconfig.h:57
uint16_t UV_threshold
Definition BMSconfig.h:30
uint16_t stop_scaling
Definition BMSconfig.h:43
uint16_t balancing_difference
Definition BMSconfig.h:38
uint16_t slowCharge_threshold
Definition BMSconfig.h:35
uint8_t DischargeTimeoutValue
Definition BMSconfig.h:60
uint8_t numOfCellInputs
Definition BMSconfig.h:25
uint16_t UT_threshold
Definition BMSconfig.h:33
uint16_t chargerVoltage
Definition BMSconfig.h:47
bool DischargePermitted
Definition BMSconfig.h:62
uint16_t dischargeTime
Definition BMSconfig.h:41
uint16_t lowerCurrent
Definition BMSconfig.h:46
uint16_t OV_threshold
Definition BMSconfig.h:29
uint16_t scale_to
Definition BMSconfig.h:44
uint16_t max_difference
Definition BMSconfig.h:37
bool GPIO5PulldownOff
Definition BMSconfig.h:50
uint8_t ADCConversionRate
Definition BMSconfig.h:28
uint16_t balancing_start_threshold
Definition BMSconfig.h:39
uint8_t numOfCellsPerIC
Definition BMSconfig.h:26
uint16_t stopCharge_threshold
Definition BMSconfig.h:36
uint16_t LUV_threshold
Definition BMSconfig.h:31
bool ADCModeOption
Definition BMSconfig.h:56
uint16_t OvervoltageComparisonVoltage
Definition BMSconfig.h:58
uint8_t invalidPECcount
Definition BMSconfig.h:40
uint16_t OT_threshold
Definition BMSconfig.h:32
bool GPIO4PulldownOff
Definition BMSconfig.h:51
uint16_t start_scaling
Definition BMSconfig.h:42
Definition BMSconfig.h:71
uint8_t fault
Definition BMSconfig.h:72
uint16_t temperature
Definition BMSconfig.h:74
uint16_t voltage
Definition BMSconfig.h:73