79 #define LTC1592_CS QUIKEVAL_CS 84 #define LTC1592_COPY_SREG_TO_BUF1 0x00 85 #define LTC1592_COPY_BUF1_TO_BUF2 0x10 86 #define LTC1592_COPY_SREG_TO_BUF1_BUF2 0x20 87 #define LTC1592_RANGE_0_TO_5V 0x80 88 #define LTC1592_RANGE_0_TO_10V 0x90 89 #define LTC1592_RANGE_PLUS_MINUS_5V 0xA0 90 #define LTC1592_RANGE_PLUS_MINUS_10V 0xB0 91 #define LTC1592_RANGE_PLUS_MINUS_2_5V 0xC0 92 #define LTC1592_RANGE_MINUS_2_5V_TO_PLUS_7_5V 0xD0 Header File for Linduino Libraries and Demo Code.
float LTC1592_code_to_voltage(uint16_t data, float RANGE_HIGH, float RANGE_LOW)
Calculates the voltage from ADC output data depending on the channel configuration.
union LT_union_int32_4bytes data
uint16_t LTC1592_voltage_to_code(float voltage, float RANGE_HIGH, float RANGE_LOW)
Calculates the 16 bit data code from voltage.
void LTC1592_write(uint8_t cs, uint8_t dac_command, uint16_t data)
Transmits 24 bit input stream: 4-bit command + 4-bit don't-care + 16-bit data.