| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions
LTC2497.cpp File Reference
Analog-to-Digital Converters (ADC) » LTC2497: 16-Bit, 16-Channel Delta Sigma ADCs with Easy Drive Input Current Cancellation

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

## Detailed Description

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

Definition in file LTC2497.cpp.

Go to the source code of this file.

## Functions
uint8_t | LTC2497_read (uint8_t i2c_address, uint8_t adc_command, int32_t *adc_code, uint16_t timeout)
| Reads from LTC2497. More...
float | LTC2497_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

## ◆ LTC2497_code_to_voltage()

float LTC2497_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_code | Code read from ADC
  vref | VRef (in volts)

Definition at line 85 of file LTC2497.cpp.

## ◆ LTC2497_read()

uint8_t LTC2497_read | ( | uint8_t | i2c_address,
|  | uint8_t | adc_command,
|  | int32_t * | adc_code,
|  | uint16_t | timeout
| ) |  |

Reads from LTC2497.

Returns
  1 if no acknowledge, 0 if acknowledge

Parameters

  i2c_address | I2C address (7-bit format) for part
  adc_command | Byte command written to LTC2497
  adc_code | 4 byte conversion code read from LTC2497
  timeout | Timeout (in milliseconds)

Definition at line 79 of file LTC2497.cpp.