![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2496 LTC2496: 16-Bit 8-/16-Channel Delta Sigma ADC with Easy Drive Input Current Cancellation. More...
Library for LTC2496 LTC2496: 16-Bit 8-/16-Channel Delta Sigma ADC with Easy Drive Input Current Cancellation.
Definition in file LTC2496.cpp.
Go to the source code of this file.
Functions | |
int8_t | LTC2496_EOC_timeout (uint8_t cs, uint16_t miso_timeout) |
Checks for EOC with a specified timeout. More... | |
void | LTC2496_read (uint8_t cs, uint8_t adc_command, int32_t *adc_code) |
Read LTC2496 result, program configuration for next conversion. More... | |
float | LTC2496_code_to_voltage (int32_t adc_code, float vref) |
Calculates the LTC2496 input voltage. More... | |
float LTC2496_code_to_voltage | ( | int32_t | adc_code, |
float | vref | ||
) |
Calculates the LTC2496 input voltage.
adc_code | Raw ADC code |
vref | the reference voltage to the ADC |
Definition at line 93 of file LTC2496.cpp.
int8_t LTC2496_EOC_timeout | ( | uint8_t | cs, |
uint16_t | miso_timeout | ||
) |
Checks for EOC with a specified timeout.
cs | Chip Select pin |
miso_timeout | Timeout (in millisends) |
Definition at line 79 of file LTC2496.cpp.
void LTC2496_read | ( | uint8_t | cs, |
uint8_t | adc_command, | ||
int32_t * | adc_code | ||
) |
Read LTC2496 result, program configuration for next conversion.
cs | Chip Select pin |
adc_command | Command byte |
adc_code | Returns raw 32-bit code read from ADC |
Definition at line 86 of file LTC2496.cpp.