57 #ifndef FOXBMS__DATABASE_CFG_H_
58 #define FOXBMS__DATABASE_CFG_H_
117 "Maximum number of database entries exceeds UINT8_MAX; adapted length "
118 "checking in DATA_Initialize and DATA_IterateOverDatabaseEntries");
152 uint16_t invalidCellTemperature
235 uint8_t invalidHighVoltageMeasurement
238 uint32_t previousTimestampHighVoltage
426 float_t recommendedContinuousChargeCurrent_mA
428 float_t recommendedContinuousDischargeCurrent_mA
615 #ifdef UNITY_UNIT_TEST
Configuration of the battery system (e.g., number of battery modules, battery cells,...
#define BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR
number of high voltage inputs measured by current sensors (like IVT-MOD)
#define BS_NR_OF_CELL_BLOCKS_PER_MODULE
number of cells per module
#define BS_NR_OF_STRINGS
Number of parallel strings in the battery pack.
#define BS_NR_OF_GPIOS_PER_MODULE
Defines the number of GPIOs.
#define BS_NR_OF_CELL_BLOCKS_PER_STRING
#define BS_NR_OF_MODULES_PER_STRING
number of modules in a string
#define BS_NR_OF_TEMP_SENSORS_PER_STRING
#define BS_NR_OF_GPAS_PER_MODULE
Defines the number of GPA inputs.
@ DATA_BLOCK_ID_CELL_VOLTAGE_REDUNDANCY0
@ DATA_BLOCK_ID_OPEN_WIRE_REDUNDANCY0
@ DATA_BLOCK_ID_INTERLOCK_FEEDBACK
@ DATA_BLOCK_ID_BALANCING_CONTROL
@ DATA_BLOCK_ID_ALL_GPIO_VOLTAGES_REDUNDANCY0
@ DATA_BLOCK_ID_DUMMY_FOR_SELF_TEST
@ DATA_BLOCK_ID_ERROR_STATE
@ DATA_BLOCK_ID_INSULATION_MONITORING
@ DATA_BLOCK_ID_SYSTEM_STATE
@ DATA_BLOCK_ID_STATE_REQUEST
@ DATA_BLOCK_ID_CELL_VOLTAGE
@ DATA_BLOCK_ID_MOVING_AVERAGE
@ DATA_BLOCK_ID_CELL_TEMPERATURE_REDUNDANCY0
@ DATA_BLOCK_ID_CELL_TEMPERATURE_BASE
@ DATA_BLOCK_ID_CURRENT_SENSOR
@ DATA_BLOCK_ID_OPEN_WIRE_BASE
@ DATA_BLOCK_ID_SLAVE_CONTROL
@ DATA_BLOCK_ID_CONTACTOR_FEEDBACK
@ DATA_BLOCK_ID_ADC_VOLTAGE
@ DATA_BLOCK_ID_CELL_VOLTAGE_BASE
@ DATA_BLOCK_ID_ALL_GPIO_VOLTAGES_BASE
@ DATA_BLOCK_ID_PACK_VALUES
@ DATA_BLOCK_ID_BALANCING_FEEDBACK_BASE
@ DATA_BLOCK_ID_BALANCING_FEEDBACK_REDUNDANCY0
@ DATA_BLOCK_ID_CELL_TEMPERATURE
DATA_BASE_s data_database[DATA_BLOCK_ID_MAX]
channel configuration of database (data blocks)
FAS_STATIC_ASSERT((int16_t) DATA_BLOCK_ID_MAX< UINT8_MAX, "Maximum number of database entries exceeds UINT8_MAX; adapted length " "checking in DATA_Initialize and DATA_IterateOverDatabaseEntries")
Headers for the driver for the MCU module.
#define MCU_ADC1_MAX_NR_CHANNELS
maximum number of channels measured by the ADC1
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
bool rtcClockIntegrityError
bool baseCellTemperatureMeasurementTimeoutError
bool redundancy0CellTemperatureMeasurementTimeoutError
bool redundancy0CellVoltageMeasurementTimeoutError
bool taskEngineTimingViolationError
bool mcuDieTemperatureViolationError
bool stateRequestTimingViolationError
bool task100msTimingViolationError
bool task10msTimingViolationError
bool task100msAlgoTimingViolationError
bool pexI2cCommunicationError
bool coinCellLowVoltageError
bool insulationMeasurementInvalidError
bool insulationGroundFaultDetectedError
bool warnableLowInsulationResistanceError
DATA_BLOCK_HEADER_s header
bool interlockOpenedError
bool criticalLowInsulationResistanceError
bool baseCellVoltageMeasurementTimeoutError
bool task1msTimingViolationError
int16_t temperature_ddegC
DATA_BLOCK_HEADER_s header
bool dfIsDeviceErrorDetected
bool dfIsWarnableResistanceDetected
bool dfIsCriticalResistanceDetected
bool dfIsMeasurementUpToDate
bool isInsulationMeasurementValid
uint32_t insulationResistance_kOhm
DATA_BLOCK_HEADER_s header
bool dfIsChassisFaultDetected
bool dfIsChassisShortToHvPlus
bool dfIsChassisShortToHvMinus
float_t interlockCurrentFeedback_IL_HS_CS_mA
uint8_t interlockFeedback_IL_STATE
DATA_BLOCK_HEADER_s header
float_t interlockVoltageFeedback_IL_LS_VS_mV
float_t interlockCurrentFeedback_IL_LS_CS_mA
float_t interlockVoltageFeedback_IL_HS_VS_mV
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
float_t movingAveragePower5sInterval_mA
float_t movingAveragePower1sInterval_mA
float_t movingAverageCurrentConfigurableInterval_mA
DATA_BLOCK_HEADER_s header
float_t movingAverageCurrent5sInterval_mA
float_t movingAverageCurrent30sInterval_mA
float_t movingAveragePower30sInterval_mA
float_t movingAverageCurrent10sInterval_mA
float_t movingAveragePower60sInterval_mA
float_t movingAveragePowerConfigurableInterval_mA
float_t movingAveragePower10sInterval_mA
float_t movingAverageCurrent1sInterval_mA
float_t movingAverageCurrent60sInterval_mA
uint8_t packChargeOvercurrent
DATA_BLOCK_HEADER_s header
uint8_t packDischargeOvercurrent
DATA_BLOCK_HEADER_s header
int32_t highVoltageBusVoltage_mV
uint8_t invalidBatteryVoltage
uint8_t invalidPackCurrent
int32_t batteryVoltage_mV
DATA_BLOCK_HEADER_s header
uint8_t invalidHvBusVoltage
DATA_BLOCK_HEADER_s header
uint32_t eepromWriteAddressToUse
uint32_t eepromWriteAddressLastUsed
uint32_t eepromReadAddressToUse
uint32_t eepromReadAddressLastUsed
DATA_BLOCK_HEADER_s header
float_t recommendedPeakPackChargeCurrent_mA
float_t recommendedContinuousPackChargeCurrent_mA
DATA_BLOCK_HEADER_s header
float_t recommendedContinuousPackDischargeCurrent_mA
float_t recommendedPeakPackDischargeCurrent_mA
DATA_BLOCK_HEADER_s header
uint8_t stateRequestViaCanPending
DATA_BLOCK_HEADER_s header
uint8_t stateRequestViaCan
uint8_t previousStateRequestViaCan
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header