58 #include "Mockcan_helper.h"
59 #include "Mockdatabase.h"
61 #include "Mockfoxmath.h"
71 TEST_SOURCE_FILE(
"can_cbs_tx_debug-unsupported-multiplexer-values.c")
73 TEST_INCLUDE_PATH("../../src/app/application/bms")
74 TEST_INCLUDE_PATH("../../src/app/driver/can")
75 TEST_INCLUDE_PATH("../../src/app/driver/can/cbs")
76 TEST_INCLUDE_PATH("../../src/app/driver/can/cbs/tx")
77 TEST_INCLUDE_PATH("../../src/app/driver/config")
78 TEST_INCLUDE_PATH("../../src/app/driver/foxmath")
79 TEST_INCLUDE_PATH("../../src/app/driver/imd")
80 TEST_INCLUDE_PATH("../../src/app/engine/
diag")
81 TEST_INCLUDE_PATH("../../src/app/task/config")
85 #define TEST_UNSUPPORTED_MULTIPLEXER 0x201
86 #define TEST_UNSUPPORTED_MULTIPLEXER_IDENTIFIER_TYPE (CAN_STANDARD_IDENTIFIER_11_BIT)
147 uint32_t testMessageId = 2u;
148 uint32_t testInvalidMultiplexerValue = 22u;
150 uint64_t testMessage = 0;
151 CAN_TxSetMessageDataWithSignalData_Expect(&testMessage, 0, 16, testMessageId,
CAN_BIG_ENDIAN);
152 CAN_TxSetMessageDataWithSignalData_Expect(&testMessage, 16, 16, testInvalidMultiplexerValue,
CAN_BIG_ENDIAN);
153 CAN_TxSetCanDataWithMessageData_Expect(testMessage, &testData[0],
CAN_BIG_ENDIAN);
154 CAN_DataSend_ExpectAndReturn(
void CANTX_UnsupportedMultiplexerValue(uint32_t messageId, uint32_t multiplexerValue)
Function to generically handle multiplexer values that are not supported in a message.
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
@ DATA_BLOCK_ID_AEROSOL_SENSOR
static DIAG_DIAGNOSIS_STATE_s diag
#define NULL_PTR
Null pointer.
canBASE_t * canNodeRegister
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
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
OS_QUEUE ftsk_rtcSetTimeQueue
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
#define TEST_UNSUPPORTED_MULTIPLEXER
void testCANTX_UnsupportedMultiplexerValue(void)
static DATA_BLOCK_MOL_FLAG_s can_tableMolFlags
static DATA_BLOCK_AEROSOL_SENSOR_s can_tableAerosolSensor
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_SOE_s can_tableSoe
const CAN_NODE_s can_node1
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
const CAN_NODE_s can_node2Isolated
#define TEST_UNSUPPORTED_MULTIPLEXER_IDENTIFIER_TYPE
static DATA_BLOCK_SOC_s can_tableSoc
static DATA_BLOCK_CURRENT_SENSOR_s can_tableCurrentSensor
OS_QUEUE imd_canDataQueue