| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions
LTC2440.cpp File Reference
Analog-to-Digital Converters (ADC) » LTC2440: 24-Bit, Differential Delta Sigma ADCs with Selectable Speed/Resolution

Library for LTC2440: 24-Bit, Differential Delta Sigma ADCs with Selectable Speed/Resolution. More...

## Detailed Description

Library for LTC2440: 24-Bit, Differential Delta Sigma ADCs with Selectable Speed/Resolution.

Definition in file LTC2440.cpp.

Go to the source code of this file.

## Functions
int8_t | LTC2440_EOC_timeout (uint8_t cs, uint16_t miso_timeout)
| Checks for EOC with a specified timeout. More...
void | LTC2440_read (uint8_t cs, uint8_t adc_command, int32_t *adc_code)
| Reads from LTC2440. More...
float | LTC2440_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

## ◆ LTC2440_code_to_voltage()

float LTC2440_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 92 of file LTC2440.cpp.

## ◆ LTC2440_EOC_timeout()

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

Checks for EOC with a specified timeout.

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

Parameters

  cs | Chip Select pin
  miso_timeout | Timeout (in milliseconds)

Definition at line 80 of file LTC2440.cpp.

## ◆ LTC2440_read()

void LTC2440_read | ( | uint8_t | cs,
|  | uint8_t | adc_command,
|  | int32_t * | adc_code
| ) |  |

Reads from LTC2440.

Parameters

  cs | Chip select
  adc_command | 1 byte command written to LTC2440
  adc_code | 4 byte conversion code read from LTC2440

Definition at line 86 of file LTC2440.cpp.