Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2485: 24-Bit Delta Sigma ADC with Easy Drive Input Current Cancellation and I2C Interface. More...

Detailed Description

Library for LTC2485: 24-Bit Delta Sigma ADC with Easy Drive Input Current Cancellation and I2C Interface.

Definition in file LTC2485.cpp.

Go to the source code of this file.

Functions

int8_t LTC2485_read (uint8_t i2c_address, uint8_t adc_command, int32_t *adc_code, uint16_t eoc_timeout)
 Reads from LTC2485 ADC that accepts an 8 bit configuration and returns a 24 bit result. More...
 

Function Documentation

◆ LTC2485_read()

int8_t LTC2485_read ( uint8_t  i2c_address,
uint8_t  adc_command,
int32_t *  adc_code,
uint16_t  eoc_timeout 
)

Reads from LTC2485 ADC that accepts an 8 bit configuration and returns a 24 bit result.

Returns
Returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.
Parameters
i2c_addressI2C address (7-bit format) for part
adc_commandCommand byte written to LTC2485. Example: (LTC2485_R60 | LTC2485_SPEED_2X)
adc_codeConversion code read from LTC2485. The LTC2485's 32-bit code is converted to 24-bits inside this function.
eoc_timeoutTimeout in ms

Definition at line 70 of file LTC2485.cpp.