foxBMS  1.2.0
The foxBMS Battery Management System API Documentation
DATA_BLOCK_CURRENT_SENSOR Struct Reference

#include <database_cfg.h>

Collaboration diagram for DATA_BLOCK_CURRENT_SENSOR:

Data Fields

DATA_BLOCK_HEADER_s header
 
int32_t current_mA [BS_NR_OF_STRINGS]
 
uint8_t invalidCurrentMeasurement [BS_NR_OF_STRINGS]
 
uint8_t newCurrent
 
uint32_t previousTimestampCurrent [BS_NR_OF_STRINGS]
 
uint32_t timestampCurrent [BS_NR_OF_STRINGS]
 
int32_t sensorTemperature_ddegC [BS_NR_OF_STRINGS]
 
uint8_t invalidSensorTemperatureMeasurement [BS_NR_OF_STRINGS]
 
int32_t power_W [BS_NR_OF_STRINGS]
 
uint8_t invalidPowerMeasurement [BS_NR_OF_STRINGS]
 
uint8_t newPower
 
uint32_t previousTimestampPower [BS_NR_OF_STRINGS]
 
uint32_t timestampPower [BS_NR_OF_STRINGS]
 
int32_t currentCounter_As [BS_NR_OF_STRINGS]
 
uint8_t invalidCurrentCountingMeasurement [BS_NR_OF_STRINGS]
 
uint32_t previousTimestampCurrentCounting [BS_NR_OF_STRINGS]
 
uint32_t timestampCurrentCounting [BS_NR_OF_STRINGS]
 
int32_t energyCounter_Wh [BS_NR_OF_STRINGS]
 
uint8_t invalidEnergyCountingMeasurement [BS_NR_OF_STRINGS]
 
uint32_t previousTimestampEnergyCounting [BS_NR_OF_STRINGS]
 
uint32_t timestampEnergyCounting [BS_NR_OF_STRINGS]
 
uint8_t invalidHighVoltageMeasurement [BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]
 
int32_t highVoltage_mV [BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]
 
uint32_t previousTimestampHighVoltage [BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]
 
uint32_t timestampHighVoltage [BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]
 

Detailed Description

data block struct of current measurement

Definition at line 198 of file database_cfg.h.

Field Documentation

◆ current_mA

int32_t DATA_BLOCK_CURRENT_SENSOR::current_mA[BS_NR_OF_STRINGS]

unit: mA

Definition at line 203 of file database_cfg.h.

◆ currentCounter_As

int32_t DATA_BLOCK_CURRENT_SENSOR::currentCounter_As[BS_NR_OF_STRINGS]

unit: A.s

Definition at line 215 of file database_cfg.h.

◆ energyCounter_Wh

int32_t DATA_BLOCK_CURRENT_SENSOR::energyCounter_Wh[BS_NR_OF_STRINGS]

unit: Wh

Definition at line 219 of file database_cfg.h.

◆ header

DATA_BLOCK_HEADER_s DATA_BLOCK_CURRENT_SENSOR::header

Data block header

Definition at line 202 of file database_cfg.h.

◆ highVoltage_mV

int32_t DATA_BLOCK_CURRENT_SENSOR::highVoltage_mV[BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]

unit: mV

Definition at line 225 of file database_cfg.h.

◆ invalidCurrentCountingMeasurement

uint8_t DATA_BLOCK_CURRENT_SENSOR::invalidCurrentCountingMeasurement[BS_NR_OF_STRINGS]

0: measurement valid, 1: measurement invalid

Definition at line 216 of file database_cfg.h.

◆ invalidCurrentMeasurement

uint8_t DATA_BLOCK_CURRENT_SENSOR::invalidCurrentMeasurement[BS_NR_OF_STRINGS]

0: measurement valid, 1: measurement invalid

Definition at line 204 of file database_cfg.h.

◆ invalidEnergyCountingMeasurement

uint8_t DATA_BLOCK_CURRENT_SENSOR::invalidEnergyCountingMeasurement[BS_NR_OF_STRINGS]

0: measurement valid, 1: measurement invalid

Definition at line 220 of file database_cfg.h.

