Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

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

Detailed Description

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

Definition in file LTM2893.cpp.

Go to the source code of this file.

Functions

void LTM2893_read (uint8_t cs, int32_t *ptr_adc_code)
 Reads the LTM2893 and returns 32-bit data in 2's complement format. More...
 
void LTM2893_config (uint8_t user_config)
 
float LTM2893_code_to_voltage (int32_t adc_code, float vref)
 Calculates the LTM2893 input voltage given the binary data and lsb weight. More...
 

Function Documentation

◆ LTM2893_code_to_voltage()

float LTM2893_code_to_voltage ( int32_t  adc_code,
float  vref 
)

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

Returns
Floating point voltage
Parameters
adc_codeRaw ADC code
vrefReference voltage

Definition at line 112 of file LTM2893.cpp.

◆ LTM2893_config()

void LTM2893_config ( uint8_t  user_config)

Definition at line 87 of file LTM2893.cpp.

◆ LTM2893_read()

void LTM2893_read ( uint8_t  cs,
int32_t *  ptr_adc_code 
)

Reads the LTM2893 and returns 32-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 67 of file LTM2893.cpp.