Source file for handling redundancy between redundant cell voltage and cell temperature measurements.
More...
|
static bool | MRC_MeasurementUpdatedAtLeastOnce (uint32_t timestamp, uint32_t previousTimestamp) |
| Check timestamp if measurement has been updated at least once. More...
|
|
static STD_RETURN_TYPE_e | MRC_MeasurementUpdatedRecently (uint32_t timestamp, uint32_t previousTimestamp, uint32_t timeInterval) |
| Check timestamp if measurement has been updated recently. More...
|
|
static bool | MRC_ValidateCellVoltageMeasurement (DATA_BLOCK_CELL_VOLTAGE_s *pCellVoltageBase, DATA_BLOCK_CELL_VOLTAGE_s *pCellVoltageRedundancy0) |
| Function to validate results of cell voltage measurement. More...
|
|
static bool | MRC_ValidateCellTemperatureMeasurement (DATA_BLOCK_CELL_TEMPERATURE_s *pCellTemperatureBase, DATA_BLOCK_CELL_TEMPERATURE_s *pCellTemperatureRedundancy0) |
| Function to validate results of cell temperature measurement. More...
|
|
static void | MRC_ValidateCurrentMeasurement (DATA_BLOCK_CURRENT_SENSOR_s *pTableCurrentSensor) |
| Function to validate results of current measurement. More...
|
|
static void | MRC_ValidateStringVoltageMeasurement (DATA_BLOCK_CURRENT_SENSOR_s *pTableCurrentSensor, DATA_BLOCK_CELL_VOLTAGE_s *pTableCellVoltage) |
| Function to validate results of string voltage measurement. More...
|
|
static void | MRC_ValidateHighVoltageBusMeasurement (DATA_BLOCK_CURRENT_SENSOR_s *pTableCurrentSensor) |
| Function to validate results of high voltage measurement and calculate battery voltage and high voltage bus voltage. More...
|
|
static void | MRC_ValidatePowerMeasurement (DATA_BLOCK_CURRENT_SENSOR_s *pTableCurrentSensor) |
| Function to validate results of power measurement. More...
|
|
static STD_RETURN_TYPE_e | MRC_CalculateCellVoltageMinMaxAverage (const DATA_BLOCK_CELL_VOLTAGE_s *const pValidatedVoltages, DATA_BLOCK_MIN_MAX_s *pMinMaxAverageValues) |
| Function calculates minimum, maximum and average cell voltages. More...
|
|
static STD_RETURN_TYPE_e | MRC_CalculateCellTemperatureMinMaxAverage (DATA_BLOCK_CELL_TEMPERATURE_s *pValidatedTemperatures, DATA_BLOCK_MIN_MAX_s *pMinMaxAverageValues) |
| Function calculates minimum, maximum and average cell temperatures. More...
|
|
static STD_RETURN_TYPE_e | MRC_ValidateCellVoltage (DATA_BLOCK_CELL_VOLTAGE_s *pCellvoltageBase, DATA_BLOCK_CELL_VOLTAGE_s *pCellvoltageRedundancy0, DATA_BLOCK_CELL_VOLTAGE_s *pValidatedVoltages) |
| Function compares cell voltage measurements from base measurement with one redundant measurement and writes result in pValidatedVoltages. More...
|
|
static STD_RETURN_TYPE_e | MRC_UpdateCellVoltageValidation (DATA_BLOCK_CELL_VOLTAGE_s *pCellvoltage, DATA_BLOCK_CELL_VOLTAGE_s *pValidatedVoltages) |
| Function updates validated cell voltage measurement with data from a single measurement source. This can be the case if no redundancy is used at all or if one or more of the redundant measurements are not working properly. More...
|
|
static STD_RETURN_TYPE_e | MRC_ValidateCellTemperature (DATA_BLOCK_CELL_TEMPERATURE_s *pCelltemperatureBase, DATA_BLOCK_CELL_TEMPERATURE_s *pCelltemperatureRedundancy0, DATA_BLOCK_CELL_TEMPERATURE_s *pValidatedTemperatures) |
| Function compares cell temperature measurements from base measurement with one redundant measurement and writes result in pValidatedTemperatures. More...
|
|
static STD_RETURN_TYPE_e | MRC_UpdateCellTemperatureValidation (DATA_BLOCK_CELL_TEMPERATURE_s *pCellTemperature, DATA_BLOCK_CELL_TEMPERATURE_s *pValidatedTemperature) |
| Function updates validated cell temperature measurement with data from a single measurement source. This can be the case if no redundancy is used at all or if one or more of the redundant measurements are not working properly. More...
|
|
STD_RETURN_TYPE_e | MRC_ValidateMicMeasurement (void) |
| Function to validate the measurement between redundant measurement values for cell voltage and cell temperature. More...
|
|
STD_RETURN_TYPE_e | MRC_ValidatePackMeasurement (void) |
| Function to validate the measurements of pack values (string values, pack values) More...
|
|
Source file for handling redundancy between redundant cell voltage and cell temperature measurements.
- Copyright
- © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
- ″This product uses parts of foxBMS®″
- ″This product includes parts of foxBMS®″
- ″This product is derived from foxBMS®″
- Author
- foxBMS Team
- Date
- 2020-07-31 (date of creation)
- Updated
- 2021-03-24 (date of last update)
- Prefix
- MRC
Definition in file redundancy.c.