PER Firmware
Loading...
Searching...
No Matches
adbms6380_t Struct Reference

Daisy-chain ADBMS6380 device driver state, SPI transports, buffers, and error flags. More...

#include <adbms6380.h>

Collaboration diagram for adbms6380_t:
[legend]

Public Attributes

SPI_InitConfig_t * spi_ccw
 
SPI_InitConfig_t * spi_cw
 
strbuf_t tx_strbuf
 
adbms6380_chip_t chips [ADBMS_CHIP_COUNT]
 
uint8_t tx_buf [ADBMS6380_SPI_TX_BUFFER_SIZE]
 
uint8_t rx_buf [ADBMS6380_SPI_RX_BUFFER_SIZE]
 
uint8_t rega [ADBMS6380_SINGLE_DATA_RAW_SIZE]
 
bool err_cell_voltage_pecs [ADBMS6380_RDCV_CMD_COUNT]
 
bool err_gpio_voltage_pecs [ADBMS6380_RDAUX_CMD_COUNT]
 
bool err_rega_pec
 
bool err_regb_pec
 
uint8_t ccw_chip_count
 

Detailed Description

Daisy-chain ADBMS6380 device driver state, SPI transports, buffers, and error flags.

Member Data Documentation

◆ ccw_chip_count

uint8_t adbms6380_t::ccw_chip_count

Number of contiguous chips serviced in the CCW direction (0..ADBMS_CHIP_COUNT). The remaining (ADBMS_CHIP_COUNT - ccw_chip_count) chips are serviced in the CW direction.

◆ chips

adbms6380_chip_t adbms6380_t::chips[ADBMS_CHIP_COUNT]

Per-chip device state and raw/converted voltage and temperature readings.

◆ err_cell_voltage_pecs

bool adbms6380_t::err_cell_voltage_pecs[ADBMS6380_RDCV_CMD_COUNT]

Per-command PEC error flags for cell voltage reads.

◆ err_gpio_voltage_pecs

bool adbms6380_t::err_gpio_voltage_pecs[ADBMS6380_RDAUX_CMD_COUNT]

Per-command PEC error flags for GPIO voltage reads.

◆ err_rega_pec

bool adbms6380_t::err_rega_pec

Set when REGA read has a PEC failure.

◆ err_regb_pec

bool adbms6380_t::err_regb_pec

Set when REGB read has a PEC failure.

◆ rega

uint8_t adbms6380_t::rega[ADBMS6380_SINGLE_DATA_RAW_SIZE]

Cached REGA bytes written to all chips in the device chain.

◆ rx_buf

uint8_t adbms6380_t::rx_buf[ADBMS6380_SPI_RX_BUFFER_SIZE]

RX buffer for multi-chip readouts.

◆ spi_ccw

SPI_InitConfig_t* adbms6380_t::spi_ccw

Counter-clockwise SPI instance (Chip 0 -> Chip N-1, manual CS control).

◆ spi_cw

SPI_InitConfig_t* adbms6380_t::spi_cw

Clockwise SPI instance (Chip N-1 -> Chip 0, manual CS control).

◆ tx_buf

uint8_t adbms6380_t::tx_buf[ADBMS6380_SPI_TX_BUFFER_SIZE]

Backing TX buffer for command/data packets.

◆ tx_strbuf

strbuf_t adbms6380_t::tx_strbuf

Scratch TX buffer wrapper for command/data packets.


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