foxBMS
1.3.0
The foxBMS Battery Management System API Documentation
|
#include <ltc_defs.h>
This structure contains all the variables relevant for the LTC state machine. The user can get the current state of the LTC state machine with this variable
Definition at line 521 of file ltc_defs.h.
LTC_ADCMEAS_CHAN_e LTC_STATE_s::adcMeasCh |
current number of channels measured for GPIOS (one at a time for multiplexers or all five GPIOs)
Definition at line 534 of file ltc_defs.h.
LTC_ADCMEAS_CHAN_e LTC_STATE_s::adcMeasChreq |
requested number of channels measured for GPIOS (one at a time for multiplexers or all five GPIOs)
Definition at line 536 of file ltc_defs.h.
LTC_ADCMODE_e LTC_STATE_s::adcMode |
current LTC ADCmeasurement mode (fast, normal or filtered)
Definition at line 529 of file ltc_defs.h.
LTC_ADCMODE_e LTC_STATE_s::adcModereq |
requested LTC ADCmeasurement mode (fast, normal or filtered)
Definition at line 532 of file ltc_defs.h.
STD_RETURN_TYPE_e LTC_STATE_s::balance_control_done |
indicates if balance control was done
Definition at line 566 of file ltc_defs.h.
uint8_t LTC_STATE_s::busSize |
number of connected LTCs to parallel bus network
Definition at line 553 of file ltc_defs.h.
STD_RETURN_TYPE_e LTC_STATE_s::check_spi_flag |
indicates if interrupt flag or timer must be considered
Definition at line 565 of file ltc_defs.h.
uint8_t LTC_STATE_s::cntDeviceRD |
current Index of array ltcIDs to determine device ID
Definition at line 556 of file ltc_defs.h.
uint32_t LTC_STATE_s::commandDataTransferTime |
time needed for sending an instruction to the LTC, followed by data transfer from the LTC
Definition at line 545 of file ltc_defs.h.
uint32_t LTC_STATE_s::commandTransferTime |
time needed for sending an instruction to the LTC
Definition at line 546 of file ltc_defs.h.
uint8_t LTC_STATE_s::configuration[6] |
holds the configuration of the ltc (configuration register)
Definition at line 587 of file ltc_defs.h.
uint32_t LTC_STATE_s::ctrlCallCnt |
counts the LTC2_CTRL calls
Definition at line 557 of file ltc_defs.h.
uint8_t LTC_STATE_s::currentString |
string currently being addressed
Definition at line 573 of file ltc_defs.h.
STD_RETURN_TYPE_e LTC_STATE_s::dummyByte_ongoing |
SPI dummy byte is currently transmitted
Definition at line 569 of file ltc_defs.h.
uint32_t LTC_STATE_s::ErrPECCounter |
counts the number of times there was A PEC (CRC) error during communication with LTC
Definition at line 539 of file ltc_defs.h.
uint32_t LTC_STATE_s::ErrRequestCounter |
counts the number of illegal requests to the LTC state machine
Definition at line 542 of file ltc_defs.h.
uint8_t LTC_STATE_s::ErrRetryCounter |
counts how many times the drivers retried to communicate with LTC in case of a communication error
Definition at line 541 of file ltc_defs.h.
LTC_ERROR_s LTC_STATE_s::errStatus |
contains pointer to local error buffer and error indicators
Definition at line 554 of file ltc_defs.h.
bool LTC_STATE_s::first_measurement_made |
flag that indicates if the first measurement cycle was completed
Definition at line 562 of file ltc_defs.h.
uint32_t LTC_STATE_s::gpioClocksTransferTime |
time needed for sending 72 clock signal to the LTC, used for I2C communication
Definition at line 548 of file ltc_defs.h.
LTC_ADCMODE_e LTC_STATE_s::gpioMeasMode |
current LTC ADCmeasurement mode (fast, normal or filtered)
Definition at line 531 of file ltc_defs.h.
uint8_t LTC_STATE_s::instanceID |
number to distinguish between different ltc states, starting with 0,1,2,3....8
Definition at line 551 of file ltc_defs.h.
LTC_STATEMACH_e LTC_STATE_s::laststate |
previous state of the state machine
Definition at line 527 of file ltc_defs.h.
uint8_t LTC_STATE_s::lastsubstate |
previous substate of the state machine
Definition at line 528 of file ltc_defs.h.
STD_RETURN_TYPE_e LTC_STATE_s::ltc_muxcycle_finished |
flag that indicates if the measurement sequence of the multiplexers is finished
Definition at line 564 of file ltc_defs.h.
LTC_CONFIG_s LTC_STATE_s::ltcConfig |
struct that holds the measurement configuration of the ltc network
Definition at line 561 of file ltc_defs.h.
LTC_DATAPTR_s LTC_STATE_s::ltcData |
contains pointers to the local data buffer
Definition at line 580 of file ltc_defs.h.
uint8_t* LTC_STATE_s::ltcIDs |
array with LTC IDs
Definition at line 555 of file ltc_defs.h.
DIAG_ID_e LTC_STATE_s::muxDiagErrorEntry |
diagnosis entry for multiplexer related events
Definition at line 577 of file ltc_defs.h.
uint8_t LTC_STATE_s::muxmeas_nr_end[BS_NR_OF_STRINGS] |
number of multiplexer channels that have to be measured; end number of sequence, where measurement is finished
Definition at line 585 of file ltc_defs.h.
LTC_MUX_CH_CFG_s* LTC_STATE_s::muxmeas_seqendptr[BS_NR_OF_STRINGS] |
point to the end of the multiplexer sequence; pointer to ending point of sequence
Definition at line 583 of file ltc_defs.h.
LTC_MUX_CH_CFG_s* LTC_STATE_s::muxmeas_seqptr[BS_NR_OF_STRINGS] |
pointer to the multiplexer sequence to be measured (contains a list of elements [multiplexer id, multiplexer channels]) (1,-1)...(3,-1),(0,1),...(0,7)
Definition at line 581 of file ltc_defs.h.
uint32_t LTC_STATE_s::muxSampleTime |
time stamp at which a multiplexer input was measured
Definition at line 550 of file ltc_defs.h.
uint8_t LTC_STATE_s::nrBatcellsPerModule |
number of cells per module
Definition at line 552 of file ltc_defs.h.
uint8_t LTC_STATE_s::numberOfMeasuredMux |
number of multiplexer channels measured by the LTC chip before a voltage measurement is made
Definition at line 538 of file ltc_defs.h.
DIAG_ID_e LTC_STATE_s::pecDiagErrorEntry |
diagnosis entry for PEC related events
Definition at line 576 of file ltc_defs.h.
uint8_t LTC_STATE_s::requestedString |
string addressed by the current state request
Definition at line 574 of file ltc_defs.h.
uint8_t LTC_STATE_s::resendCommandCounter |
counter if commandy should be send multiple times e.g. ADOW command
Definition at line 567 of file ltc_defs.h.
LTC_REUSE_MODE_e LTC_STATE_s::reusageMeasurementMode |
flag that indicates if currently any state is reused i.e. cell voltage measurement
Definition at line 560 of file ltc_defs.h.
DIAG_ID_e LTC_STATE_s::spiDiagErrorEntry |
diagnosis entry for SPI related events
Definition at line 575 of file ltc_defs.h.
uint8_t LTC_STATE_s::spiNumberInterfaces |
number of SPI channels that have to be measured
Definition at line 572 of file ltc_defs.h.
SPI_INTERFACE_CONFIG_s* LTC_STATE_s::spiSeqEndPtr |
pointer to the end of the SPI sequence
Definition at line 571 of file ltc_defs.h.
SPI_INTERFACE_CONFIG_s* LTC_STATE_s::spiSeqPtr |
pointer to the SPI sequence to be measured
Definition at line 570 of file ltc_defs.h.
LTC_STATEMACH_e LTC_STATE_s::state |
state of Driver State Machine
Definition at line 525 of file ltc_defs.h.
LTC_REQUEST_s LTC_STATE_s::statereq |
current state request made to the state machine
Definition at line 524 of file ltc_defs.h.
uint8_t LTC_STATE_s::substate |
current substate of the state machine
Definition at line 526 of file ltc_defs.h.
uint8_t LTC_STATE_s::taskCycleCnt |
counts the current task cycle
Definition at line 558 of file ltc_defs.h.
LTC_TASK_TYPE_e LTC_STATE_s::taskMode |
current task of the state machine
Definition at line 523 of file ltc_defs.h.
DIAG_ID_e LTC_STATE_s::tempMeasDiagErrorEntry |
diagnosis entry for temperature measurement related events
Definition at line 579 of file ltc_defs.h.
uint16_t LTC_STATE_s::timer |
time in ms before the state machine processes the next state, e.g. in counts of 1ms
Definition at line 522 of file ltc_defs.h.
bool LTC_STATE_s::transmit_ongoing |
SPI transmissioncurrently ongoing
Definition at line 568 of file ltc_defs.h.
uint8_t LTC_STATE_s::triggerentry |
counter for re-entrance protection (function running flag)
Definition at line 543 of file ltc_defs.h.
uint32_t LTC_STATE_s::VoltageSampleTime |
time stamp at which the cell voltage were measured
Definition at line 549 of file ltc_defs.h.
DIAG_ID_e LTC_STATE_s::voltMeasDiagErrorEntry |
diagnosis entry for voltage measurement related events
Definition at line 578 of file ltc_defs.h.
LTC_ADCMODE_e LTC_STATE_s::voltMeasMode |
current LTC ADCmeasurement mode (fast, normal or filtered)
Definition at line 530 of file ltc_defs.h.