55 #define LTC6803_CS QUIKEVAL_CS uint8_t LTC6803_rdcv(uint8_t total_ic, uint16_t cell_codes[][12])
Function that reads Cell Voltage registers.
void LTC6803_wrcfg(uint8_t total_ic, uint8_t config[][6])
Function that writes configuration of LTC6803-2/-4.
void LTC6803_initialize()
Initializes the SPI port.
void spi_write_read(uint8_t *TxData, uint8_t TXlen, uint8_t *rx_data, uint8_t RXlen)
Writes and read a set number of bytes using the SPI port.
union LT_union_int32_4bytes data
static uint16_t temp_codes[TOTAL_IC][3]
The Temp codes will be stored in the temp_codes[][3] array in the following format: ...
void spi_write_array(uint8_t length, uint8_t *data)
Writes an array of bytes out of the SPI port.
void LTC6803_sttmpad()
Function to start Temp channel voltage measurement.
void LTC6803_stcvad()
Function to start Cell Voltage measurement.
int8_t LTC6803_rdcfg(uint8_t total_ic, uint8_t r_config[][7])
Function that reads configuration of LTC6803-2/-4.
int8_t LTC6803_rdtmp(uint8_t total_ic, uint16_t temp_codes[][3])
Function that reads Temp Voltage registers.
static uint16_t cell_codes[TOTAL_IC][12]
The cell codes will be stored in the cell_codes[][12] array in the following format: ...
uint8_t pec8_calc(uint8_t len, uint8_t *data)
Function that calculates PEC byte.