Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2480: 16-Bit Delta-Sigma ADC with Easy Drive Input Current Cancellation. More...

Detailed Description

Library for LTC2480: 16-Bit Delta-Sigma ADC with Easy Drive Input Current Cancellation.

Definition in file LTC2480.cpp.

Go to the source code of this file.

Functions

void LTC2480_set_modes (uint8_t cs, uint8_t gain_selection, uint8_t rejection_mode)
 Function to set the input voltage gain and frequency rejection mode. More...
 
void LTC2480_read (uint8_t cs, uint32_t *ptr_adc_code)
 Reads the LTC2480 and returns 24-bit data. More...
 
float LTC2480_code_to_voltage (uint32_t adc_code, float vref, uint8_t gain)
 Calculates the LTC2480 input voltage given the binary data, reference voltage and input gain. More...
 

Function Documentation

◆ LTC2480_code_to_voltage()

float LTC2480_code_to_voltage ( uint32_t  adc_code,
float  vref,
uint8_t  gain 
)

Calculates the LTC2480 input voltage given the binary data, reference voltage and input gain.

Returns
Floating point voltage
Parameters
adc_codeRaw ADC code
vrefReference voltage
gainInput voltage gain

Definition at line 90 of file LTC2480.cpp.

◆ LTC2480_read()

void LTC2480_read ( uint8_t  cs,
uint32_t *  ptr_adc_code 
)

Reads the LTC2480 and returns 24-bit data.

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

Definition at line 78 of file LTC2480.cpp.

◆ LTC2480_set_modes()

void LTC2480_set_modes ( uint8_t  cs,
uint8_t  gain,
uint8_t  rejection_mode 
)

Function to set the input voltage gain and frequency rejection mode.

Returns
void Frequency rejection mode
Parameters
csChip Select Pin
gain_selectionInput voltage gain

Definition at line 69 of file LTC2480.cpp.