◆ invalidHighVoltageMeasurement

uint8_t DATA_BLOCK_CURRENT_SENSOR::invalidHighVoltageMeasurement[BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]

0: measurement valid, 1: measurement invalid

Definition at line 223 of file database_cfg.h.

◆ invalidPowerMeasurement

uint8_t DATA_BLOCK_CURRENT_SENSOR::invalidPowerMeasurement[BS_NR_OF_STRINGS]

0: measurement valid, 1: measurement invalid

Definition at line 211 of file database_cfg.h.

◆ invalidSensorTemperatureMeasurement

uint8_t DATA_BLOCK_CURRENT_SENSOR::invalidSensorTemperatureMeasurement[BS_NR_OF_STRINGS]

0: measurement valid, 1: measurement invalid

Definition at line 209 of file database_cfg.h.

◆ newCurrent

uint8_t DATA_BLOCK_CURRENT_SENSOR::newCurrent

0: measurement valid, 1: measurement invalid

Definition at line 205 of file database_cfg.h.

◆ newPower

uint8_t DATA_BLOCK_CURRENT_SENSOR::newPower

counter that indicates a new power measurement

Definition at line 212 of file database_cfg.h.

◆ power_W

int32_t DATA_BLOCK_CURRENT_SENSOR::power_W[BS_NR_OF_STRINGS]

unit: W

Definition at line 210 of file database_cfg.h.

◆ previousTimestampCurrent

uint32_t DATA_BLOCK_CURRENT_SENSOR::previousTimestampCurrent[BS_NR_OF_STRINGS]

timestamp of current measurement

Definition at line 206 of file database_cfg.h.

◆ previousTimestampCurrentCounting

uint32_t DATA_BLOCK_CURRENT_SENSOR::previousTimestampCurrentCounting[BS_NR_OF_STRINGS]

previous timestamp of CC measurement

Definition at line 217 of file database_cfg.h.

◆ previousTimestampEnergyCounting

uint32_t DATA_BLOCK_CURRENT_SENSOR::previousTimestampEnergyCounting[BS_NR_OF_STRINGS]

previous timestamp of EC measurement

Definition at line 221 of file database_cfg.h.

◆ previousTimestampHighVoltage

uint32_t DATA_BLOCK_CURRENT_SENSOR::previousTimestampHighVoltage[BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]

previous timestamp of high voltage measurement

Definition at line 226 of file database_cfg.h.

◆ previousTimestampPower

uint32_t DATA_BLOCK_CURRENT_SENSOR::previousTimestampPower[BS_NR_OF_STRINGS]

previous timestamp of power measurement

Definition at line 213 of file database_cfg.h.

◆ sensorTemperature_ddegC

int32_t DATA_BLOCK_CURRENT_SENSOR::sensorTemperature_ddegC[BS_NR_OF_STRINGS]

unit: 0.1°C

Definition at line 208 of file database_cfg.h.

◆ timestampCurrent

uint32_t DATA_BLOCK_CURRENT_SENSOR::timestampCurrent[BS_NR_OF_STRINGS]

timestamp of current measurement

Definition at line 207 of file database_cfg.h.

◆ timestampCurrentCounting

uint32_t DATA_BLOCK_CURRENT_SENSOR::timestampCurrentCounting[BS_NR_OF_STRINGS]

timestamp of CC measurement

Definition at line 218 of file database_cfg.h.

◆ timestampEnergyCounting

uint32_t DATA_BLOCK_CURRENT_SENSOR::timestampEnergyCounting[BS_NR_OF_STRINGS]

timestamp of EC measurement

Definition at line 222 of file database_cfg.h.

◆ timestampHighVoltage

uint32_t DATA_BLOCK_CURRENT_SENSOR::timestampHighVoltage[BS_NR_OF_STRINGS][BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR]

timestamp of high voltage measurement

Definition at line 229 of file database_cfg.h.

◆ timestampPower

uint32_t DATA_BLOCK_CURRENT_SENSOR::timestampPower[BS_NR_OF_STRINGS]

timestamp of power measurement

Definition at line 214 of file database_cfg.h.


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