138 #define LTC2756_CS QUIKEVAL_CS 145 #define LTC2756_WRITE_SPAN 0x20 146 #define LTC2756_WRITE_CODE 0x30 147 #define LTC2756_UPDATE 0x40 148 #define LTC2756_WRITE_SPAN_UPDATE 0x60 149 #define LTC2756_WRITE_CODE_UPDATE 0x70 150 #define LTC2756_READ_INPUTE_SPAN_REG 0xA0 151 #define LTC2756_READ_INPUT_CODE_REG 0xB0 152 #define LTC2756_READ_DAC_SPAN_REG 0xC0 153 #define LTC2756_READ_DAC_CODE_REG 0xD0 158 #define LTC2756_UNIPOLAR_0_P5 0x00 159 #define LTC2756_UNIPOLAR_0_P10 0x01 160 #define LTC2756_BIPOLAR_N5_P5 0x02 161 #define LTC2756_BIPOLAR_N10_P10 0x03 162 #define LTC2756_BIPOLAR_N2_5_P2_5 0x04 163 #define LTC2756_BIPOLAR_N2_5_P7_5 0x05 void LTC2756_transfer_4bytes(uint8_t cs, uint8_t *tx, uint8_t *rx)
Transfers four bytes to the LTC2756.
uint32_t LTC2756_voltage_to_code(float dac_voltage, float LTC2756_lsb, int32_t LTC2756_offset)
Converts voltage to code.
static int32_t LTC2756_offset
void LTC2756_calibrate(uint32_t zero_code, uint32_t fs_code, float zero_voltage, float fs_voltage, float *LTC2756_lsb, int32_t *LTC2756_offset)
Calculate the LTC2756 offset and LSB voltage given two measured voltages and their corresponding code...