90 #define LTC2758_CS QUIKEVAL_CS 94 #define ADDRESS_DACA 0x00 95 #define ADDRESS_DACB 0x02 96 #define ADDRESS_DAC_ALL 0x0E 101 #define LTC2758_WRITE_SPAN_DAC 0x20 102 #define LTC2758_WRITE_CODE_DAC 0x30
103 #define LTC2758_UPDATE_DAC 0x40
104 #define LTC2758_UPDATE_ALL 0x50
105 #define LTC2758_WRITE_SPAN_UPDATE_DAC 0x60
106 #define LTC2758_WRITE_CODE_UPDATE_DAC 0x70
108 #define LTC2758_WRITE_SPAN_UPDATE_ALL 0x80 109 #define LTC2758_WRITE_CODE_UPDATE_ALL 0x90
110 #define LTC2758_READ_INPUT_SPAN_REG 0xA0
111 #define LTC2758_READ_INPUT_CODE_REG 0xB0
112 #define LTC2758_READ_DAC_SPAN_REG 0xC0
113 #define LTC2758_READ_DAC_CODE_REG 0xD0
114 #define LTC2758_PREVIOUS_CMD 0xF0
119 void LTC2758_write(uint8_t cs, uint8_t dac_command, uint8_t dac_address, uint32_t
data);
union LT_union_int32_4bytes data
float LTC2758_code_to_voltage(uint32_t dac_code, float min_output, float max_output)
Calculate the LTC2758 DAC output voltage given the DAC code and and the minimum / maximum outputs for...
void LTC2758_write(uint8_t cs, uint8_t dac_command, uint8_t dac_address, uint32_t data)
Transmits 32 bit input stream: 4-bit command + 4-bit don't-care + 18-bit data + 6 don't care...
uint32_t LTC2758_voltage_to_code(float dac_voltage, float min_output, float max_output)
Calculate a LTC2758 DAC code given the desired output voltage and the minimum / maximum outputs for a...