170 return contactorSetInformation;
247 uint8_t prechargeContactorNumber = 0u;
255 for (uint8_t stringPrechargeNumber = 0u; stringPrechargeNumber <
BS_NR_OF_STRINGS; stringPrechargeNumber++) {
257 if (stringPrechargeNumber == stringNumber) {
260 prechargeContactorNumber++;
274 uint8_t prechargeContactorNumber = 0u;
281 for (uint8_t stringPrechargeNumber = 0u; stringPrechargeNumber <
BS_NR_OF_STRINGS; stringPrechargeNumber++) {
283 if (stringPrechargeNumber == stringNumber) {
286 prechargeContactorNumber++;
307 #ifdef UNITY_UNIT_TEST
308 extern void TEST_CONT_InitializationCheckOfContactorRegistry() {
BS_STRING_PRECHARGE_PRESENT_e bs_stringsWithPrecharge[BS_NR_OF_STRINGS]
#define BS_NR_OF_STRINGS
Number of parallel strings in the battery pack.
@ BS_STRING_WITH_PRECHARGE
#define BS_NR_OF_CONTACTORS
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define FAS_TRAP
Define that evaluates to essential boolean false thus tripping an assert.
#define f_static_assert(cond, msg)
Headers for the driver for the MCU module.
CONT_ELECTRICAL_STATE_TYPE_e SPS_GetChannelPexFeedback(const SPS_CHANNEL_INDEX channelIndex, bool normallyOpen)
Get the feedback state of a channel.
SPS_CHANNEL_AFFILIATION_e SPS_GetChannelAffiliation(SPS_CHANNEL_INDEX channelIndex)
Returns the channel affiliation.
CONT_ELECTRICAL_STATE_TYPE_e SPS_GetChannelCurrentFeedback(const SPS_CHANNEL_INDEX channelIndex)
Get feedback value.
void SPS_RequestContactorState(SPS_CHANNEL_INDEX channelIndex, SPS_CHANNEL_FUNCTION_e channelFunction)
Request state of a contactor.
Headers for the driver for the smart power switches.
uint8_t SPS_CHANNEL_INDEX
SPS_CHANNEL_AFFILIATION_e
affiliation type of a sps channel