![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2309: 8-channel, 12-Bit SAR ADC with I2C interface. More...
Library for LTC2309: 8-channel, 12-Bit SAR ADC with I2C interface.
Definition in file LTC2309.cpp.
Go to the source code of this file.
Functions | |
| int8_t | LTC2309_read (uint8_t i2c_address, uint8_t adc_command, uint16_t *ptr_adc_code) |
| Reads 12-bit code from LTC2309, programs channel and mode for next conversion. More... | |
| float | LTC2309_code_to_voltage (uint16_t adc_code, float vref, uint8_t uni_bipolar) |
| Calculates the LTC2309 input voltage. More... | |
| float LTC2309_code_to_voltage | ( | uint16_t | adc_code, |
| float | LTC2309_vref, | ||
| uint8_t | uni_bipolar | ||
| ) |
Calculates the LTC2309 input voltage.
| adc_code | Code read from ADC |
| vref | LSB value (volts) |
Definition at line 106 of file LTC2309.cpp.
| int8_t LTC2309_read | ( | uint8_t | i2c_address, |
| uint8_t | adc_command, | ||
| uint16_t * | ptr_adc_code | ||
| ) |
Reads 12-bit code from LTC2309, programs channel and mode for next conversion.
| i2c_address | I2C address of device |
| adc_command | ADC command / address bits |
| ptr_adc_code | Returns code read from ADC |
Definition at line 89 of file LTC2309.cpp.