foxBMS  1.0.0
The foxBMS Battery Management System API Documentation
DATA_BLOCK_CELL_VOLTAGE Struct Reference

#include <database_cfg.h>

Collaboration diagram for DATA_BLOCK_CELL_VOLTAGE:

Data Fields

DATA_BLOCK_HEADER_s header
 
uint8_t state
 
int32_t packVoltage_mV [BS_NR_OF_STRINGS]
 
int16_t cellVoltage_mV [BS_NR_OF_STRINGS][BS_NR_OF_BAT_CELLS]
 
uint64_t invalidCellVoltage [BS_NR_OF_STRINGS][BS_NR_OF_MODULES]
 
uint16_t nrValidCellVoltages [BS_NR_OF_STRINGS]
 
uint32_t moduleVoltage_mV [BS_NR_OF_STRINGS][BS_NR_OF_MODULES]
 
bool validModuleVoltage [BS_NR_OF_STRINGS][BS_NR_OF_MODULES]
 

Detailed Description

data block struct of cell voltage

Definition at line 115 of file database_cfg.h.

Field Documentation

◆ cellVoltage_mV

int16_t DATA_BLOCK_CELL_VOLTAGE::cellVoltage_mV[BS_NR_OF_STRINGS][BS_NR_OF_BAT_CELLS]

unit: mV

Definition at line 122 of file database_cfg.h.

◆ header

DATA_BLOCK_HEADER_s DATA_BLOCK_CELL_VOLTAGE::header

Data block header

Definition at line 119 of file database_cfg.h.

◆ invalidCellVoltage

uint64_t DATA_BLOCK_CELL_VOLTAGE::invalidCellVoltage[BS_NR_OF_STRINGS][BS_NR_OF_MODULES]

bitmask if voltages are valid. 0->valid, 1->invalid

Definition at line 123 of file database_cfg.h.

◆ moduleVoltage_mV

uint32_t DATA_BLOCK_CELL_VOLTAGE::moduleVoltage_mV[BS_NR_OF_STRINGS][BS_NR_OF_MODULES]

unit: mV

Definition at line 126 of file database_cfg.h.

◆ nrValidCellVoltages

uint16_t DATA_BLOCK_CELL_VOLTAGE::nrValidCellVoltages[BS_NR_OF_STRINGS]

number of valid voltages

Definition at line 125 of file database_cfg.h.

◆ packVoltage_mV

int32_t DATA_BLOCK_CELL_VOLTAGE::packVoltage_mV[BS_NR_OF_STRINGS]

uint: mV

Definition at line 121 of file database_cfg.h.

◆ state

uint8_t DATA_BLOCK_CELL_VOLTAGE::state

for future use

Definition at line 120 of file database_cfg.h.

◆ validModuleVoltage

bool DATA_BLOCK_CELL_VOLTAGE::validModuleVoltage[BS_NR_OF_STRINGS][BS_NR_OF_MODULES]

0 -> if PEC okay; 1 -> PEC error

Definition at line 127 of file database_cfg.h.


The documentation for this struct was generated from the following file: