104 #define LTC2604_CS QUIKEVAL_CS 111 #define LTC2604_CMD_WRITE 0x00 112 #define LTC2604_CMD_UPDATE 0x10
113 #define LTC2604_CMD_WRITE_UPDATE_ALL 0x20
114 #define LTC2604_CMD_WRITE_UPDATE 0x30
115 #define LTC2604_CMD_POWER_DOWN 0x40
116 #define LTC2604_CMD_NO_OPERATION 0xF0
132 #define LTC2604_DAC_A 0x00 133 #define LTC2604_DAC_B 0x01 134 #define LTC2604_DAC_C 0x02 135 #define LTC2604_DAC_D 0x03 136 #define LTC2604_DAC_ALL 0x0F float LTC2604_code_to_voltage(uint16_t dac_code, float LTC2604_lsb, int16_t LTC2604_offset)
Calculate the LTC2604 DAC output voltage given the DAC code, offset, and LSB value.
static float LTC2604_lsb[4]
static int16_t LTC2604_offset
void LTC2604_write(uint8_t cs, uint8_t dac_command, uint8_t dac_address, uint16_t dac_code)
Write the 16-bit dac_code to the LTC2604.
uint16_t LTC2604_voltage_to_code(float dac_voltage, float LTC2604_lsb, int16_t LTC2604_offset)
Calculate a LTC2604 DAC code given the desired output voltage and DAC address (0-3) ...