Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2496 LTC2496: 16-Bit 8-/16-Channel Delta Sigma ADC with Easy Drive Input Current Cancellation. More...

Detailed Description

Library for LTC2496 LTC2496: 16-Bit 8-/16-Channel Delta Sigma ADC with Easy Drive Input Current Cancellation.

Definition in file LTC2496.cpp.

Go to the source code of this file.

Functions

int8_t LTC2496_EOC_timeout (uint8_t cs, uint16_t miso_timeout)
 Checks for EOC with a specified timeout. More...
 
void LTC2496_read (uint8_t cs, uint8_t adc_command, int32_t *adc_code)
 Read LTC2496 result, program configuration for next conversion. More...
 
float LTC2496_code_to_voltage (int32_t adc_code, float vref)
 Calculates the LTC2496 input voltage. More...
 

Function Documentation

◆ LTC2496_code_to_voltage()

float LTC2496_code_to_voltage ( int32_t  adc_code,
float  vref 
)

Calculates the LTC2496 input voltage.

Returns
Calculated voltage
Parameters
adc_codeRaw ADC code
vrefthe reference voltage to the ADC

Definition at line 93 of file LTC2496.cpp.

◆ LTC2496_EOC_timeout()

int8_t LTC2496_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
csChip Select pin
miso_timeoutTimeout (in millisends)

Definition at line 79 of file LTC2496.cpp.

◆ LTC2496_read()

void LTC2496_read ( uint8_t  cs,
uint8_t  adc_command,
int32_t *  adc_code 
)

Read LTC2496 result, program configuration for next conversion.

Returns
void
Parameters
csChip Select pin
adc_commandCommand byte
adc_codeReturns raw 32-bit code read from ADC

Definition at line 86 of file LTC2496.cpp.