130 #define LTC2440_CS QUIKEVAL_CS 135 #define LTC2440_OSR_64 0x08 136 #define LTC2440_OSR_128 0x10 137 #define LTC2440_OSR_256_ 0x00 // See note above 138 #define LTC2440_OSR_256 0x18 139 #define LTC2440_OSR_512 0x20 140 #define LTC2440_OSR_1024 0x28 141 #define LTC2440_OSR_2048 0x30 142 #define LTC2440_OSR_4096 0x38 143 #define LTC2440_OSR_8192 0x40 144 #define LTC2440_OSR_16384 0x48 145 #define LTC2440_OSR_32768 0x78 152 uint16_t miso_timeout
static uint8_t adc_command
float LTC2440_code_to_voltage(int32_t adc_code, float vref)
Calculates the voltage corresponding to an adc code, given the reference (in volts) ...
int8_t LTC2440_EOC_timeout(uint8_t cs, uint16_t miso_timeout)
Checks for EOC with a specified timeout.
void LTC2440_read(uint8_t cs, uint8_t adc_command, int32_t *adc_code)
Reads from LTC2440.