140 #define LTC2449_CS QUIKEVAL_CS 146 #define LTC2449_KEEP_PREVIOUS_MODE 0x8000 147 #define LTC2449_KEEP_PREVIOUS_SPEED_RESOLUTION 0x0000 148 #define LTC2449_SPEED_1X 0x0000 149 #define LTC2449_SPEED_2X 0x0008 156 #define LTC2449_CH0 0xB000 157 #define LTC2449_CH1 0xB800 158 #define LTC2449_CH2 0xB100 159 #define LTC2449_CH3 0xB900 160 #define LTC2449_CH4 0xB200 161 #define LTC2449_CH5 0xBA00 162 #define LTC2449_CH6 0xB300 163 #define LTC2449_CH7 0xBB00 164 #define LTC2449_CH8 0xB400 165 #define LTC2449_CH9 0xBC00 166 #define LTC2449_CH10 0xB500 167 #define LTC2449_CH11 0xBD00 168 #define LTC2449_CH12 0xB600 169 #define LTC2449_CH13 0xBE00 170 #define LTC2449_CH14 0xB700 171 #define LTC2449_CH15 0xBF00 176 #define LTC2449_P0_N1 0xA000 177 #define LTC2449_P1_N0 0xA800 179 #define LTC2449_P2_N3 0xA100 180 #define LTC2449_P3_N2 0xA900 182 #define LTC2449_P4_N5 0xA200 183 #define LTC2449_P5_N4 0xAA00 185 #define LTC2449_P6_N7 0xA300 186 #define LTC2449_P7_N6 0xAB00 188 #define LTC2449_P8_N9 0xA400 189 #define LTC2449_P9_N8 0xAC00 191 #define LTC2449_P10_N11 0xA500 192 #define LTC2449_P11_N10 0xAD00 194 #define LTC2449_P12_N13 0xA600 195 #define LTC2449_P13_N12 0xAE00 197 #define LTC2449_P14_N15 0xA700 198 #define LTC2449_P15_N14 0xAF00 212 #define LTC2449_OSR_64 0xA010 213 #define LTC2449_OSR_128 0xA020 214 #define LTC2449_OSR_256 0xA030 215 #define LTC2449_OSR_512 0xA040 216 #define LTC2449_OSR_1024 0xA050 217 #define LTC2449_OSR_2048 0xA060 218 #define LTC2449_OSR_4096 0xA070 219 #define LTC2449_OSR_8192 0xA080 220 #define LTC2449_OSR_16384 0xA090 221 #define LTC2449_OSR_32768 0xA0F0 227 uint16_t miso_timeout
static uint8_t adc_command
float LTC2449_code_to_voltage(int32_t adc_code, float LTC2449_lsb, int32_t LTC2449_offset_code)
Calculates the voltage corresponding to an adc code, given lsb weight (in volts) and the calibrated A...
void LTC2449_cal_voltage(int32_t zero_code, int32_t fs_code, float zero_voltage, float fs_voltage, float *LTC2449_lsb, int32_t *LTC2449_offset_code)
Calculate the lsb weight and offset code given a full-scale code and a measured zero-code.
int8_t LTC2449_EOC_timeout(uint8_t cs, uint16_t miso_timeout)
Checks for EOC with a specified timeout.
void LTC2449_read(uint8_t cs, uint16_t adc_command, uint32_t *adc_code)
Reads from LTC2449.
static float LTC2449_lsb
The LTC2449 ideal reference voltage.
static int32_t LTC2449_offset_code
Ideal offset for a perfect part.