57 #include "Mockdatabase.h"
59 #include "Mockfoxmath.h"
61 #include "Mockmpu_prototypes.h"
70 TEST_FILE(
"can_cbs_tx_limits.c")
121 uint8_t data[8] = {0};
123 for (uint8_t stringNumber = 0u; stringNumber <
BS_NR_OF_STRINGS; stringNumber++) {
128 DATA_Read_1_DataBlock_IgnoreAndReturn(0u);
144 TEST_ASSERT_EQUAL(0x43, data[0]);
145 TEST_ASSERT_EQUAL(0x83, data[1]);
146 TEST_ASSERT_EQUAL(0xC0, data[2]);
147 TEST_ASSERT_EQUAL(0x00, data[3]);
148 TEST_ASSERT_EQUAL(0x00, data[4]);
149 TEST_ASSERT_EQUAL(0x00, data[5]);
150 TEST_ASSERT_EQUAL(maximumBatteryVoltage, data[6]);
151 TEST_ASSERT_EQUAL(minimumBatteryVoltage, data[7]);
Configuration of the battery cell (e.g., minimum and maximum cell voltage)
#define BC_VOLTAGE_MIN_MSL_mV
Minimum cell voltage limit.
#define BC_VOLTAGE_MAX_MSL_mV
Maximum cell voltage limit.
#define BS_NR_OF_BAT_CELLS
uint32_t CAN_TxLimitValues(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 limit values
#define CAN_ID_TX_LIMIT_VALUES
Headers for the helper functions for the CAN module.
Database configuration header.
@ DATA_BLOCK_ID_INSULATION_MONITORING
@ DATA_BLOCK_ID_CELL_VOLTAGE
@ DATA_BLOCK_ID_CURRENT_SENSOR
@ DATA_BLOCK_ID_OPEN_WIRE_BASE
@ DATA_BLOCK_ID_ERRORSTATE
@ DATA_BLOCK_ID_PACK_VALUES
@ DATA_BLOCK_ID_CELL_TEMPERATURE
@ DATA_BLOCK_ID_STATEREQUEST
#define NULL_PTR
Null pointer.
DATA_BLOCK_SOF_s * pTableSof
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
float recommendedContinuousPackDischargeCurrent_mA
float recommendedContinuousPackChargeCurrent_mA
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
static DATA_BLOCK_CELL_VOLTAGE_s can_tableCellVoltages
static DATA_BLOCK_ERRORSTATE_s can_tableErrorState
static DATA_BLOCK_MSL_FLAG_s can_tableMslFlags
static DATA_BLOCK_MIN_MAX_s can_tableMinimumMaximumValues
static DATA_BLOCK_OPEN_WIRE_s can_tableOpenWire
void testCAN_TxLimitValues(void)
static DATA_BLOCK_PACK_VALUES_s can_tablePackValues
static DATA_BLOCK_MOL_FLAG_s can_tableMolFlags
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_INSULATION_MONITORING_s can_tableInsulation
static DATA_BLOCK_SOF_s can_tableSof
QueueHandle_t imd_canDataQueue
static DATA_BLOCK_STATEREQUEST_s can_tableStateRequest
static DATA_BLOCK_CURRENT_SENSOR_s can_tableCurrentSensor