112 #define LTC2496_CS QUIKEVAL_CS 118 #define LTC2496_DISABLE 0x80 119 #define LTC2496_ENABLE 0xA0 155 #define LTC2496_P0_N1 0x00
156 #define LTC2496_P1_N0 0x08
158 #define LTC2496_P2_N3 0x01
159 #define LTC2496_P3_N2 0x09
161 #define LTC2496_P4_N5 0x02
162 #define LTC2496_P5_N4 0x0A
164 #define LTC2496_P6_N7 0x03
165 #define LTC2496_P7_N6 0x0B
167 #define LTC2496_P8_N9 0x04
168 #define LTC2496_P9_N8 0x0C
170 #define LTC2496_P10_N11 0x05
171 #define LTC2496_P11_N10 0x0D
173 #define LTC2496_P12_N13 0x06
174 #define LTC2496_P13_N12 0x0E
176 #define LTC2496_P14_N15 0x07
177 #define LTC2496_P15_N14 0x0F
202 #define LTC2496_CH0 0x10
203 #define LTC2496_CH1 0x18
204 #define LTC2496_CH2 0x11
205 #define LTC2496_CH3 0x19
206 #define LTC2496_CH4 0x12
207 #define LTC2496_CH5 0x1A
208 #define LTC2496_CH6 0x13
209 #define LTC2496_CH7 0x1B
210 #define LTC2496_CH8 0x14
211 #define LTC2496_CH9 0x1C
212 #define LTC2496_CH10 0x15
213 #define LTC2496_CH11 0x1D
214 #define LTC2496_CH12 0x16
215 #define LTC2496_CH13 0x1E
216 #define LTC2496_CH14 0x17
217 #define LTC2496_CH15 0x1F
222 int8_t LTC2496_EOC_timeout(uint8_t cs, //!< Chip Select pin
223 uint16_t miso_timeout //!< Timeout (in millisends)
227 // Example - read channel external input with 60Hz rejection and 2X enabled.
228 // adc_command = LTC2496_ENABLE|LTC2496_P0_N1;
230 void LTC2496_read(uint8_t cs, //!< Chip Select pin
231 uint8_t adc_command, //!< Command byte
232 int32_t *adc_code //!< Returns raw 32-bit code read from ADC
238 float LTC2496_code_to_voltage(int32_t adc_code, //!< Raw ADC code
239 float vref //!< the reference voltage to the ADC