56 #include "Mockbattery_cell_cfg.h"
149 BMS_IsStringClosed_ExpectAndReturn(0u,
false);
150 BMS_IsStringPrecharging_ExpectAndReturn(0u,
false);
#define BC_CURRENT_MAX_DISCHARGE_MSL_mA
Maximum discharge current limit.
#define BC_CURRENT_MAX_CHARGE_MSL_mA
Maximum charge current limit.
#define BS_MAXIMUM_PACK_CURRENT_mA
Maximum pack current limit in mA that is used in the SOA module to check for pack overcurrent.
#define BS_MAXIMUM_STRING_CURRENT_mA
Maximum string current limit in mA that is used in the SOA module to check for string overcurrent.
#define BS_NR_OF_PARALLEL_CELLS_PER_MODULE
number of battery cells in a parallel cell connection per battery module
bool SOA_IsCurrentOnOpenString(BMS_CURRENT_FLOW_STATE_e currentDirection, uint8_t stringNumber)
Checks if string current is floating while contactors are open.
bool SOA_IsPackCurrentLimitViolated(uint32_t current_mA, BMS_CURRENT_FLOW_STATE_e currentDirection)
Checks if pack current limit is violated.
bool SOA_IsStringCurrentLimitViolated(uint32_t current_mA, BMS_CURRENT_FLOW_STATE_e currentDirection)
Checks if string current limit is violated.
bool SOA_IsCellCurrentLimitViolated(uint32_t current_mA, BMS_CURRENT_FLOW_STATE_e currentDirection)
Checks if cell current limit is violated.
Configuration header for SOA.
void testSOA_IsCellCurrentLimitViolated(void)
void testSOA_IsCurrentOnOpenString(void)
void testSOA_IsStringCurrentLimitViolated(void)
void testSOA_IsPackCurrentLimitViolated(void)