foxBMS  1.4.0
The foxBMS Battery Management System API Documentation
database_cfg.h File Reference

Database configuration header. More...

#include "general.h"
#include "battery_system_cfg.h"
#include "mcu.h"
Include dependency graph for database_cfg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DATA_BASE_s
 
struct  DATA_BLOCK_HEADER_s
 
struct  DATA_BLOCK_CELL_VOLTAGE_s
 
struct  DATA_BLOCK_CELL_TEMPERATURE_s
 
struct  DATA_BLOCK_MIN_MAX_s
 
struct  DATA_BLOCK_PACK_VALUES_s
 
struct  DATA_BLOCK_CURRENT_SENSOR_s
 
struct  DATA_BLOCK_BALANCING_CONTROL_s
 
struct  DATA_BLOCK_SLAVE_CONTROL_s
 
struct  DATA_BLOCK_BALANCING_FEEDBACK_s
 
struct  DATA_BLOCK_USER_MUX_s
 
struct  DATA_BLOCK_OPEN_WIRE_s
 
struct  DATA_BLOCK_ALL_GPIO_VOLTAGES_s
 
struct  DATA_BLOCK_ERRORSTATE_s
 
struct  DATA_BLOCK_CONTACTOR_FEEDBACK_s
 
struct  DATA_BLOCK_INTERLOCK_FEEDBACK_s
 
struct  DATA_BLOCK_SOF_s
 
struct  DATA_BLOCK_SYSTEMSTATE_s
 
struct  DATA_BLOCK_MSL_FLAG_s
 
struct  DATA_BLOCK_RSL_FLAG_s
 
struct  DATA_BLOCK_MOL_FLAG_s
 
struct  DATA_BLOCK_SOX_s
 
struct  DATA_BLOCK_STATEREQUEST_s
 
struct  DATA_BLOCK_MOVING_AVERAGE_s
 
struct  DATA_BLOCK_INSULATION_MONITORING_s
 
struct  DATA_BLOCK_HTSEN_s
 
struct  DATA_BLOCK_ADC_VOLTAGE_s
 
struct  DATA_BLOCK_DUMMY_FOR_SELF_TEST_s
 

Enumerations

enum  DATA_BLOCK_ID_e {
  DATA_BLOCK_ID_CELL_VOLTAGE , DATA_BLOCK_ID_CELL_TEMPERATURE , DATA_BLOCK_ID_MIN_MAX , DATA_BLOCK_ID_CURRENT_SENSOR ,
  DATA_BLOCK_ID_BALANCING_CONTROL , DATA_BLOCK_ID_SLAVE_CONTROL , DATA_BLOCK_ID_BALANCING_FEEDBACK_BASE , DATA_BLOCK_ID_USER_MUX ,
  DATA_BLOCK_ID_OPEN_WIRE_BASE , DATA_BLOCK_ID_ALL_GPIO_VOLTAGES_BASE , DATA_BLOCK_ID_ERRORSTATE , DATA_BLOCK_ID_CONTACTOR_FEEDBACK ,
  DATA_BLOCK_ID_INTERLOCK_FEEDBACK , DATA_BLOCK_ID_SOF , DATA_BLOCK_ID_SYSTEMSTATE , DATA_BLOCK_ID_MSL_FLAG ,
  DATA_BLOCK_ID_RSL_FLAG , DATA_BLOCK_ID_MOL_FLAG , DATA_BLOCK_ID_SOX , DATA_BLOCK_ID_STATEREQUEST ,
  DATA_BLOCK_ID_MOVING_AVERAGE , DATA_BLOCK_ID_CELL_VOLTAGE_BASE , DATA_BLOCK_ID_CELL_TEMPERATURE_BASE , DATA_BLOCK_ID_CELL_VOLTAGE_REDUNDANCY0 ,
  DATA_BLOCK_ID_CELL_TEMPERATURE_REDUNDANCY0 , DATA_BLOCK_ID_BALANCING_FEEDBACK_REDUNDANCY0 , DATA_BLOCK_ID_ALL_GPIO_VOLTAGES_REDUNDANCY0 , DATA_BLOCK_ID_OPEN_WIRE_REDUNDANCY0 ,
  DATA_BLOCK_ID_INSULATION_MONITORING , DATA_BLOCK_ID_PACK_VALUES , DATA_BLOCK_ID_HTSEN , DATA_BLOCK_ID_ADC_VOLTAGE ,
  DATA_BLOCK_ID_DUMMY_FOR_SELF_TEST , DATA_BLOCK_ID_MAX
}
 

