88 int16_t packMaximumVoltage_mV = INT16_MIN;
89 int16_t packMinimumVoltage_mV = INT16_MAX;
90 int16_t packMaximumTemperature_ddegC = INT16_MIN;
91 int16_t packMinimumTemperature_ddegC = INT16_MAX;
95 for (uint8_t stringNumber = 0u; stringNumber <
BS_NR_OF_STRINGS; stringNumber++) {
111 for (uint8_t stringNumber = 0u; stringNumber <
BS_NR_OF_STRINGS; stringNumber++) {
131 float signalData = (float)packMinimumVoltage_mV;
134 signalData = (signalData + offset) * factor;
135 uint64_t data = (int64_t)signalData;
140 signalData = (float)packMaximumVoltage_mV;
143 signalData = (signalData + offset) * factor;
144 data = (int64_t)signalData;
149 signalData = (float)packMinimumTemperature_ddegC;
152 signalData = (signalData + offset) * factor;
153 data = (int64_t)signalData;
158 signalData = (float)packMaximumTemperature_ddegC;
161 signalData = (signalData + offset) * factor;
162 data = (int64_t)signalData;
186 uint64_t message = 0u;
191 const uint8_t stringNumber = *pMuxId;
198 signalData = (signalData + offset) * factor;
199 uint64_t data = (int64_t)signalData;
207 signalData = (signalData + offset) * factor;
208 data = (int64_t)signalData;
216 signalData = (signalData + offset) * factor;
217 data = (int64_t)signalData;
225 signalData = (signalData + offset) * factor;
226 data = (int64_t)signalData;
246 #ifdef UNITY_UNIT_TEST
uint8_t BMS_GetNumberOfConnectedStrings(void)
Returns number of connected strings.
bool BMS_IsStringClosed(uint8_t stringNumber)
Returns string state (closed or open)
uint32_t CAN_TxMinimumMaximumValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for min/max values
uint32_t CAN_TxStringMinimumMaximumValues(uint32_t id, uint8_t dlc, CAN_ENDIANNESS_e endianness, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for string minimum and maximum values
enum CAN_ENDIANNESS CAN_ENDIANNESS_e
void CAN_TxSetMessageDataWithSignalData(uint64_t *pMessage, uint64_t bitStart, uint8_t bitLength, uint64_t canSignal, CAN_ENDIANNESS_e endianness)
Puts CAN signal data in a 64-bit variable. This function is used to compose a 64-bit CAN message....
void CAN_TxSetCanDataWithMessageData(uint64_t message, uint8_t *pCanData, CAN_ENDIANNESS_e endianness)
Copy CAN data from a 64-bit variable to 8 bytes. This function is used to copy a 64-bit CAN message t...
Headers for the helper functions for the CAN module.
#define DATA_READ_DATA(...)
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define NULL_PTR
Null pointer.
DATA_BLOCK_MIN_MAX_s * pTableMinMax
int16_t maximumTemperature_ddegC[BS_NR_OF_STRINGS]
int16_t minimumTemperature_ddegC[BS_NR_OF_STRINGS]
int16_t maximumCellVoltage_mV[BS_NR_OF_STRINGS]
int16_t minimumCellVoltage_mV[BS_NR_OF_STRINGS]