104 #define LTC2600_CS QUIKEVAL_CS 111 #define LTC2600_CMD_WRITE 0x00 112 #define LTC2600_CMD_UPDATE 0x10
113 #define LTC2600_CMD_WRITE_UPDATE_ALL 0x20
114 #define LTC2600_CMD_WRITE_UPDATE 0x30
115 #define LTC2600_CMD_POWER_DOWN 0x40
116 #define LTC2600_CMD_NO_OPERATION 0xF0
136 #define LTC2600_DAC_A 0x00 137 #define LTC2600_DAC_B 0x01 138 #define LTC2600_DAC_C 0x02 139 #define LTC2600_DAC_D 0x03 140 #define LTC2600_DAC_E 0x04 141 #define LTC2600_DAC_F 0x05 142 #define LTC2600_DAC_G 0x06 143 #define LTC2600_DAC_H 0x07 144 #define LTC2600_DAC_ALL 0x0F void LTC2600_write(uint8_t cs, uint8_t dac_command, uint8_t dac_address, uint16_t dac_code)
Write the 16-bit dac_code to the LTC2600.
static int16_t LTC2600_offset
float LTC2600_code_to_voltage(uint16_t dac_code, float LTC2600_lsb, int16_t LTC2600_offset)
Calculate the LTC2600 DAC output voltage given the DAC code, offset, and LSB value.
uint16_t LTC2600_voltage_to_code(float dac_voltage, float LTC2600_lsb, int16_t LTC2600_offset)
Calculate a LTC2600 DAC code given the desired output voltage and DAC address (0-3) ...