![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2752 Dual Serial 16-Bit SoftSpan IOUT DAC. More...
Library for LTC2752 Dual Serial 16-Bit SoftSpan IOUT DAC.
Definition in file LTC2752.cpp.
Go to the source code of this file.
Functions | |
| void | LTC2752_write (uint8_t cs, uint8_t dac_command, uint8_t dac_address, uint16_t data) |
| Transmits 24 bit input stream: 4-bit command + 4-bit don't-care + 16-bit data. More... | |
| float | LTC2752_code_to_voltage (uint16_t dac_code, float min_output, float max_output) |
| Calculate the LTC2752 DAC output voltage given the DAC code and and the minimum / maximum outputs for a given softspan range. More... | |
| uint16_t | LTC2752_voltage_to_code (float dac_voltage, float min_output, float max_output) |
| Calculate a LTC2752 DAC code given the desired output voltage and the minimum / maximum outputs for a given softspan range. More... | |
| float LTC2752_code_to_voltage | ( | uint16_t | dac_code, |
| float | min_output, | ||
| float | max_output | ||
| ) |
Calculate the LTC2752 DAC output voltage given the DAC code and and the minimum / maximum outputs for a given softspan range.
Definition at line 87 of file LTC2752.cpp.
| uint16_t LTC2752_voltage_to_code | ( | float | dac_voltage, |
| float | min_output, | ||
| float | max_output | ||
| ) |
Calculate a LTC2752 DAC code given the desired output voltage and the minimum / maximum outputs for a given softspan range.
Definition at line 96 of file LTC2752.cpp.
| void LTC2752_write | ( | uint8_t | cs, |
| uint8_t | dac_command, | ||
| uint8_t | dac_address, | ||
| uint16_t | data | ||
| ) |
Transmits 24 bit input stream: 4-bit command + 4-bit don't-care + 16-bit data.
Definition at line 77 of file LTC2752.cpp.