57 #ifndef FOXBMS__DATABASE_CFG_H_
58 #define FOXBMS__DATABASE_CFG_H_
114 "Maximum number of database entries exceeds UINT8_MAX; adapted length "
115 "checking in DATA_Initialize and DATA_IterateOverDatabaseEntries");
149 uint16_t invalidCellTemperature
232 uint8_t invalidHighVoltageMeasurement
235 uint32_t previousTimestampHighVoltage
416 float recommendedContinuousChargeCurrent_mA
418 float recommendedContinuousDischargeCurrent_mA
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
Number of GPIOs on the LTC IC.
#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
@ 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_INSULATION_MONITORING
@ 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_SYSTEMSTATE
@ 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_ERRORSTATE
@ 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_BLOCK_ID_STATEREQUEST
f_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")
DATA_BASE_s data_database[DATA_BLOCK_ID_MAX]
channel configuration of database (data blocks)
General macros and definitions for the whole platform.
Headers for the driver for the MCU module.
#define ADC_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 timingViolationEngine
uint8_t mcuDieTemperature
uint8_t baseCellVoltageMeasurementTimeout
uint8_t redundancy0CellVoltageMeasurementTimeout
bool insulationGroundFaultDetected
bool timingViolation100ms
uint8_t baseCellTemperatureMeasurementTimeout
bool timingViolation100msAlgo
bool warnableLowInsulationResistance
uint8_t redundancy0CellTemperatureMeasurementTimeout
DATA_BLOCK_HEADER_s header
bool criticalLowInsulationResistance
bool insulationMeasurementValid
int16_t temperature_ddegC
DATA_BLOCK_HEADER_s header
bool dfIsDeviceErrorDetected
bool dfIsWarnableResistanceDetected
bool dfIsCriticalResistanceDetected
bool dfIsMeasurmentedUpToDate
bool isInsulationMeasurementValid
uint32_t insulationResistance_kOhm
DATA_BLOCK_HEADER_s header
bool dfIsChassisFaultDetected
bool dfIsChassisShortToHvPlus
bool dfIsChassisShortToHvMinus
float interlockCurrentFeedback_IL_HS_CS_mA
float interlockVoltageFeedback_IL_HS_VS_mV
uint8_t interlockFeedback_IL_STATE
DATA_BLOCK_HEADER_s header
float interlockVoltageFeedback_IL_LS_VS_mV
float interlockCurrentFeedback_IL_LS_CS_mA
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
float movingAveragePower1sInterval_mA
float movingAveragePower10sInterval_mA
float movingAveragePower60sInterval_mA
float movingAveragePower30sInterval_mA
DATA_BLOCK_HEADER_s header
float movingAverageCurrentConfigurableInterval_mA
float movingAverageCurrent10sInterval_mA
float movingAverageCurrent1sInterval_mA
float movingAverageCurrent5sInterval_mA
float movingAverageCurrent30sInterval_mA
float movingAverageCurrent60sInterval_mA
float movingAveragePower5sInterval_mA
float movingAveragePowerConfigurableInterval_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 recommendedPeakPackChargeCurrent_mA
float recommendedPeakPackDischargeCurrent_mA
float recommendedContinuousPackChargeCurrent_mA
float recommendedContinuousPackDischargeCurrent_mA
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
uint8_t stateRequestViaCan
uint8_t previousStateRequestViaCan
DATA_BLOCK_HEADER_s header
uint8_t stateRequestViaCanPending
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header