| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions
LTC2370.cpp File Reference
Analog-to-Digital Converters (ADC) » LTC2370: 16/18-Bit 1Msps ADC

Library for LTC2370: 16/18-Bit 1Msps ADC. More...

## Detailed Description

Library for LTC2370: 16/18-Bit 1Msps ADC.

Definition in file LTC2370.cpp.

Go to the source code of this file.

## Functions
void | LTC2370_read (uint8_t cs, uint32_t *ptr_adc_code)
| Reads the LTC2370 and returns 32-bit data in offset binary format. More...
float | LTC2370_code_to_voltage (uint32_t adc_code, float vref)
| Calculates the LTC2370 input voltage given the binary data and lsb weight. More...

## Function Documentation

## ◆ LTC2370_code_to_voltage()

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

Calculates the LTC2370 input voltage given the binary data and lsb weight.

Returns
  Floating point voltage

Parameters

  adc_code | Raw ADC code
  vref | Reference voltage

Definition at line 119 of file LTC2370.cpp.

## ◆ LTC2370_read()

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

Reads the LTC2370 and returns 32-bit data in offset binary format.

Returns
  void

Parameters

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

Definition at line 97 of file LTC2370.cpp.