60 #ifndef FOXBMS__BATTERY_CELL_CFG_H_
61 #define FOXBMS__BATTERY_CELL_CFG_H_
80 #define BC_TEMPERATURE_MAX_DISCHARGE_MSL_ddegC (550)
81 #define BC_TEMPERATURE_MAX_DISCHARGE_RSL_ddegC (500)
82 #define BC_TEMPERATURE_MAX_DISCHARGE_MOL_ddegC (450)
95 #define BC_TEMPERATURE_MIN_DISCHARGE_MSL_ddegC (-200)
96 #define BC_TEMPERATURE_MIN_DISCHARGE_RSL_ddegC (-150)
97 #define BC_TEMPERATURE_MIN_DISCHARGE_MOL_ddegC (-100)
110 #define BC_TEMPERATURE_MAX_CHARGE_MSL_ddegC (450)
111 #define BC_TEMPERATURE_MAX_CHARGE_RSL_ddegC (400)
112 #define BC_TEMPERATURE_MAX_CHARGE_MOL_ddegC (350)
125 #define BC_TEMPERATURE_MIN_CHARGE_MSL_ddegC (-200)
126 #define BC_TEMPERATURE_MIN_CHARGE_RSL_ddegC (-150)
127 #define BC_TEMPERATURE_MIN_CHARGE_MOL_ddegC (-100)
140 #define BC_VOLTAGE_MAX_MSL_mV (2800)
141 #define BC_VOLTAGE_MAX_RSL_mV (2750)
142 #define BC_VOLTAGE_MAX_MOL_mV (2720)
150 #define BC_VOLTAGE_NOMINAL_mV (2500)
162 #define BC_VOLTAGE_MIN_MSL_mV (1700)
163 #define BC_VOLTAGE_MIN_RSL_mV (1750)
164 #define BC_VOLTAGE_MIN_MOL_mV (1780)
176 #define BC_VOLTAGE_DEEP_DISCHARGE_mV (BC_VOLTAGE_MIN_MSL_mV)
188 #define BC_CURRENT_MAX_DISCHARGE_MSL_mA (180000u)
189 #define BC_CURRENT_MAX_DISCHARGE_RSL_mA (175000u)
190 #define BC_CURRENT_MAX_DISCHARGE_MOL_mA (170000u)
203 #define BC_CURRENT_MAX_CHARGE_MSL_mA (180000u)
204 #define BC_CURRENT_MAX_CHARGE_RSL_mA (175000u)
205 #define BC_CURRENT_MAX_CHARGE_MOL_mA (170000u)
213 #define BC_CAPACITY_mAh (3500u)
220 #define BC_ENERGY_Wh (10.0f)
222 #if BC_VOLTAGE_MIN_MSL_mV < BC_VOLTAGE_DEEP_DISCHARGE_mV
223 #error "Configuration error! - Maximum safety limit for under voltage can't be lower than deep-discharge limit"
242 #ifdef UNITY_UNIT_TEST
uint16_t bc_stateOfChargeLookupTableLength
uint16_t bc_stateOfEnergyLookupTableLength
const BC_LUT_s bc_stateOfEnergyLookupTable[]
const BC_LUT_s bc_stateOfChargeLookupTable[]