136 uint32_t signalData_valid;
139 (1u << sensorNumber)) == 0u) {
140 signalData_valid = 0u;
142 signalData_valid = 1u;
147 cellTemperatureInvalidFlagSignal.
bitStart,
148 cellTemperatureInvalidFlagSignal.
bitLength,
153 float signalData_degC =
164 (int32_t)signalData_degC,
182 uint64_t message = 0;
195 uint32_t signalData = *pMuxId / 6u;
233 #ifdef UNITY_UNIT_TEST
#define BS_NR_OF_TEMP_SENSORS_PER_MODULE
number of temperature sensors per battery module
#define BS_NR_OF_TEMP_SENSORS
static const CAN_SIGNAL_TYPE_s cell4Temperature_degC
static const CAN_SIGNAL_TYPE_s cell0TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cell5Temperature_degC
static const CAN_SIGNAL_TYPE_s cellTemperatureMultiplexer
static const CAN_SIGNAL_TYPE_s cell5TemperatureInvalidFlag
uint32_t CAN_TxCellTemperature(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 cell temperatures
static const CAN_SIGNAL_TYPE_s cell4TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cell2Temperature_degC
static const CAN_SIGNAL_TYPE_s cell2TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cell1Temperature_degC
static const CAN_SIGNAL_TYPE_s cell0Temperature_degC
static const CAN_SIGNAL_TYPE_s cell1TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cell3TemperatureInvalidFlag
static void CAN_TxTemperatureSetData(uint8_t muxId, uint64_t *pMessage, CAN_SIGNAL_TYPE_s cellTemperatureSignal, CAN_SIGNAL_TYPE_s cellTemperatureInvalidFlagSignal, CAN_ENDIANNESS_e endianness, const CAN_SHIM_s *const kpkCanShim)
Helper function for CAN_TxCellTemperature()
static const CAN_SIGNAL_TYPE_s cell3Temperature_degC
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...
void CAN_TxPrepareSignalData(float *pSignal, CAN_SIGNAL_TYPE_s signalProperties)
Prepare signal data. This function takes the signal data and applies factor, applies offset and compa...
Headers for the helper functions for the CAN module.
#define DATA_READ_DATA(...)
uint8_t DATA_GetSensorNumberFromTemperatureIndex(uint16_t sensorIndex)
Returns sensor number of passed temperature sensor index.
uint8_t DATA_GetModuleNumberFromTemperatureIndex(uint16_t sensorIndex)
Returns module number of passed temperature sensor index.
uint8_t DATA_GetStringNumberFromTemperatureIndex(uint16_t sensorIndex)
Returns string number of passed temperature sensor index.
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
math library for often used math functions
#define UNIT_CONVERSION_FACTOR_10_FLOAT
#define NULL_PTR
Null pointer.
DATA_BLOCK_CELL_TEMPERATURE_s * pTableCellTemperature
int16_t cellTemperature_ddegC[BS_NR_OF_STRINGS][BS_NR_OF_TEMP_SENSORS_PER_STRING]
uint16_t invalidCellTemperature[BS_NR_OF_STRINGS][BS_NR_OF_MODULES_PER_STRING]