|
PER Firmware
|
Daisy-chain ADBMS6380 device driver state, SPI transports, buffers, and error flags. More...
#include <adbms6380.h>
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 |
Daisy-chain ADBMS6380 device driver state, SPI transports, buffers, and error flags.
| 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.
| adbms6380_chip_t adbms6380_t::chips[ADBMS_CHIP_COUNT] |
Per-chip device state and raw/converted voltage and temperature readings.
| bool adbms6380_t::err_cell_voltage_pecs[ADBMS6380_RDCV_CMD_COUNT] |
Per-command PEC error flags for cell voltage reads.
| bool adbms6380_t::err_gpio_voltage_pecs[ADBMS6380_RDAUX_CMD_COUNT] |
Per-command PEC error flags for GPIO voltage reads.
| bool adbms6380_t::err_rega_pec |
Set when REGA read has a PEC failure.
| bool adbms6380_t::err_regb_pec |
Set when REGB read has a PEC failure.
| uint8_t adbms6380_t::rega[ADBMS6380_SINGLE_DATA_RAW_SIZE] |
Cached REGA bytes written to all chips in the device chain.
| uint8_t adbms6380_t::rx_buf[ADBMS6380_SPI_RX_BUFFER_SIZE] |
RX buffer for multi-chip readouts.
| SPI_InitConfig_t* adbms6380_t::spi_ccw |
Counter-clockwise SPI instance (Chip 0 -> Chip N-1, manual CS control).
| SPI_InitConfig_t* adbms6380_t::spi_cw |
Clockwise SPI instance (Chip N-1 -> Chip 0, manual CS control).
| uint8_t adbms6380_t::tx_buf[ADBMS6380_SPI_TX_BUFFER_SIZE] |
Backing TX buffer for command/data packets.
| strbuf_t adbms6380_t::tx_strbuf |
Scratch TX buffer wrapper for command/data packets.