| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions
LTC2473.cpp File Reference
Analog-to-Digital Converters (ADC) » LTC2473: 16-Bit, Delta Sigma ADC with I2C interface

Library for LTC2473: 16-Bit, Delta Sigma ADC with I2C interface. More...

## Detailed Description

Library for LTC2473: 16-Bit, Delta Sigma ADC with I2C interface.

Definition in file LTC2473.cpp.

Go to the source code of this file.

## Functions
uint8_t | LTC2473_read (uint8_t i2c_address, int32_t *adc_code, uint16_t timeout)
| Reads from LTC2473. More...
uint8_t | LTC2473_write (uint8_t i2c_address, uint8_t adc_command)
| Writes to the LTC2473. More...
float | LTC2473_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

## ◆ LTC2473_code_to_voltage()

float LTC2473_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 94 of file LTC2473.cpp.

## ◆ LTC2473_read()

uint8_t LTC2473_read | ( | uint8_t | i2c_address,
|  | int32_t * | adc_code,
|  | uint16_t | timeout
| ) |  |

Reads from LTC2473.

Returns
  1 if no acknowledge, 0 if acknowledge

Parameters

  i2c_address | I2C address (7-bit format) for part
  adc_code | 2 byte conversion code read from LTC2473
  timeout | The timeout in (microseconds)

Definition at line 77 of file LTC2473.cpp.

## ◆ LTC2473_write()

uint8_t LTC2473_write | ( | uint8_t | i2c_address,
|  | uint8_t | adc_command
| ) |  |

Writes to the LTC2473.

Returns
  1 if no acknowledge, 0 if acknowledge

Parameters

  i2c_address | I2C address (7-bit format) for part
  adc_command | Command byte written to LTC2473

Definition at line 85 of file LTC2473.cpp.