foxBMS  1.2.0
The foxBMS Battery Management System API Documentation
ltc_defs.h
Go to the documentation of this file.
1 /**
2  *
3  * @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright notice, this
12  * list of conditions and the following disclaimer.
13  *
14  * 2. Redistributions in binary form must reproduce the above copyright notice,
15  * this list of conditions and the following disclaimer in the documentation
16  * and/or other materials provided with the distribution.
17  *
18  * 3. Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from
20  * this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *
33  * We kindly request you to use one or more of the following phrases to refer to
34  * foxBMS in your hardware, software, documentation or advertising materials:
35  *
36  * - ″This product uses parts of foxBMS®″
37  * - ″This product includes parts of foxBMS®″
38  * - ″This product is derived from foxBMS®″
39  *
40  */
41 
42 /**
43  * @file ltc_defs.h
44  * @author foxBMS Team
45  * @date 2015-09-01 (date of creation)
46  * @updated 2015-09-01 (date of last update)
47  * @ingroup DRIVERS
48  * @prefix LTC
49  *
50  * @brief Headers for the driver for the LTC monitoring chip.
51  *
52  */
53 
54 #ifndef FOXBMS__LTC_DEFS_H_
55 #define FOXBMS__LTC_DEFS_H_
56 
57 /*========== Includes =======================================================*/
58 #include "general.h"
59 
60 #include "diag_cfg.h"
61 #include "ltc_cfg.h"
62 
63 #include "database.h"
64 #include "spi.h"
65 
66 /*========== Macros and Definitions =========================================*/
67 
68 /** error table for the LTC driver */
69 typedef struct {
70  uint8_t PEC_valid[BS_NR_OF_STRINGS][LTC_N_LTC]; /*!< */
71  uint8_t mux0[BS_NR_OF_STRINGS][LTC_N_LTC]; /*!< */
72  uint8_t mux1[BS_NR_OF_STRINGS][LTC_N_LTC]; /*!< */
73  uint8_t mux2[BS_NR_OF_STRINGS][LTC_N_LTC]; /*!< */
74  uint8_t mux3[BS_NR_OF_STRINGS][LTC_N_LTC]; /*!< */
76 
77 /** struct for storing information on the openwire detection */
78 typedef struct {
79  int16_t openWirePup[BS_NR_OF_STRINGS][BS_NR_OF_BAT_CELLS];
80  int16_t openWirePdown[BS_NR_OF_STRINGS][BS_NR_OF_BAT_CELLS];
81  int32_t openWireDelta[BS_NR_OF_STRINGS][BS_NR_OF_BAT_CELLS];
83 
84 /*========== Extern Constant and Variable Declarations ======================*/
85 
86 /**
87  * Voltage measurement mode
88  * DCP0 means discharged not permitted during measurement
89  * DCP1 means discharged permitted during measurement
90  * Also DCP0 means balancing is interrupted when a cell is measured.
91  */
92 typedef enum {
93  LTC_ADCMODE_UNDEFINED, /*!< ADC measurement mode is not defined */
94  LTC_ADCMODE_FAST_DCP0, /*!< ADC measurement mode: Fast with DCP0 */
95  LTC_ADCMODE_NORMAL_DCP0, /*!< ADC measurement mode: Normal with DCP0 */
96  LTC_ADCMODE_FILTERED_DCP0, /*!< ADC measurement mode: Filtered with DCP0 */
97  LTC_ADCMODE_FAST_DCP1, /*!< ADC measurement mode: Fast with DCP1 */
98  LTC_ADCMODE_NORMAL_DCP1, /*!< ADC measurement mode: Normal with DCP1 */
99  LTC_ADCMODE_FILTERED_DCP1, /*!< ADC measurement mode: Filtered with DCP1 */
100 } LTC_ADCMODE_e;
101 
102 /** Number of measured channels */
103 typedef enum {
104  LTC_ADCMEAS_UNDEFINED, /*!< not defined */
105  LTC_ADCMEAS_ALLCHANNEL, /*!< all ADC channels are measured */
106  LTC_ADCMEAS_SINGLECHANNEL_GPIO1, /*!< only a single ADC channel (GPIO1) is measured */
107  LTC_ADCMEAS_SINGLECHANNEL_GPIO2, /*!< only a single ADC channel (GPIO2) is measured */
108  LTC_ADCMEAS_SINGLECHANNEL_GPIO3, /*!< only a single ADC channel (GPIO3) is measured */
109  LTC_ADCMEAS_SINGLECHANNEL_GPIO4, /*!< only a single ADC channel (GPIO4) is measured */
110  LTC_ADCMEAS_SINGLECHANNEL_GPIO5, /*!< only a single ADC channel (GPIO5) is measured */
111  LTC_ADCMEAS_SINGLECHANNEL_TWOCELLS, /*!< only two cell voltages are measured */
112  LTC_ADCMEAS_ALLCHANNEL_SC, /*!< all ADC channels + sum of cells are measured */
114 
115 /** States of the LTC state machine */
116 typedef enum {
117  /* Init-Sequence */
121  LTC_STATEMACH_INITIALIZED, /*!< LTC is initialized */
122  /* Voltage Measurement Cycle */
126  LTC_STATEMACH_MUXMEASUREMENT, /*!< Mux (Temperature and Balancing) Measurement */
133  LTC_STATEMACH_USER_IO_CONTROL, /*!< Control of the user port expander */
134  LTC_STATEMACH_USER_IO_FEEDBACK, /*!< Control of the user port expander */
135  LTC_STATEMACH_EEPROM_READ, /*!< Control of the external EEPROM */
136  LTC_STATEMACH_EEPROM_WRITE, /*!< Control of the external EEPROM */
137  LTC_STATEMACH_TEMP_SENS_READ, /*!< Control of the external temperature sensor */
144  LTC_STATEMACH_EEPROM_READ_UID, /*!< Control of the external EEPROM */
145  LTC_STATEMACH_USER_IO_CONTROL_TI, /*!< Control of the user port expander */
146  LTC_STATEMACH_USER_IO_FEEDBACK_TI, /*!< Control of the user port expander */
149  LTC_STATEMACH_UNDEFINED, /*!< undefined state */
150  LTC_STATEMACH_RESERVED1, /*!< reserved state */
151  LTC_STATEMACH_ERROR_SPIFAILED, /*!< Error-State: SPI error */
152  LTC_STATEMACH_ERROR_PECFAILED, /*!< Error-State: PEC error */
153  LTC_STATEMACH_ERROR_MUXFAILED, /*!< Error-State: multiplexer error */
154  LTC_STATEMACH_ERROR_INITIALIZATION, /*!< Error-State: initialization error */
156 
157 /** General substates */
158 typedef enum {
159  LTC_ENTRY, /*!< Substate entry state */
160  LTC_ERROR_ENTRY, /*!< Substate entry error */
161  LTC_ERROR_PROCESSED, /*!< Substate error processed */
163 
164 /** Substates for the uninitialized state */
165 typedef enum {
166  LTC_ENTRY_UNINITIALIZED, /*!< Initialize-sequence */
168 
169 /** Substates for the initialization state */
170 typedef enum {
171  /* Init-Sequence */
180 
181 /** Substates for the uninitialized state */
182 typedef enum {
185 
186 /** Substates for the read voltage state */
187 typedef enum {
188  /* Init-Sequence */
205 
206 /** Substates for the cell voltage + SC measurement state */
207 typedef enum {
212 
213 /** Substates for the balance control state */
214 typedef enum {
215  /* Init-Sequence */
225  LTC_STATEMACH_MUXMEASUREMENT_CONFIG, /*!< Configuration of the multiplexers */
229 
230 /** Substates for open-wire check */
231 typedef enum {
238 
239 /** Substates for diagnosis state */
240 typedef enum {
249 
250 /** Substates for ADC accuracy check */
251 typedef enum {
259 
260 /** Substates for digital filter check */
261 typedef enum {
278 
279 /** Substates for the user IO control state */
280 typedef enum {
288 
289 /** Substates for the user IO control state, TI port expander */
290 typedef enum {
303 
304 /** Substates for the EEPROM control state */
305 typedef enum {
319 
320 /** Substates for the temperature sensor control state */
321 typedef enum {
331 
332 /** Substates for the multiplexer measurement configuration state */
333 typedef enum {
334  /* Init-Sequence */
343 
344 /** Substates for the all-GPIO multiplexer measurement state */
345 typedef enum {
346  /* Init-Sequence */
353 
354 /** Substates for the single GPIO multiplexer measurement state */
355 typedef enum {
356  /* Init-Sequence */
360 
361 /** State requests for the LTC statemachine */
362 typedef enum {
391 
392 /**
393  * Possible return values when state requests are made to the LTC statemachine
394  */
395 typedef enum {
396  LTC_OK, /*!< LTC --> ok */
397  LTC_BUSY_OK, /*!< LTC under load --> ok */
398  LTC_REQUEST_PENDING, /*!< requested to be executed */
399  LTC_ILLEGAL_REQUEST, /*!< Request can not be executed */
400  LTC_SPI_ERROR, /*!< Error state: Source: SPI */
401  LTC_PEC_ERROR, /*!< Error state: Source: PEC */
402  LTC_MUX_ERROR, /*!< Error state: Source: MUX */
403  LTC_INIT_ERROR, /*!< Error state: Source: Initialization */
404  LTC_OK_FROM_ERROR, /*!< Return from error --> ok */
405  LTC_ERROR, /*!< General error state */
406  LTC_ALREADY_INITIALIZED, /*!< Initialization of LTC already finished */
407  LTC_ILLEGAL_TASK_TYPE, /*!< Illegal */
409 
410 /**
411  * Variable to define if the LTC should measure are restart the initialization sequence
412  */
413 typedef enum {
414  LTC_HAS_TO_MEASURE, /*!< measurement state of the LTC */
415  LTC_HAS_TO_REINIT, /*!< re-initialization state of the LTC */
416  LTC_HAS_TO_MEASURE_2CELLS, /*!< measurement state of the LTC */
418 
419 /** configuration of the mux channels */
420 typedef struct {
421  uint8_t muxID; /*!< multiplexer ID 0 - 3 */
422  uint8_t muxCh; /*!< multiplexer channel 0 - 7 */
424 
425 /** struct that holds the multiplexer sequence */
426 typedef struct {
427  uint8_t nr_of_steps; /*!< number of steps in the multiplexer sequence */
428  LTC_MUX_CH_CFG_s *seqptr; /*!< pointer to the multiplexer sequence */
430 
431 /** This struct contains pointer to used data buffers */
432 typedef struct {
434  uint16_t *txBuffer;
435  uint16_t *rxBuffer;
436  uint32_t frameLength;
444  uint16_t *usedCellIndex;
447 
449  uint16_t *GPIOVoltages; /* LTC2_NUMBER_OF_GPIOS * NR_OF_LTCs */
450  uint16_t *valid_GPIOPECs; /* NR_OF_LTCs */
451 
452 } LTC_DATAPTR_s;
453 
454 /** This struct contains error counter and pointer to used error buffers */
455 typedef struct {
456  uint32_t *errPECCnt; /* array length: Number of used LTCs */
457  uint32_t *errSPICnt; /* array length: Number of used LTCs */
458  uint8_t *ltcStatus; /* array length: Number of used LTCs */
459  uint8_t errPECRetryCnt;
460  uint8_t errSPIRetryCnt;
461  uint8_t errOccurred;
463 } LTC_ERROR_s;
464 
465 /**
466  * This struct contains the measurement configuration for the LTC
467  * Measurement is deactivated with value = LTC_STATE_NO_REQUEST
468  */
469 typedef struct {
470  LTC_STATE_REQUEST_e measVoltage; /* activated = LTC_STATE_VOLTAGEMEASUREMENT_REQUEST */
471  LTC_STATE_REQUEST_e measVoltage2Cells; /* activated = LTC_STATE_VOLTAGEMEASUREMENT_2CELLS_REQUEST */
472  LTC_STATE_REQUEST_e measVoltageSumofCells; /* activated = LTC_STATE_VOLTAGEMEASUREMENT_SC_REQUEST */
473  LTC_STATE_REQUEST_e measMux; /* activated = LTC_STATE_MUXMEASUREMENT_REQUEST */
474  LTC_STATE_REQUEST_e balancing; /* activated = LTC_STATE_BALANCECONTROL_REQUEST */
475  LTC_STATE_REQUEST_e balancing_feedback; /* activated = LTC_STATE_BALANCEFEEDBACK_REQUEST */
476  LTC_STATE_REQUEST_e measAllGPIO; /* activated = LTC_STATE_ALLGPIOMEASUREMENT_REQUEST */
477  LTC_STATE_REQUEST_e userIO; /* activated = LTC_STATE_USER_IO_REQUEST */
478  LTC_STATE_REQUEST_e readEEPROM; /* activated = LTC_STATE_EEPROM_READ_UID_REQUEST */
479  LTC_STATE_REQUEST_e measTemperature; /* activated = LTC_STATE_TEMP_SENS_READ_REQUEST */
480  LTC_STATE_REQUEST_e openWireCheck; /* activated = LTC_STATE_OPENWIRE_CHECK_REQUEST */
481  LTC_STATE_REQUEST_e deviceParameterCheck; /* activated = LTC_STATEMACH_DEVICE_PARAMETER_REQUEST */
482  LTC_STATE_REQUEST_e accuracyADCverification; /* activated = LTC_STATEMACH_ADC_ACCURACY_REQUEST */
483  LTC_STATE_REQUEST_e digitalFilterCheck; /* activated = LTC_STATEMACH_DIGITAL_FILTER_REQUEST */
484  uint8_t taskCycleCnt; /* holds the current state machine index */
485  uint8_t numberActiveOfStates; /* number of active states */
486  uint8_t activeStates[12]; /* array holds the different substates that are executed one after another */
487  /* maximum number of states : 12 */
488 } LTC_CONFIG_s;
489 
490 /**
491  *
492  */
493 typedef enum {
498 
499 /**
500  * TI port expander IO direction (input or output).
501  * Here the value in the enum is needed because it is written in
502  * a configuration register.
503  */
504 typedef enum {
505  LTC_PORT_EXPANDER_TI_OUTPUT = 0x0, /* specific value needed */
506  LTC_PORT_EXPANDER_TI_INPUT = 0xFF, /* specific value needed */
508 
509 /** This structure contains a state request and the addressed string. */
510 typedef struct {
512  uint8_t string; /*!< */
513 } LTC_REQUEST_s;
514 
515 /**
516  * This structure contains all the variables relevant for the LTC state machine.
517  * The user can get the current state of the LTC state machine with this variable
518  */
519 typedef struct {
520  uint16_t timer; /*!< time in ms before the state machine processes the next state, e.g. in counts of 1ms */
521  LTC_TASK_TYPE_e taskMode; /*!< current task of the state machine */
522  LTC_REQUEST_s statereq; /*!< current state request made to the state machine */
523  LTC_STATEMACH_e state; /*!< state of Driver State Machine */
524  uint8_t substate; /*!< current substate of the state machine */
525  LTC_STATEMACH_e laststate; /*!< previous state of the state machine */
526  uint8_t lastsubstate; /*!< previous substate of the state machine */
527  LTC_ADCMODE_e adcMode; /*!< current LTC ADCmeasurement mode (fast, normal or filtered) */
528  LTC_ADCMODE_e voltMeasMode; /*!< current LTC ADCmeasurement mode (fast, normal or filtered) */
529  LTC_ADCMODE_e gpioMeasMode; /*!< current LTC ADCmeasurement mode (fast, normal or filtered) */
530  LTC_ADCMODE_e adcModereq; /*!< requested LTC ADCmeasurement mode (fast, normal or filtered) */
532  adcMeasCh; /*!< current number of channels measured for GPIOS (one at a time for multiplexers or all five GPIOs) */
534  adcMeasChreq; /*!< requested number of channels measured for GPIOS (one at a time for multiplexers or all five GPIOs) */
535  uint8_t
536  numberOfMeasuredMux; /*!< number of multiplexer channels measured by the LTC chip before a voltage measurement is made */
537  uint32_t ErrPECCounter; /*!< counts the number of times there was A PEC (CRC) error during communication with LTC */
538  uint8_t
539  ErrRetryCounter; /*!< counts how many times the drivers retried to communicate with LTC in case of a communication error */
540  uint32_t ErrRequestCounter; /*!< counts the number of illegal requests to the LTC state machine */
541  uint8_t triggerentry; /*!< counter for re-entrance protection (function running flag) */
542  uint32_t
543  commandDataTransferTime; /*!< time needed for sending an instruction to the LTC, followed by data transfer from the LTC */
544  uint32_t commandTransferTime; /*!< time needed for sending an instruction to the LTC */
545  uint32_t
546  gpioClocksTransferTime; /*!< time needed for sending 72 clock signal to the LTC, used for I2C communication */
547  uint32_t VoltageSampleTime; /*!< time stamp at which the cell voltage were measured */
548  uint32_t muxSampleTime; /*!< time stamp at which a multiplexer input was measured */
549  uint8_t instanceID; /*!< number to distinguish between different ltc states, starting with 0,1,2,3....8 */
550  uint8_t nrBatcellsPerModule; /*!< number of cells per module */
551  uint8_t busSize; /*!< number of connected LTCs to parallel bus network */
552  LTC_ERROR_s errStatus; /*!< contains pointer to local error buffer and error indicators */
553  uint8_t *ltcIDs; /*!< array with LTC IDs */
554  uint8_t cntDeviceRD; /*!< current Index of array ltcIDs to determine device ID */
555  uint32_t ctrlCallCnt; /*!< counts the LTC2_CTRL calls */
556  uint8_t taskCycleCnt; /*!< counts the current task cycle */
558  reusageMeasurementMode; /*!< flag that indicates if currently any state is reused i.e. cell voltage measurement */
559  LTC_CONFIG_s ltcConfig; /*!< struct that holds the measurement configuration of the ltc network */
560  bool first_measurement_made; /*!< flag that indicates if the first measurement cycle was completed */
562  ltc_muxcycle_finished; /*!< flag that indicates if the measurement sequence of the multiplexers is finished */
563  STD_RETURN_TYPE_e check_spi_flag; /*!< indicates if interrupt flag or timer must be considered */
564  STD_RETURN_TYPE_e balance_control_done; /*!< indicates if balance control was done */
565  uint8_t resendCommandCounter; /*!< counter if commandy should be send multiple times e.g. ADOW command */
566  bool transmit_ongoing; /*!< SPI transmissioncurrently ongoing */
567  STD_RETURN_TYPE_e dummyByte_ongoing; /*!< SPI dummy byte is currently transmitted */
568  SPI_INTERFACE_CONFIG_s *spiSeqPtr; /*!< pointer to the SPI sequence to be measured */
569  SPI_INTERFACE_CONFIG_s *spiSeqEndPtr; /*!< pointer to the end of the SPI sequence */
570  uint8_t spiNumberInterfaces; /*!< number of SPI channels that have to be measured */
571  uint8_t currentString; /*!< string currently being addressed */
572  uint8_t requestedString; /*!< string addressed by the current state request */
573  DIAG_ID_e spiDiagErrorEntry; /*!< diagnosis entry for SPI related events */
574  DIAG_ID_e pecDiagErrorEntry; /*!< diagnosis entry for PEC related events */
575  DIAG_ID_e muxDiagErrorEntry; /*!< diagnosis entry for multiplexer related events */
576  DIAG_ID_e voltMeasDiagErrorEntry; /*!< diagnosis entry for voltage measurement related events */
577  DIAG_ID_e tempMeasDiagErrorEntry; /*!< diagnosis entry for temperature measurement related events */
578  LTC_DATAPTR_s ltcData; /*!< contains pointers to the local data buffer */
579  LTC_MUX_CH_CFG_s *muxmeas_seqptr
580  [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) */
581  LTC_MUX_CH_CFG_s *muxmeas_seqendptr
582  [BS_NR_OF_STRINGS]; /*!< point to the end of the multiplexer sequence; pointer to ending point of sequence */
583  uint8_t muxmeas_nr_end
584  [BS_NR_OF_STRINGS]; /*!< number of multiplexer channels that have to be measured; end number of sequence, where measurement is finished*/
585  uint8_t configuration[6]; /*!< holds the configuration of the ltc (configuration register) */
586 
587 } LTC_STATE_s;
588 
589 /*========== Extern Function Prototypes =====================================*/
590 
591 /*========== Externalized Static Functions Prototypes (Unit Test) ===========*/
592 
593 #endif /* FOXBMS__LTC_DEFS_H_ */
#define BS_NR_OF_STRINGS
#define BS_NR_OF_BAT_CELLS
Database module header.
Diagnostic module configuration header.
enum DIAG_ID DIAG_ID_e
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
General macros and definitions for the whole platform.
Headers for the configuration for the LTC monitoring chip.
#define LTC_N_LTC
Definition: ltc_cfg.h:66
LTC_STATEMACH_INITIALIZATION_SUB_e
Definition: ltc_defs.h:170
@ LTC_RE_ENTRY_INITIALIZATION
Definition: ltc_defs.h:175
@ LTC_ENTRY_INITIALIZATION
Definition: ltc_defs.h:173
@ LTC_READ_INITIALIZATION_REGISTER
Definition: ltc_defs.h:176
@ LTC_START_INIT_INITIALIZATION
Definition: ltc_defs.h:174
@ LTC_EXIT_INITIALIZATION
Definition: ltc_defs.h:178
@ LTC_CHECK_INITIALIZATION
Definition: ltc_defs.h:177
@ LTC_INIT_STRING
Definition: ltc_defs.h:172
LTC_STATEMACH_USER_IO_CONTROL_e
Definition: ltc_defs.h:280
@ LTC_USER_IO_READ_I2C_TRANSMISSION_RESULT_RDCOMM
Definition: ltc_defs.h:284
@ LTC_USER_IO_SAVE_DATA
Definition: ltc_defs.h:285
@ LTC_USER_IO_SEND_CLOCK_STCOMM
Definition: ltc_defs.h:283
@ LTC_USER_IO_FINISHED
Definition: ltc_defs.h:286
@ LTC_USER_IO_READ_INPUT_REGISTER
Definition: ltc_defs.h:282
@ LTC_USER_IO_SET_OUTPUT_REGISTER
Definition: ltc_defs.h:281
LTC_STATE_REQUEST_e
Definition: ltc_defs.h:362
@ LTC_STATEMACH_DEVICE_PARAMETER_REQUEST
Definition: ltc_defs.h:386
@ LTC_STATEMACH_ADC_ACCURACY_REQUEST
Definition: ltc_defs.h:387
@ LTC_STATE_EEPROM_READ_REQUEST
Definition: ltc_defs.h:369
@ LTC_STATEMACH_DIGITAL_FILTER_REQUEST
Definition: ltc_defs.h:388
@ LTC_STATE_READVOLTAGE_REQUEST
Definition: ltc_defs.h:379
@ LTC_STATE_USER_IO_READ_REQUEST_TI
Definition: ltc_defs.h:368
@ LTC_STATE_INIT_REQUEST
Definition: ltc_defs.h:363
@ LTC_STATE_ALLGPIOMEASUREMENT_REQUEST
Definition: ltc_defs.h:384
@ LTC_STATE_USER_IO_READ_REQUEST
Definition: ltc_defs.h:365
@ LTC_STATE_IDLE_REQUEST
Definition: ltc_defs.h:375
@ LTC_STATE_EEPROM_WRITE_REQUEST
Definition: ltc_defs.h:370
@ LTC_STATE_EEPROM_READ_UID_REQUEST
Definition: ltc_defs.h:371
@ LTC_STATE_USER_IO_WRITE_REQUEST
Definition: ltc_defs.h:364
@ LTC_STATE_USER_IO_WRITE_REQUEST_TI
Definition: ltc_defs.h:367
@ LTC_STATE_REINIT_REQUEST
Definition: ltc_defs.h:374
@ LTC_STATE_MUXMEASUREMENT_REQUEST
Definition: ltc_defs.h:381
@ LTC_STATE_USER_IO_REQUEST
Definition: ltc_defs.h:366
@ LTC_STATE_OPENWIRE_CHECK_REQUEST
Definition: ltc_defs.h:385
@ LTC_STATE_VOLTAGEMEASUREMENT_SC_REQUEST
Definition: ltc_defs.h:378
@ LTC_STATE_BALANCECONTROL_REQUEST
Definition: ltc_defs.h:382
@ LTC_STATE_VOLTAGEMEASUREMENT_REQUEST
Definition: ltc_defs.h:376
@ LTC_STATE_VOLTAGEMEASUREMENT_2CELLS_REQUEST
Definition: ltc_defs.h:377
@ LTC_STATE_BALANCEFEEDBACK_REQUEST
Definition: ltc_defs.h:373
@ LTC_STATE_READVOLTAGE_2CELLS_REQUEST
Definition: ltc_defs.h:380
@ LTC_STATE_TEMP_SENS_READ_REQUEST
Definition: ltc_defs.h:372
@ LTC_STATEMACH_BALANCEFEEDBACK_REQUEST
Definition: ltc_defs.h:383
@ LTC_STATE_NO_REQUEST
Definition: ltc_defs.h:389
LTC_STATEMACH_DIAGNOSIS_SUB_e
Definition: ltc_defs.h:240
@ LTC_REDUNDANCY_READ_STATUS_REGISTER_B
Definition: ltc_defs.h:246
@ LTC_DEVICE_PARAMETER_READ_STATUS_REGISTER_A
Definition: ltc_defs.h:242
@ LTC_EXIT_DEVICE_PARAMETER
Definition: ltc_defs.h:247
@ LTC_REQUEST_REDUNDANCY_CHECK
Definition: ltc_defs.h:244
@ LTC_DEVICE_PARAMETER_READ_STATUS_REGISTER_B
Definition: ltc_defs.h:243
@ LTC_REDUNDANCY_READ_STATUS_REGISTER_A
Definition: ltc_defs.h:245
@ LTC_REQUEST_DEVICE_PARAMETER
Definition: ltc_defs.h:241
LTC_STATEMACH_OPENWIRECHECK_SUB
Definition: ltc_defs.h:231
@ LTC_REQUEST_PULLDOWN_CURRENT_OPENWIRE_CHECK
Definition: ltc_defs.h:234
@ LTC_READ_VOLTAGES_PULLDOWN_OPENWIRE_CHECK
Definition: ltc_defs.h:235
@ LTC_READ_VOLTAGES_PULLUP_OPENWIRE_CHECK
Definition: ltc_defs.h:233
@ LTC_REQUEST_PULLUP_CURRENT_OPENWIRE_CHECK
Definition: ltc_defs.h:232
@ LTC_PERFORM_OPENWIRE_CHECK
Definition: ltc_defs.h:236
LTC_STATEMACH_READALLGPIO_SUB_e
Definition: ltc_defs.h:345
@ LTC_READ_AUXILIARY_REGISTER_C_RAUXC_READALLGPIO
Definition: ltc_defs.h:349
@ LTC_READ_AUXILIARY_REGISTER_A_RAUXA_READALLGPIO
Definition: ltc_defs.h:347
@ LTC_READ_AUXILIARY_REGISTER_D_RAUXD_READALLGPIO
Definition: ltc_defs.h:350
@ LTC_READ_AUXILIARY_REGISTER_B_RAUXB_READALLGPIO
Definition: ltc_defs.h:348
@ LTC_EXIT_READALLGPIO
Definition: ltc_defs.h:351
LTC_STATEMACH_UNINITIALIZED_SUB_e
Definition: ltc_defs.h:165
@ LTC_ENTRY_UNINITIALIZED
Definition: ltc_defs.h:166
LTC_STATEMACH_e
Definition: ltc_defs.h:116
@ LTC_STATEMACH_INITIALIZATION
Definition: ltc_defs.h:119
@ LTC_STATEMACH_USER_IO_FEEDBACK
Definition: ltc_defs.h:134
@ LTC_STATEMACH_UNINITIALIZED
Definition: ltc_defs.h:118
@ LTC_STATEMACH_MUXMEASUREMENT
Definition: ltc_defs.h:126
@ LTC_STATEMACH_IDLE
Definition: ltc_defs.h:123
@ LTC_STATEMACH_ERROR_INITIALIZATION
Definition: ltc_defs.h:154
@ LTC_STATEMACH_ERROR_MUXFAILED
Definition: ltc_defs.h:153
@ LTC_STATEMACH_TEMP_SENS_READ
Definition: ltc_defs.h:137
@ LTC_STATEMACH_BALANCECONTROL
Definition: ltc_defs.h:128
@ LTC_STATEMACH_ERROR_PECFAILED
Definition: ltc_defs.h:152
@ LTC_STATEMACH_EEPROM_WRITE
Definition: ltc_defs.h:136
@ LTC_STATEMACH_EEPROM_READ
Definition: ltc_defs.h:135
@ LTC_STATEMACH_READVOLTAGE_2CELLS
Definition: ltc_defs.h:131
@ LTC_STATEMACH_USER_IO_FEEDBACK_TI
Definition: ltc_defs.h:146
@ LTC_STATEMACH_STARTMEAS_CONTINUE
Definition: ltc_defs.h:147
@ LTC_STATEMACH_MUXMEASUREMENT_FINISHED
Definition: ltc_defs.h:127
@ LTC_STATEMACH_READALLGPIO
Definition: ltc_defs.h:130
@ LTC_STATEMACH_OPENWIRE_CHECK
Definition: ltc_defs.h:139
@ LTC_STATEMACH_USER_IO_CONTROL_TI
Definition: ltc_defs.h:145
@ LTC_STATEMACH_UNDEFINED
Definition: ltc_defs.h:149
@ LTC_STATEMACH_USER_IO_CONTROL
Definition: ltc_defs.h:133
@ LTC_STATEMACH_EEPROM_READ_UID
Definition: ltc_defs.h:144
@ LTC_STATEMACH_READVOLTAGE
Definition: ltc_defs.h:125
@ LTC_STATEMACH_BALANCEFEEDBACK
Definition: ltc_defs.h:138
@ LTC_STATEMACH_INITIALIZED
Definition: ltc_defs.h:121
@ LTC_STATEMACH_STARTMEAS_2CELLS
Definition: ltc_defs.h:132
@ LTC_STATEMACH_DEVICE_PARAMETER
Definition: ltc_defs.h:140
@ LTC_STATEMACH_REINIT
Definition: ltc_defs.h:120
@ LTC_STATEMACH_RESERVED1
Definition: ltc_defs.h:150
@ LTC_STATEMACH_DIGITAL_FILTER
Definition: ltc_defs.h:142
@ LTC_STATEMACH_STARTMEAS
Definition: ltc_defs.h:124
@ LTC_STATEMACH_MEASCYCLE_FINISHED
Definition: ltc_defs.h:148
@ LTC_STATEMACH_ALLGPIOMEASUREMENT
Definition: ltc_defs.h:129
@ LTC_STATEMACH_ADC_ACCURACY
Definition: ltc_defs.h:141
@ LTC_STATEMACH_ERROR_SPIFAILED
Definition: ltc_defs.h:151
@ LTC_STATEMACH_VOLTMEAS_SUMOFCELLS
Definition: ltc_defs.h:143
LTC_STATEMACH_EEPROM_READ_UID_e
Definition: ltc_defs.h:305
@ LTC_EEPROM_SEND_CLOCK_STCOMM4
Definition: ltc_defs.h:314
@ LTC_EEPROM_SEND_CLOCK_STCOMM2
Definition: ltc_defs.h:312
@ LTC_EEPROM_WRITE_DATA1
Definition: ltc_defs.h:309
@ LTC_EEPROM_READ_I2C_TRANSMISSION_RESULT_RDCOMM
Definition: ltc_defs.h:315
@ LTC_EEPROM_READ_DATA1
Definition: ltc_defs.h:307
@ LTC_EEPROM_SEND_CLOCK_STCOMM3
Definition: ltc_defs.h:313
@ LTC_EEPROM_WRITE_DATA2
Definition: ltc_defs.h:310
@ LTC_EEPROM_SET_READ_ADDRESS
Definition: ltc_defs.h:306
@ LTC_EEPROM_READ_DATA2
Definition: ltc_defs.h:308
@ LTC_EEPROM_SEND_CLOCK_STCOMM1
Definition: ltc_defs.h:311
@ LTC_EEPROM_SAVE_READ
Definition: ltc_defs.h:316
@ LTC_EEPROM_FINISHED
Definition: ltc_defs.h:317
LTC_ADCMEAS_CHAN_e
Definition: ltc_defs.h:103
@ LTC_ADCMEAS_ALLCHANNEL
Definition: ltc_defs.h:105
@ LTC_ADCMEAS_SINGLECHANNEL_GPIO5
Definition: ltc_defs.h:110
@ LTC_ADCMEAS_SINGLECHANNEL_GPIO2
Definition: ltc_defs.h:107
@ LTC_ADCMEAS_UNDEFINED
Definition: ltc_defs.h:104
@ LTC_ADCMEAS_SINGLECHANNEL_GPIO4
Definition: ltc_defs.h:109
@ LTC_ADCMEAS_SINGLECHANNEL_GPIO1
Definition: ltc_defs.h:106
@ LTC_ADCMEAS_SINGLECHANNEL_GPIO3
Definition: ltc_defs.h:108
@ LTC_ADCMEAS_ALLCHANNEL_SC
Definition: ltc_defs.h:112
@ LTC_ADCMEAS_SINGLECHANNEL_TWOCELLS
Definition: ltc_defs.h:111
LTC_STATEMACH_USER_IO_CONTROL_TI_e
Definition: ltc_defs.h:290
@ LTC_USER_IO_FINISHED_TI
Definition: ltc_defs.h:301
@ LTC_USER_IO_SET_OUTPUT_REGISTER_TI
Definition: ltc_defs.h:292
@ LTC_USER_IO_READ_I2C_TRANSMISSION_RESULT_RDCOMM_TI
Definition: ltc_defs.h:296
@ LTC_USER_IO_SET_DIRECTION_REGISTER_TI
Definition: ltc_defs.h:291
@ LTC_USER_IO_READ_INPUT_REGISTER_TI_FIRST
Definition: ltc_defs.h:293
@ LTC_USER_IO_READ_I2C_TRANSMISSION_RESULT_RDCOMM_TI_SECOND
Definition: ltc_defs.h:297
@ LTC_USER_IO_READ_I2C_TRANSMISSION_RESULT_RDCOMM_TI_THIRD
Definition: ltc_defs.h:298
@ LTC_USER_IO_SAVE_DATA_TI
Definition: ltc_defs.h:300
@ LTC_USER_IO_READ_INPUT_REGISTER_TI_SECOND
Definition: ltc_defs.h:294
@ LTC_USER_IO_READ_I2C_TRANSMISSION_RESULT_RDCOMM_TI_FOURTH
Definition: ltc_defs.h:299
@ LTC_USER_IO_SEND_CLOCK_STCOMM_TI
Definition: ltc_defs.h:295
LTC_TASK_TYPE_e
Definition: ltc_defs.h:413
@ LTC_HAS_TO_MEASURE
Definition: ltc_defs.h:414
@ LTC_HAS_TO_MEASURE_2CELLS
Definition: ltc_defs.h:416
@ LTC_HAS_TO_REINIT
Definition: ltc_defs.h:415
LTC_PORT_EXPANDER_TI_DIRECTION_e
Definition: ltc_defs.h:504
@ LTC_PORT_EXPANDER_TI_OUTPUT
Definition: ltc_defs.h:505
@ LTC_PORT_EXPANDER_TI_INPUT
Definition: ltc_defs.h:506
LTC_RETURN_TYPE_e
Definition: ltc_defs.h:395
@ LTC_BUSY_OK
Definition: ltc_defs.h:397
@ LTC_ILLEGAL_TASK_TYPE
Definition: ltc_defs.h:407
@ LTC_ILLEGAL_REQUEST
Definition: ltc_defs.h:399
@ LTC_PEC_ERROR
Definition: ltc_defs.h:401
@ LTC_SPI_ERROR
Definition: ltc_defs.h:400
@ LTC_ALREADY_INITIALIZED
Definition: ltc_defs.h:406
@ LTC_ERROR
Definition: ltc_defs.h:405
@ LTC_OK_FROM_ERROR
Definition: ltc_defs.h:404
@ LTC_REQUEST_PENDING
Definition: ltc_defs.h:398
@ LTC_OK
Definition: ltc_defs.h:396
@ LTC_MUX_ERROR
Definition: ltc_defs.h:402
@ LTC_INIT_ERROR
Definition: ltc_defs.h:403
LTC_STATEMACH_TEMP_SENS_READ_e
Definition: ltc_defs.h:321
@ LTC_TEMP_SENS_READ_I2C_TRANSMISSION_RESULT_RDCOMM
Definition: ltc_defs.h:327
@ LTC_TEMP_SENS_SEND_CLOCK_STCOMM1
Definition: ltc_defs.h:325
@ LTC_TEMP_SENS_SEND_CLOCK_STCOMM2
Definition: ltc_defs.h:326
@ LTC_TEMP_SENS_FINISHED
Definition: ltc_defs.h:329
@ LTC_TEMP_SENS_READ_DATA3
Definition: ltc_defs.h:324
@ LTC_TEMP_SENS_SAVE_TEMP
Definition: ltc_defs.h:328
@ LTC_TEMP_SENS_SEND_DATA1
Definition: ltc_defs.h:322
@ LTC_TEMP_SENS_READ_DATA1
Definition: ltc_defs.h:323
LTC_STATEMACH_BALANCECONTROL_SUB
Definition: ltc_defs.h:214
@ LTC_STATEMACH_READMUXMEASUREMENT
Definition: ltc_defs.h:226
@ LTC_EXIT_BALANCECONTROL
Definition: ltc_defs.h:222
@ LTC_STATEMACH_STARTMUXMEASUREMENT
Definition: ltc_defs.h:223
@ LTC_CONFIG_BALANCECONTROL
Definition: ltc_defs.h:216
@ LTC_REQUEST_FEEDBACK_BALANCECONTROL
Definition: ltc_defs.h:219
@ LTC_SAVE_FEEDBACK_BALANCECONTROL
Definition: ltc_defs.h:221
@ LTC_STATEMACH_MUXCONFIGURATION_INIT
Definition: ltc_defs.h:224
@ LTC_CONFIG2_BALANCECONTROL_END
Definition: ltc_defs.h:218
@ LTC_READ_FEEDBACK_BALANCECONTROL
Definition: ltc_defs.h:220
@ LTC_CONFIG2_BALANCECONTROL
Definition: ltc_defs.h:217
@ LTC_STATEMACH_STOREMUXMEASUREMENT
Definition: ltc_defs.h:227
@ LTC_STATEMACH_MUXMEASUREMENT_CONFIG
Definition: ltc_defs.h:225
LTC_STATEMACH_MUXMEASUREMENT_CONFIG_SUB_e
Definition: ltc_defs.h:333
@ LTC_READ_I2C_TRANSMISSION_RESULT_RDCOMM_MUXMEASUREMENT_CONFIG
Definition: ltc_defs.h:339
@ LTC_SEND_CLOCK_STCOMM_DIRECTION_CONFIG
Definition: ltc_defs.h:337
@ LTC_SET_MUX_CHANNEL_WRCOMM_MUXMEASUREMENT_CONFIG
Definition: ltc_defs.h:335
@ LTC_READ_I2C_TRANSMISSION_CHECK_MUXMEASUREMENT_CONFIG
Definition: ltc_defs.h:340
@ LTC_START_GPIO_MEASUREMENT_MUXMEASUREMENT_CONFIG
Definition: ltc_defs.h:341
@ LTC_SEND_CLOCK_STCOMM_MUXMEASUREMENT_CONFIG
Definition: ltc_defs.h:336
@ LTC_SEND_CLOCK_STCOMM_WRITE_IO
Definition: ltc_defs.h:338
LTC_STATEMACH_READVOLTAGE_SUB_e
Definition: ltc_defs.h:187
@ LTC_READ_AUXILIARY_REGISTER_D_RDAUXD
Definition: ltc_defs.h:202
@ LTC_READ_VOLTAGE_REGISTER_F_RDCVF_READVOLTAGE
Definition: ltc_defs.h:194
@ LTC_READ_AUXILIARY_REGISTER_A_RDAUXA
Definition: ltc_defs.h:199
@ LTC_READ_VOLTAGE_REGISTER_A_RDCVA_READVOLTAGE
Definition: ltc_defs.h:189
@ LTC_READ_VOLTAGE_REGISTER_D_RDCVD_READVOLTAGE
Definition: ltc_defs.h:192
@ LTC_READ_VOLTAGE_REGISTER_G_RDCVG_READVOLTAGE
Definition: ltc_defs.h:195
@ LTC_READ_VOLTAGE_REGISTER_I_RDCVI_READVOLTAGE
Definition: ltc_defs.h:197
@ LTC_READ_AUXILIARY_REGISTER_C_RDAUXC
Definition: ltc_defs.h:201
@ LTC_EXIT_READAUXILIARY_ALLGPIOS
Definition: ltc_defs.h:203
@ LTC_READ_AUXILIARY_REGISTER_B_RDAUXB
Definition: ltc_defs.h:200
@ LTC_READ_VOLTAGE_REGISTER_B_RDCVB_READVOLTAGE
Definition: ltc_defs.h:190
@ LTC_EXIT_READVOLTAGE
Definition: ltc_defs.h:198
@ LTC_READ_VOLTAGE_REGISTER_H_RDCVH_READVOLTAGE
Definition: ltc_defs.h:196
@ LTC_READ_VOLTAGE_REGISTER_E_RDCVE_READVOLTAGE
Definition: ltc_defs.h:193
@ LTC_READ_VOLTAGE_REGISTER_C_RDCVC_READVOLTAGE
Definition: ltc_defs.h:191
LTC_STATEMACH_ADC_ACCURACY_CHECK_SUB_e
Definition: ltc_defs.h:251
@ LTC_READ_ADC2_VERIFICATION_VALUE
Definition: ltc_defs.h:256
@ LTC_SAVE_ADC1_VERIFICATION_VALUE
Definition: ltc_defs.h:254
@ LTC_EXIT_ADC_ACCURACY_CHECK
Definition: ltc_defs.h:257
@ LTC_REQUEST_ADC2_VERIFICATION
Definition: ltc_defs.h:255
@ LTC_READ_ADC1_VERIFICATION_VALUE
Definition: ltc_defs.h:253
@ LTC_REQUEST_ADC1_VERIFICATION
Definition: ltc_defs.h:252
LTC_STATEMACH_READVOLTAGE_SC_SUB_e
Definition: ltc_defs.h:207
@ LTC_EXIT_VOLTMEAS_SC
Definition: ltc_defs.h:210
@ LTC_VOLTMEAS_SC_TRIGGER_CONVERSION
Definition: ltc_defs.h:208
@ LTC_VOLTMEAS_SC_READ_SC
Definition: ltc_defs.h:209
LTC_STATEMACH_DIGITAL_FILTER_SUB_e
Definition: ltc_defs.h:261
@ LTC_EXIT_DIGITAL_FILTER_CHECK
Definition: ltc_defs.h:276
@ LTC_DIGITAL_FILTER_READ_STATUS_REGISTER_A_2
Definition: ltc_defs.h:273
@ LTC_DIGITAL_FILTER_SELF_TEST_1_STATUS
Definition: ltc_defs.h:270
@ LTC_DIGITAL_FILTER_READ_STATUS_REGISTER_B_2
Definition: ltc_defs.h:274
@ LTC_DIGITAL_FILTER_READ_STATUS_REGISTER_B
Definition: ltc_defs.h:269
@ LTC_REQUEST_CLEAR_STATUS_REGISTER
Definition: ltc_defs.h:264
@ LTC_DIGITAL_FILTER_SELF_TEST_1_CELLVOLTAGES
Definition: ltc_defs.h:266
@ LTC_DIGITAL_FILTER_SELF_TEST_2_CELLVOLTAGES
Definition: ltc_defs.h:271
@ LTC_REQUEST_CLEAR_CELLVOLTAGES
Definition: ltc_defs.h:262
@ LTC_DIGITAL_FILTER_SELF_TEST_1_AUX
Definition: ltc_defs.h:267
@ LTC_DIGITAL_FILTER_SELF_TEST_2_STATUS
Definition: ltc_defs.h:275
@ LTC_DIGITAL_FILTER_READ_STATUS_REGISTER_A
Definition: ltc_defs.h:268
@ LTC_DIGITAL_FILTER_SELF_TEST_2_AUX
Definition: ltc_defs.h:272
@ LTC_REQUEST_CLEAR_AUX_REGISTER
Definition: ltc_defs.h:263
@ LTC_REQUEST_DIGITAL_FILTER_CHECK_CELLVOLTAGES
Definition: ltc_defs.h:265
LTC_REUSE_MODE_e
Definition: ltc_defs.h:493
@ LTC_REUSE_READVOLT_FOR_ADOW_PUP
Definition: ltc_defs.h:495
@ LTC_REUSE_READVOLT_FOR_ADOW_PDOWN
Definition: ltc_defs.h:496
@ LTC_NOT_REUSED
Definition: ltc_defs.h:494
LTC_STATEMACH_INITIALIZED_SUB_e
Definition: ltc_defs.h:182
@ LTC_ENTRY_INITIALIZED
Definition: ltc_defs.h:183
LTC_ADCMODE_e
Definition: ltc_defs.h:92
@ LTC_ADCMODE_UNDEFINED
Definition: ltc_defs.h:93
@ LTC_ADCMODE_FILTERED_DCP1
Definition: ltc_defs.h:99
@ LTC_ADCMODE_FAST_DCP1
Definition: ltc_defs.h:97
@ LTC_ADCMODE_NORMAL_DCP0
Definition: ltc_defs.h:95
@ LTC_ADCMODE_FILTERED_DCP0
Definition: ltc_defs.h:96
@ LTC_ADCMODE_NORMAL_DCP1
Definition: ltc_defs.h:98
@ LTC_ADCMODE_FAST_DCP0
Definition: ltc_defs.h:94
LTC_STATEMACH_SUB_e
Definition: ltc_defs.h:158
@ LTC_ERROR_ENTRY
Definition: ltc_defs.h:160
@ LTC_ERROR_PROCESSED
Definition: ltc_defs.h:161
@ LTC_ENTRY
Definition: ltc_defs.h:159
LTC_STATEMACH_MUXMEASUREMENT_SUB_e
Definition: ltc_defs.h:355
@ LTC_READ_AUXILIARY_REGISTER_A_RAUXA_MUXMEASUREMENT
Definition: ltc_defs.h:357
@ LTC_SAVE_MUX_MEASUREMENT_MUXMEASUREMENT
Definition: ltc_defs.h:358
Headers for the driver for the SPI module.
LTC_STATE_REQUEST_e balancing
Definition: ltc_defs.h:474
LTC_STATE_REQUEST_e digitalFilterCheck
Definition: ltc_defs.h:483
uint8_t numberActiveOfStates
Definition: ltc_defs.h:485
LTC_STATE_REQUEST_e measAllGPIO
Definition: ltc_defs.h:476
LTC_STATE_REQUEST_e measVoltage2Cells
Definition: ltc_defs.h:471
LTC_STATE_REQUEST_e measVoltageSumofCells
Definition: ltc_defs.h:472
LTC_STATE_REQUEST_e measTemperature
Definition: ltc_defs.h:479
LTC_STATE_REQUEST_e measVoltage
Definition: ltc_defs.h:470
uint8_t taskCycleCnt
Definition: ltc_defs.h:484
LTC_STATE_REQUEST_e deviceParameterCheck
Definition: ltc_defs.h:481
LTC_STATE_REQUEST_e readEEPROM
Definition: ltc_defs.h:478
LTC_STATE_REQUEST_e openWireCheck
Definition: ltc_defs.h:480
LTC_STATE_REQUEST_e accuracyADCverification
Definition: ltc_defs.h:482
LTC_STATE_REQUEST_e userIO
Definition: ltc_defs.h:477
LTC_STATE_REQUEST_e balancing_feedback
Definition: ltc_defs.h:475
LTC_STATE_REQUEST_e measMux
Definition: ltc_defs.h:473
LTC_OPENWIRE_DETECTION_s * openWireDetection
Definition: ltc_defs.h:445
DATA_BLOCK_ALL_GPIO_VOLTAGES_s * allGpioVoltages
Definition: ltc_defs.h:442
DATA_BLOCK_CELL_VOLTAGE_s * cellVoltage
Definition: ltc_defs.h:437
DATA_BLOCK_CELL_TEMPERATURE_s * cellTemperature
Definition: ltc_defs.h:438
uint16_t * txBuffer
Definition: ltc_defs.h:434
LTC_ERRORTABLE_s * errorTable
Definition: ltc_defs.h:446
DATA_BLOCK_USER_MUX_s * user_mux
Definition: ltc_defs.h:448
uint16_t * GPIOVoltages
Definition: ltc_defs.h:449
DATA_BLOCK_BALANCING_FEEDBACK_s * balancingFeedback
Definition: ltc_defs.h:439
SPI_INTERFACE_CONFIG_s * pSpiInterface
Definition: ltc_defs.h:433
uint16_t * rxBuffer
Definition: ltc_defs.h:435
uint16_t * usedCellIndex
Definition: ltc_defs.h:444
uint32_t frameLength
Definition: ltc_defs.h:436
DATA_BLOCK_SLAVE_CONTROL_s * slaveControl
Definition: ltc_defs.h:441
DATA_BLOCK_OPEN_WIRE_s * openWire
Definition: ltc_defs.h:443
DATA_BLOCK_BALANCING_CONTROL_s * balancingControl
Definition: ltc_defs.h:440
uint16_t * valid_GPIOPECs
Definition: ltc_defs.h:450
uint8_t errPECRetryCnt
Definition: ltc_defs.h:459
uint8_t errOccurred
Definition: ltc_defs.h:461
uint32_t * errPECCnt
Definition: ltc_defs.h:456
uint32_t * errSPICnt
Definition: ltc_defs.h:457
uint8_t errSPIRetryCnt
Definition: ltc_defs.h:460
uint32_t nrOfConsecutiveErrors
Definition: ltc_defs.h:462
uint8_t * ltcStatus
Definition: ltc_defs.h:458
uint8_t muxCh
Definition: ltc_defs.h:422
uint8_t muxID
Definition: ltc_defs.h:421
uint8_t nr_of_steps
Definition: ltc_defs.h:427
LTC_MUX_CH_CFG_s * seqptr
Definition: ltc_defs.h:428
LTC_STATE_REQUEST_e request
Definition: ltc_defs.h:511
uint8_t string
Definition: ltc_defs.h:512
uint32_t commandDataTransferTime
Definition: ltc_defs.h:543
LTC_DATAPTR_s ltcData
Definition: ltc_defs.h:578
DIAG_ID_e voltMeasDiagErrorEntry
Definition: ltc_defs.h:576
LTC_ADCMODE_e adcModereq
Definition: ltc_defs.h:530
LTC_REQUEST_s statereq
Definition: ltc_defs.h:522
uint8_t * ltcIDs
Definition: ltc_defs.h:553
DIAG_ID_e pecDiagErrorEntry
Definition: ltc_defs.h:574
uint8_t ErrRetryCounter
Definition: ltc_defs.h:539
uint8_t triggerentry
Definition: ltc_defs.h:541
DIAG_ID_e muxDiagErrorEntry
Definition: ltc_defs.h:575
uint8_t cntDeviceRD
Definition: ltc_defs.h:554
DIAG_ID_e tempMeasDiagErrorEntry
Definition: ltc_defs.h:577
SPI_INTERFACE_CONFIG_s * spiSeqPtr
Definition: ltc_defs.h:568
uint8_t instanceID
Definition: ltc_defs.h:549
uint32_t commandTransferTime
Definition: ltc_defs.h:544
SPI_INTERFACE_CONFIG_s * spiSeqEndPtr
Definition: ltc_defs.h:569
LTC_ADCMODE_e gpioMeasMode
Definition: ltc_defs.h:529
LTC_ADCMODE_e voltMeasMode
Definition: ltc_defs.h:528
uint8_t substate
Definition: ltc_defs.h:524
LTC_STATEMACH_e laststate
Definition: ltc_defs.h:525
uint8_t lastsubstate
Definition: ltc_defs.h:526
bool transmit_ongoing
Definition: ltc_defs.h:566
LTC_ERROR_s errStatus
Definition: ltc_defs.h:552
LTC_ADCMEAS_CHAN_e adcMeasCh
Definition: ltc_defs.h:532
LTC_REUSE_MODE_e reusageMeasurementMode
Definition: ltc_defs.h:558
uint8_t numberOfMeasuredMux
Definition: ltc_defs.h:536
uint32_t gpioClocksTransferTime
Definition: ltc_defs.h:546
uint16_t timer
Definition: ltc_defs.h:520
uint8_t resendCommandCounter
Definition: ltc_defs.h:565
LTC_STATEMACH_e state
Definition: ltc_defs.h:523
DIAG_ID_e spiDiagErrorEntry
Definition: ltc_defs.h:573
uint8_t spiNumberInterfaces
Definition: ltc_defs.h:570
uint32_t muxSampleTime
Definition: ltc_defs.h:548
uint8_t nrBatcellsPerModule
Definition: ltc_defs.h:550
uint8_t busSize
Definition: ltc_defs.h:551
LTC_ADCMODE_e adcMode
Definition: ltc_defs.h:527
uint8_t currentString
Definition: ltc_defs.h:571
uint32_t ErrRequestCounter
Definition: ltc_defs.h:540
STD_RETURN_TYPE_e balance_control_done
Definition: ltc_defs.h:564
uint8_t taskCycleCnt
Definition: ltc_defs.h:556
uint32_t ctrlCallCnt
Definition: ltc_defs.h:555
LTC_CONFIG_s ltcConfig
Definition: ltc_defs.h:559
STD_RETURN_TYPE_e dummyByte_ongoing
Definition: ltc_defs.h:567
STD_RETURN_TYPE_e check_spi_flag
Definition: ltc_defs.h:563
uint32_t ErrPECCounter
Definition: ltc_defs.h:537
bool first_measurement_made
Definition: ltc_defs.h:560
uint8_t requestedString
Definition: ltc_defs.h:572
LTC_ADCMEAS_CHAN_e adcMeasChreq
Definition: ltc_defs.h:534
STD_RETURN_TYPE_e ltc_muxcycle_finished
Definition: ltc_defs.h:562
LTC_TASK_TYPE_e taskMode
Definition: ltc_defs.h:521
uint32_t VoltageSampleTime
Definition: ltc_defs.h:547