Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2383: 16-Bit 1Msps ADC. More...

Detailed Description

Library for LTC2383: 16-Bit 1Msps ADC.

Definition in file LTC2383.cpp.

Go to the source code of this file.

Functions

void LTC2383_read (uint8_t cs, uint16_t *ptr_adc_code)
 Reads the LTC2383 and returns 16-bit data in 2's complement format. More...
 
float LTC2383_code_to_voltage (int16_t adc_code, float vref)
 Calculates the LTC2383 input voltage given the binary data and lsb weight. More...
 

Function Documentation

◆ LTC2383_code_to_voltage()

float LTC2383_code_to_voltage ( int16_t  adc_code,
float  vref 
)

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

Returns
Floating point voltage
Parameters
adc_codeRaw ADC code
vrefReference voltage

Definition at line 97 of file LTC2383.cpp.

◆ LTC2383_read()

void LTC2383_read ( uint8_t  cs,
uint16_t *  ptr_adc_code 
)

Reads the LTC2383 and returns 16-bit data in 2's complement format.

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

Definition at line 77 of file LTC2383.cpp.