![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2366: 12-Bit 3Msps ADC. More...
Library for LTC2366: 12-Bit 3Msps ADC.
Definition in file LTC2366.cpp.
Go to the source code of this file.
Functions | |
void | LTC2366_read (uint8_t cs, uint16_t *ptr_adc_code) |
Reads the LTC2366 and returns 32-bit data in offset binary format. More... | |
float | LTC2366_code_to_voltage (uint16_t adc_code, float vref) |
Calculates the LTC2366 input voltage given the binary data and lsb weight. More... | |
float LTC2366_code_to_voltage | ( | uint16_t | adc_code, |
float | vref | ||
) |
Calculates the LTC2366 input voltage given the binary data and lsb weight.
adc_code | Raw ADC code |
vref | Reference voltage |
Definition at line 97 of file LTC2366.cpp.
void LTC2366_read | ( | uint8_t | cs, |
uint16_t * | ptr_adc_code | ||
) |
Reads the LTC2366 and returns 32-bit data in offset binary format.
cs | Chip Select Pin |
ptr_adc_code | Returns code read from ADC (from previous conversion) |
Definition at line 85 of file LTC2366.cpp.