| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

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

Library for LTC2482: 16-Bit Delta-Sigma ADC with Easy Drive Input Current Cancellation. More...

## Detailed Description

Library for LTC2482: 16-Bit Delta-Sigma ADC with Easy Drive Input Current Cancellation.

Definition in file LTC2482.cpp.

Go to the source code of this file.

## Functions
void | LTC2482_read (uint8_t cs, uint32_t *ptr_adc_code)
| Reads the LTC2482 and returns 24-bit data. More...
float | LTC2482_code_to_voltage (uint32_t adc_code, float vref)
| Calculates the LTC2482 input voltage given the binary data, reference voltage and input gain. More...

## Function Documentation

## ◆ LTC2482_code_to_voltage()

float LTC2482_code_to_voltage | ( | uint32_t | adc_code,
|  | float | vref
| ) |  |

Calculates the LTC2482 input voltage given the binary data, reference voltage and input gain.

Returns
  Floating point voltage

Parameters

  adc_code | Raw ADC code
  vref | Reference voltage

Definition at line 84 of file LTC2482.cpp.

## ◆ LTC2482_read()

void LTC2482_read | ( | uint8_t | cs,
|  | uint32_t * | ptr_adc_code
| ) |  |

Reads the LTC2482 and returns 24-bit data.

Returns
  void

Parameters

  cs | Chip Select Pin
  ptr_adc_code | Returns code read from ADC (from previous conversion)

Definition at line 72 of file LTC2482.cpp.