![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2412: 2-Channel Differential Input 24-Bit No Latency Delta Sigma ADC. More...
Library for LTC2412: 2-Channel Differential Input 24-Bit No Latency Delta Sigma ADC.
Definition in file LTC2412.cpp.
Go to the source code of this file.
Functions | |
int8_t | LTC2412_EOC_timeout (uint8_t cs, uint16_t miso_timeout) |
Checks for EOC with a specified timeout. More... | |
void | LTC2412_read (uint8_t cs, uint32_t *adc_code) |
Reads the LTC2412 result. More... | |
float | LTC2412_code_to_voltage (int32_t adc_code, float LTC2412_lsb, int32_t LTC2412_offset_code) |
Calculates the LTC2412 input voltage. More... | |
float LTC2412_code_to_voltage | ( | int32_t | adc_code, |
float | LTC2412_lsb, | ||
int32_t | LTC2412_offset_code | ||
) |
Calculates the LTC2412 input voltage.
adc_code | Raw ADC code |
LTC2412_lsb | LSB value (volts) |
LTC2412_offset_code | Offset (Code) |
Definition at line 113 of file LTC2412.cpp.
int8_t LTC2412_EOC_timeout | ( | uint8_t | cs, |
uint16_t | miso_timeout | ||
) |
Checks for EOC with a specified timeout.
cs | Chip Select pin |
miso_timeout | Timeout (ms) |
Definition at line 79 of file LTC2412.cpp.
void LTC2412_read | ( | uint8_t | cs, |
uint32_t * | adc_code | ||
) |
Reads the LTC2412 result.
cs | Chip Select pin |
adc_code | Returns raw 32-bit code read from ADC |
Definition at line 98 of file LTC2412.cpp.