![]() |
Midnight Sun Firmware
|
Afe Settings Data. More...
#include <ltc_afe.h>
Public Attributes | |
LtcAfeAdcMode | adc_mode |
uint16_t | cell_bitset [LTC_AFE_MAX_DEVICES] |
uint16_t | aux_bitset [LTC_AFE_MAX_DEVICES] |
size_t | num_devices |
size_t | num_cells |
size_t | num_thermistors |
SpiSettings | spi_settings |
const SpiPort | spi_port |
Afe Settings Data.
Set by the user when ltc_afe_init
is called Stores SPI information, which cell and aux inputs are enabled, and number of things
SpiSettings
refer to spi.h
LtcAfeAdcMode adc_mode |
Determines ADC Mode
uint16_t aux_bitset[LTC_AFE_MAX_DEVICES] |
Bitset showing aux inputs enabled for each device
uint16_t cell_bitset[LTC_AFE_MAX_DEVICES] |
Bitset showing cells are enabled for each device
size_t num_cells |
Number of TOTAL cells across all devices
size_t num_devices |
Number of AFE devices
size_t num_thermistors |
Number of TOTAL thermistors (aux inputs) across all devices
const SpiPort spi_port |
Determines which SPI port to use
SpiSettings spi_settings |
SPI settings for AFE