Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2460: 24-Bit, 16-Channel Delta Sigma ADCs with Selectable Speed/Resolution. More...

Detailed Description

Library for LTC2460: 24-Bit, 16-Channel Delta Sigma ADCs with Selectable Speed/Resolution.

Definition in file LTC2460.cpp.

Go to the source code of this file.

Functions

void LTC2460_read (uint8_t cs, uint8_t adc_command, int32_t *adc_code)
 
float LTC2460_code_to_voltage (int32_t adc_code, float vref)
 Calculates the voltage corresponding to an adc code, given the reference (in volts) More...
 

Function Documentation

◆ LTC2460_code_to_voltage()

float LTC2460_code_to_voltage ( int32_t  adc_code,
float  vref 
)

Calculates the voltage corresponding to an adc code, given the reference (in volts)

Returns
Returns voltage calculated from ADC code.
Parameters
adc_codeCode read from adc
vrefVRef (in volts)

Definition at line 86 of file LTC2460.cpp.

◆ LTC2460_read()

void LTC2460_read ( uint8_t  cs,
uint8_t  adc_command,
int32_t *  adc_code 
)

Reads from LTC2460.

Parameters
csChip select
adc_command1 byte command written to LTC2460
adc_code4 byte conversion code read from LTC2460

Definition at line 77 of file LTC2460.cpp.