58 #include "Mockdatabase.h"
60 #include "Mockfoxmath.h"
71 TEST_FILE(
"can_cbs_tx_cell-voltages.c")
128 uint8_t data[8] = {0};
130 DATA_Read1DataBlock_IgnoreAndReturn(0u);
147 TEST_ASSERT_EQUAL(0x00, data[0]);
148 TEST_ASSERT_EQUAL(0x03, data[1]);
149 TEST_ASSERT_EQUAL(0xE8, data[2]);
150 TEST_ASSERT_EQUAL(0x20, data[3]);
151 TEST_ASSERT_EQUAL(0xD1, data[4]);
152 TEST_ASSERT_EQUAL(0x77, data[5]);
153 TEST_ASSERT_EQUAL(0x0E, data[6]);
154 TEST_ASSERT_EQUAL(0x74, data[7]);
#define BS_NR_OF_STRINGS
Number of parallel strings in the battery pack.
uint32_t CANTX_CellVoltages(CAN_MESSAGE_PROPERTIES_s message, uint8_t *pCanData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
can tx callback function for cell voltages
Header for the driver for the CAN module.
#define CANTX_CELL_VOLTAGES_ID_TYPE
#define CANTX_CELL_VOLTAGES_ID
#define CANTX_CELL_VOLTAGES_ENDIANNESS
Headers for the helper functions for the CAN module.
Database configuration header.
@ DATA_BLOCK_ID_ERROR_STATE
@ DATA_BLOCK_ID_INSULATION_MONITORING
@ DATA_BLOCK_ID_STATE_REQUEST
@ DATA_BLOCK_ID_CELL_VOLTAGE
@ DATA_BLOCK_ID_CURRENT_SENSOR
@ DATA_BLOCK_ID_OPEN_WIRE_BASE
@ DATA_BLOCK_ID_PACK_VALUES
@ DATA_BLOCK_ID_CELL_TEMPERATURE
#define NULL_PTR
Null pointer.
DATA_BLOCK_CELL_VOLTAGE_s * pTableCellVoltage
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
int16_t cellVoltage_mV[BS_NR_OF_STRINGS][BS_NR_OF_CELL_BLOCKS_PER_STRING]
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
static DATA_BLOCK_CELL_VOLTAGE_s can_tableCellVoltages
void testCAN_TxVoltage(void)
static DATA_BLOCK_MSL_FLAG_s can_tableMslFlags
static DATA_BLOCK_MIN_MAX_s can_tableMinimumMaximumValues
static DATA_BLOCK_OPEN_WIRE_s can_tableOpenWire
static DATA_BLOCK_PACK_VALUES_s can_tablePackValues
static DATA_BLOCK_MOL_FLAG_s can_tableMolFlags
static DATA_BLOCK_ERROR_STATE_s can_tableErrorState
const CAN_SHIM_s can_kShim
static DATA_BLOCK_CELL_TEMPERATURE_s can_tableTemperatures
static DATA_BLOCK_SOX_s can_tableSox
static DATA_BLOCK_RSL_FLAG_s can_tableRslFlags
static DATA_BLOCK_STATE_REQUEST_s can_tableStateRequest
static DATA_BLOCK_INSULATION_MONITORING_s can_tableInsulation
static DATA_BLOCK_SOF_s can_tableSof
static DATA_BLOCK_CURRENT_SENSOR_s can_tableCurrentSensor
OS_QUEUE imd_canDataQueue