![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2380: 16/18/20-Bit 1Msps ADC. More...
Library for LTC2380: 16/18/20-Bit 1Msps ADC.
Definition in file LTC2380.cpp.
Go to the source code of this file.
Functions | |
| void | LTC2380_read (uint8_t cs, int32_t *ptr_adc_code) |
| Reads the LTC2380 and returns 32-bit data in 2's complement format. More... | |
| float | LTC2380_code_to_voltage (int32_t adc_code, uint8_t gain_compression, float vref) |
| Calculates the LTC2380 input voltage given the binary data and lsb weight. More... | |
| float LTC2380_code_to_voltage | ( | int32_t | adc_code, |
| uint8_t | gain_compression, | ||
| float | vref | ||
| ) |
Calculates the LTC2380 input voltage given the binary data and lsb weight.
| adc_code | Raw ADC code |
| vref | Reference voltage |
Definition at line 136 of file LTC2380.cpp.
| void LTC2380_read | ( | uint8_t | cs, |
| int32_t * | ptr_adc_code | ||
| ) |
Reads the LTC2380 and returns 32-bit data in 2's complement format.
| cs | Chip Select Pin |
| ptr_adc_code | Returns code read from ADC (from previous conversion) |
Definition at line 114 of file LTC2380.cpp.