Functions

 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")
 

Variables

DATA_BASE_s data_database [DATA_BLOCK_ID_MAX]
 channel configuration of database (data blocks) More...
 

Detailed Description

Database configuration header.

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.
  3. 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
2015-08-18 (date of creation)
Updated
2022-07-28 (date of last update)
Version
v1.4.0
Prefix
DATA

Provides interfaces to database configuration

Definition in file database_cfg.h.

Enumeration Type Documentation

◆ DATA_BLOCK_ID_e

data block identification numbers

Enumerator
DATA_BLOCK_ID_CELL_VOLTAGE 
DATA_BLOCK_ID_CELL_TEMPERATURE 
DATA_BLOCK_ID_MIN_MAX 
DATA_BLOCK_ID_CURRENT_SENSOR 
DATA_BLOCK_ID_BALANCING_CONTROL 
DATA_BLOCK_ID_SLAVE_CONTROL 
DATA_BLOCK_ID_BALANCING_FEEDBACK_BASE 
DATA_BLOCK_ID_USER_MUX 
DATA_BLOCK_ID_OPEN_WIRE_BASE 
DATA_BLOCK_ID_ALL_GPIO_VOLTAGES_BASE 
DATA_BLOCK_ID_ERRORSTATE 
DATA_BLOCK_ID_CONTACTOR_FEEDBACK 
DATA_BLOCK_ID_INTERLOCK_FEEDBACK 
DATA_BLOCK_ID_SOF 
DATA_BLOCK_ID_SYSTEMSTATE 
DATA_BLOCK_ID_MSL_FLAG 
DATA_BLOCK_ID_RSL_FLAG 
DATA_BLOCK_ID_MOL_FLAG 
DATA_BLOCK_ID_SOX 
DATA_BLOCK_ID_STATEREQUEST 
DATA_BLOCK_ID_MOVING_AVERAGE 
DATA_BLOCK_ID_CELL_VOLTAGE_BASE 
DATA_BLOCK_ID_CELL_TEMPERATURE_BASE 
DATA_BLOCK_ID_CELL_VOLTAGE_REDUNDANCY0 
DATA_BLOCK_ID_CELL_TEMPERATURE_REDUNDANCY0 
DATA_BLOCK_ID_BALANCING_FEEDBACK_REDUNDANCY0 
DATA_BLOCK_ID_ALL_GPIO_VOLTAGES_REDUNDANCY0 
DATA_BLOCK_ID_OPEN_WIRE_REDUNDANCY0 
DATA_BLOCK_ID_INSULATION_MONITORING 
DATA_BLOCK_ID_PACK_VALUES 
DATA_BLOCK_ID_HTSEN 
DATA_BLOCK_ID_ADC_VOLTAGE 
DATA_BLOCK_ID_DUMMY_FOR_SELF_TEST 
DATA_BLOCK_ID_MAX 

DO NOT CHANGE, MUST BE THE LAST ENTRY

Definition at line 75 of file database_cfg.h.

Function Documentation

◆ FAS_STATIC_ASSERT()

FAS_STATIC_ASSERT ( )

Variable Documentation

◆ data_database

DATA_BASE_s data_database[DATA_BLOCK_ID_MAX]
extern

channel configuration of database (data blocks)

array for the database

all data block managed by database are listed here (address, size, consistency type)

Definition at line 177 of file database_cfg.c.