90 #define LTC2752_CS QUIKEVAL_CS 94 #define ADDRESS_DACA 0x00 95 #define ADDRESS_DACB 0x02 96 #define ADDRESS_DAC_ALL 0x0E 101 #define LTC2752_WRITE_SPAN_DAC 0x20 102 #define LTC2752_WRITE_CODE_DAC 0x30
103 #define LTC2752_UPDATE_DAC 0x40
104 #define LTC2752_UPDATE_ALL 0x50
105 #define LTC2752_WRITE_SPAN_UPDATE_DAC 0x60
106 #define LTC2752_WRITE_CODE_UPDATE_DAC 0x70
108 #define LTC2752_WRITE_SPAN_UPDATE_ALL 0x80 109 #define LTC2752_WRITE_CODE_UPDATE_ALL 0x90
110 #define LTC2752_READ_INPUT_SPAN_REG 0xA0
111 #define LTC2752_READ_INPUT_CODE_REG 0xB0
112 #define LTC2752_READ_DAC_SPAN_REG 0xC0
113 #define LTC2752_READ_DAC_CODE_REG 0xD0
114 #define LTC2752_PREVIOUS_CMD 0xF0
119 void LTC2752_write(uint8_t cs, uint8_t dac_command, uint8_t dac_address, uint16_t
data);
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...
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...
union LT_union_int32_4bytes data
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.