139 uint32_t signalData_valid;
142 (1u << sensorNumber)) == 0u) {
143 signalData_valid = 0u;
145 signalData_valid = 1u;
150 cellTemperatureInvalidFlagSignal.
bitStart,
151 cellTemperatureInvalidFlagSignal.
bitLength,
156 float_t signalData_degC =
166 (int32_t)signalData_degC,
183 uint64_t messageData = 0u;
196 uint32_t signalData = *pMuxId / 6u;
268 #ifdef UNITY_UNIT_TEST
#define BS_NR_OF_TEMP_SENSORS
static const CAN_SIGNAL_TYPE_s cantx_cell5Temperature_degC
static const CAN_SIGNAL_TYPE_s cantx_cell0Temperature_degC
static const CAN_SIGNAL_TYPE_s cantx_cell2TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cantx_cellTemperatureMultiplexer
static void CANTX_TemperatureSetData(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 CANTX_CellTemperatures()
static const CAN_SIGNAL_TYPE_s cantx_cell5TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cantx_cell1TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cantx_cell3TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cantx_cell2Temperature_degC
static const CAN_SIGNAL_TYPE_s cantx_cell0TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cantx_cell1Temperature_degC
uint32_t CANTX_CellTemperatures(CAN_MESSAGE_PROPERTIES_s message, 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 cantx_cell4TemperatureInvalidFlag
static const CAN_SIGNAL_TYPE_s cantx_cell3Temperature_degC
static const CAN_SIGNAL_TYPE_s cantx_cell4Temperature_degC
#define CAN_FOXBMS_MESSAGES_DEFAULT_DLC
Header for the driver for the CAN module.
#define CANTX_CELL_TEMPERATURES_ID_TYPE
#define CANTX_CELL_TEMPERATURES_ID
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_t *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.
CAN_IDENTIFIER_TYPE_e idType
CAN_ENDIANNESS_e endianness
DATA_BLOCK_CELL_TEMPERATURE_s * pTableCellTemperature
int16_t cellTemperature_ddegC[BS_NR_OF_STRINGS][BS_NR_OF_MODULES_PER_STRING][BS_NR_OF_TEMP_SENSORS_PER_MODULE]
uint16_t invalidCellTemperature[BS_NR_OF_STRINGS][BS_NR_OF_MODULES_PER_STRING]