Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2380-24: Low Noise, High Speed, 24-Bit SAR ADC With Digital Filter. More...

Detailed Description

Library for LTC2380-24: Low Noise, High Speed, 24-Bit SAR ADC With Digital Filter.

Definition in file LTC2380_24.cpp.

Go to the source code of this file.

Functions

void LTC2380_read (int32_t *ptr_adc_code, int16_t *ptr_cycles)
 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...
 

Function Documentation

◆ LTC2380_code_to_voltage()

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.

Returns
Floating point voltage
Parameters
adc_codeRaw ADC code
vrefReference voltage

Definition at line 109 of file LTC2380_24.cpp.

◆ LTC2380_read()

void LTC2380_read ( int32_t *  ptr_adc_code,
int16_t *  ptr_cycles 
)

Reads the LTC2380 and returns 32-bit data in 2's complement format.

Returns
void
Parameters
ptr_adc_codeReturns code read from ADC (from previous conversion)

Definition at line 65 of file LTC2380_24.cpp.