74 #define LTC2642_CS QUIKEVAL_CS float LTC2642_code_to_voltage(uint16_t data, float reference_voltage, uint8_t range)
Calculates the output voltage from the given digital code and reference voltage.
union LT_union_int32_4bytes data
void LTC2642_write(uint8_t cs, uint16_t data)
Writes the 16-bit data into the DAC.
static float reference_voltage
The reference voltage range, set to 5v through JP2 and JP3 by default.
uint16_t LTC2642_voltage_to_code(float voltage, float reference_voltage, uint8_t range)
Calculates the 16 bit data code from voltage.