72 #define LTC2302_CS QUIKEVAL_CS 78 #define LTC2302_UNIPOLAR 0xBFFF 80 #define LTC2302_BIPOLAR 0x0000 static uint8_t adc_command
static uint8_t uni_bipolar
Default set for unipolar mode.
float LTC2302_code_to_voltage(uint16_t adc_code, float vref, uint8_t uni_bipolar)
Calculates the LTC2302 input voltage given the data, range, and unipolar/bipolar status.
void LTC2302_read(uint8_t cs, uint16_t adc_command, uint16_t *adc_code)
Reads the ADC and returns 16-bit data.