94 signalData = (signalData + offset) * factor;
95 uint64_t data = (uint64_t)signalData;
103 signalData = (signalData + offset) * factor;
104 data = (uint64_t)signalData;
112 signalData = (signalData + offset) * factor;
113 data = (int64_t)signalData;
121 signalData = (signalData + offset) * factor;
122 data = (int64_t)signalData;
146 uint64_t message = 0;
148 float signalData = 0.0f;
152 const uint8_t stringNumber = *pMuxId;
155 if (stringNumber == 0u) {
162 data = (uint64_t)stringNumber;
171 signalData = (signalData + offset) * factor;
172 data = (int64_t)signalData;
180 signalData = (signalData + offset) * factor;
181 data = (int64_t)signalData;
189 signalData = (signalData + offset) * factor;
190 data = (int64_t)signalData;
222 uint64_t message = 0u;
223 uint64_t signalData = 0u;
225 const uint8_t stringNumber = *pMuxId;
228 if (stringNumber == 0u) {
235 signalData = (uint64_t)stringNumber;
263 #ifdef UNITY_UNIT_TEST
#define BS_NR_OF_STRINGS
Number of parallel strings in the battery pack.
uint32_t CAN_TxStringValues2(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 values 2
uint32_t CAN_TxPackValues(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 pack values values
uint32_t CAN_TxStringValues(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 values
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.
void OS_ExitTaskCritical(void)
Exit Critical interface function for use in FreeRTOS-Tasks and FreeRTOS-ISR.
void OS_EnterTaskCritical(void)
Enter Critical interface function for use in FreeRTOS-Tasks and FreeRTOS-ISR.
DATA_BLOCK_PACK_VALUES_s * pTablePackValues
DATA_BLOCK_CURRENT_SENSOR_s * pTableCurrentSensor
int32_t energyCounter_Wh[BS_NR_OF_STRINGS]
int32_t stringVoltage_mV[BS_NR_OF_STRINGS]
int32_t highVoltageBusVoltage_mV
int32_t stringPower_W[BS_NR_OF_STRINGS]
int32_t batteryVoltage_mV
int32_t stringCurrent_mA[BS_NR_OF_STRINGS]