| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions
LTC2412.cpp File Reference
Analog-to-Digital Converters (ADC) » LTC2412: 2-Channel Differential Input 24-Bit No Latency Delta Sigma ADC

Library for LTC2412: 2-Channel Differential Input 24-Bit No Latency Delta Sigma ADC. More...

## Detailed Description

Library for LTC2412: 2-Channel Differential Input 24-Bit No Latency Delta Sigma ADC.

Definition in file LTC2412.cpp.

Go to the source code of this file.

## Functions
int8_t | LTC2412_EOC_timeout (uint8_t cs, uint16_t miso_timeout)
| Checks for EOC with a specified timeout. More...
void | LTC2412_read (uint8_t cs, uint32_t *adc_code)
| Reads the LTC2412 result. More...
float | LTC2412_code_to_voltage (int32_t adc_code, float LTC2412_lsb, int32_t LTC2412_offset_code)
| Calculates the LTC2412 input voltage. More...

## Function Documentation

## ◆ LTC2412_code_to_voltage()

float LTC2412_code_to_voltage | ( | int32_t | adc_code,
|  | float | LTC2412_lsb,
|  | int32_t | LTC2412_offset_code
| ) |  |

Calculates the LTC2412 input voltage.

Returns
  Calculated voltage

Parameters

  adc_code | Raw ADC code
  LTC2412_lsb | LSB value (volts)
  LTC2412_offset_code | Offset (Code)

Definition at line 113 of file LTC2412.cpp.

## ◆ LTC2412_EOC_timeout()

int8_t LTC2412_EOC_timeout | ( | uint8_t | cs,
|  | uint16_t | miso_timeout
| ) |  |

Checks for EOC with a specified timeout.

Returns
  0=successful, 1=unsuccessful (exceeded timeout)

Parameters

  cs | Chip Select pin
  miso_timeout | Timeout (ms)

Definition at line 79 of file LTC2412.cpp.

## ◆ LTC2412_read()

void LTC2412_read | ( | uint8_t | cs,
|  | uint32_t * | adc_code
| ) |  |

Reads the LTC2412 result.

Returns
  void

Parameters

  cs | Chip Select pin
  adc_code | Returns raw 32-bit code read from ADC

Definition at line 98 of file LTC2412.cpp.