116 #define LTC2607_I2C_ADDRESS 0x10 // LOW LOW LOW 145 #define LTC2607_I2C_GLOBAL_ADDRESS 0x73 // Global Address 151 #define LTC2607_WRITE_COMMAND 0x00 152 #define LTC2607_UPDATE_COMMAND 0x10
153 #define LTC2607_WRITE_UPDATE_COMMAND 0x30
154 #define LTC2607_POWER_DOWN_COMMAND 0x40
161 #define LTC2607_DAC_A 0x00 162 #define LTC2607_DAC_B 0x01
163 #define LTC2607_ALL_DACS 0x0F
static int32_t LTC2607_offset[3]
The LTC2422 offset variable.
void LTC2607_calibrate(uint16_t dac_code1, uint16_t dac_code2, float voltage1, float voltage2, float *LTC2607_lsb, int32_t *LTC2607_offset)
Calculates the LTC2607 offset and lsb voltage given two measured voltages and their corresponding DAC...
const float LTC2607_TYPICAL_OFFSET
The LTC2607 typical offset voltage.
static float LTC2607_lsb[3]
The LTC2607 least significant bit value with 5V full-scale.
const float LTC2607_TYPICAL_lsb
The LTC2607 typical least significant bit value with 5V full-scale.
uint16_t LTC2607_voltage_to_code(float dac_voltage, float LTC2607_lsb, int32_t LTC2607_offset)
Calculates an LTC2607 DAC code for the desired output voltage.
int8_t LTC2607_write(uint8_t i2c_address, uint8_t dac_command, uint8_t dac_address, uint16_t dac_code)
Writes command, DAC address, and DAC code to the LTC2607.