![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2605: Octal 16-/14-/12-Bit Rail-to Rail DACs in 16-Lead SSOP. More...
Library for LTC2605: Octal 16-/14-/12-Bit Rail-to Rail DACs in 16-Lead SSOP.
Definition in file LTC2605.cpp.
Go to the source code of this file.
Functions | |
int8_t | LTC2605_write (uint8_t i2c_address, uint8_t dac_command, uint8_t dac_address, uint16_t dac_code) |
Write a 16-bit dac_code to the LTC2605. More... | |
uint16_t | LTC2605_voltage_to_code (float dac_voltage, float LTC2605_lsb, int16_t LTC2605_offset) |
Calculate a LTC2605 DAC code given the desired output voltage. More... | |
float | LTC2605_code_to_voltage (uint16_t dac_code, float LTC2605_lsb, int16_t LTC2605_offset) |
Calculate the LTC2605 DAC output voltage given the DAC code, offset, and LSB value. More... | |
float LTC2605_code_to_voltage | ( | uint16_t | dac_code, |
float | LTC2605_lsb, | ||
int16_t | LTC2605_offset | ||
) |
Calculate the LTC2605 DAC output voltage given the DAC code, offset, and LSB value.
dac_code | DAC code |
LTC2605_lsb | LSB value |
LTC2605_offset | Offset |
Definition at line 98 of file LTC2605.cpp.
uint16_t LTC2605_voltage_to_code | ( | float | dac_voltage, |
float | LTC2605_lsb, | ||
int16_t | LTC2605_offset | ||
) |
Calculate a LTC2605 DAC code given the desired output voltage.
dac_voltage | Voltage to send to DAC |
LTC2605_lsb | LSB value |
LTC2605_offset | Offset |
Definition at line 85 of file LTC2605.cpp.
int8_t LTC2605_write | ( | uint8_t | i2c_address, |
uint8_t | dac_command, | ||
uint8_t | dac_address, | ||
uint16_t | dac_code | ||
) |
Write a 16-bit dac_code to the LTC2605.
i2c_address | I2C address of DAC |
dac_command | Command Nibble, left-justified, lower nibble set to zero |
dac_address | DAC Address Nibble, right justified, upper nibble set to zero |
dac_code | 16-bit DAC code |
Definition at line 76 of file LTC2605.cpp.