104 #define LTC2422_CS QUIKEVAL_CS 112 uint16_t miso_timeout
119 uint8_t *adc_channel,
const float LTC2422_TYPICAL_lsb
The LTC2422 typical least significant bit value with 5V full-scale.
void LTC2422_calculate_lsb(float LTC2422_reference_voltage, float *LTC2422_lsb)
Calculates the lsb weight from the given reference voltage.
uint8_t LTC2422_EOC_timeout(uint8_t cs, uint16_t miso_timeout)
Checks for EOC with a specified timeout.
static float LTC2422_lsb
The LTC2422 least significant bit value with 5V full-scale.
void LTC2422_adc_read(uint8_t cs, uint8_t *adc_channel, int32_t *code)
Read ADC code from the LTC2422.
float LTC2422_code_to_voltage(int32_t adc_code, float LTC2422_lsb)
Calculates the voltage given the ADC code and lsb weight.