Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2499: 24-Bit, 16-Channel Delta Sigma ADCs with Easy Drive Input Current Cancellation. More...

Detailed Description

Library for LTC2499: 24-Bit, 16-Channel Delta Sigma ADCs with Easy Drive Input Current Cancellation.

Definition in file LTC2499.cpp.

Go to the source code of this file.

Functions

uint8_t LTC2499_read (uint8_t i2c_address, uint8_t adc_command_high, uint8_t adc_command_low, int32_t *adc_code, uint16_t timeout)
 Reads from LTC2499. More...
 
float LTC2499_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

◆ LTC2499_code_to_voltage()

float LTC2499_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 87 of file LTC2499.cpp.

◆ LTC2499_read()

uint8_t LTC2499_read ( uint8_t  i2c_address,
uint8_t  adc_command_high,
uint8_t  adc_command_low,
int32_t *  adc_code,
uint16_t  timeout 
)

Reads from LTC2499.

Returns
1 if no acknowledge, 0 if acknowledge
Parameters
i2c_addressI2C address (7-bit format) for part
adc_command_highHigh byte command written to LTC2499
adc_command_lowLow byte command written to LTC2499
adc_code4 byte conversion code read from LTC2499
timeoutTimeout in ms

Definition at line 80 of file LTC2499.cpp.