Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2315: 12/14-Bit 1Msps ADC. More...

Detailed Description

Library for LTC2315: 12/14-Bit 1Msps ADC.

Definition in file LTC2315.cpp.

Go to the source code of this file.

Functions

void LTC2315_read (uint8_t cs, uint16_t *adc_code)
 Reads the LTC2315 and returns 32-bit data in offset binary format. More...
 
float LTC2315_code_to_voltage (uint16_t adc_code, uint8_t shift, float vref)
 Calculates the LTC2315 input voltage given the binary data and lsb weight. More...
 

Function Documentation

◆ LTC2315_code_to_voltage()

float LTC2315_code_to_voltage ( uint16_t  adc_code,
uint8_t  shift,
float  vref 
)

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

Returns
Floating point voltage
Parameters
adc_codeRaw ADC code
vrefReference voltage

Definition at line 98 of file LTC2315.cpp.

◆ LTC2315_read()

void LTC2315_read ( uint8_t  cs,
uint16_t *  ptr_adc_code 
)

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

Returns
void
Parameters
csChip Select Pin
adc_codeReturns code read from ADC (from previous conversion)

Definition at line 89 of file LTC2315.cpp.