72 #define LTC2970_I2C_GLOBAL_ADDRESS 0x5B 73 #define LTC2970_I2C_ARA_ADDRESS 0x0C 79 #define LTC2970_FAULT 0x00 83 #define LTC2970_FAULT_EN 0x08 85 #define LTC2970_FAULT_LA_INDEX 0x10 86 #define LTC2970_FAULT_LA 0x11 90 #define LTC2970_IO 0x17 91 #define LTC2970_ADC_MON 0x18 95 #define LTC2970_1_SYNC 0x1F 99 #define LTC2970_VDD_ADC 0x28 100 #define LTC2970_VDD_OV 0x29 101 #define LTC2970_VDD_UV 0x2A 105 #define LTC2970_V12_ADC 0x38 106 #define LTC2970_V12_OV 0x39 107 #define LTC2970_V12_UV 0x3A 111 #define LTC2970_CH0_A_ADC 0x40 112 #define LTC2970_CH0_A_OV 0x41 113 #define LTC2970_CH0_A_UV 0x42 114 #define LTC2970_CH0_A_SERVO 0x43 115 #define LTC2970_CH0_A_IDAC 0x44 116 #define LTC2970_1_CH0_A_IDAC_TRACK 0x45 117 #define LTC2970_1_CH0_A_DELAY_TRACK 0x46 119 #define LTC2970_CH0_B_ADC 0x48 120 #define LTC2970_CH0_B_OV 0x49 121 #define LTC2970_CH0_B_UV 0x4A 125 #define LTC2970_CH1_A_ADC 0x50 126 #define LTC2970_CH1_A_OV 0x51 127 #define LTC2970_CH1_A_UV 0x52 128 #define LTC2970_CH1_A_SERVO 0x53 129 #define LTC2970_CH1_A_IDAC 0x54 130 #define LTC2970_1_CH1_A_IDAC_TRACK 0x55 131 #define LTC2970_1_CH1_A_DELAY_TRACK 0x56 135 #define LTC2970_CH1_B_ADC 0x58 136 #define LTC2970_CH1_B_OV 0x59 137 #define LTC2970_CH1_B_UV 0x5A 141 #define LTC2970_TEMP_ADC 0x68 void ltc2970_read_faults(LT_SMBus *smbus, uint8_t ltc2970_i2c_address)
Read FAULT, FAULT_LA, and FAULT_LA_INDEX registers print the results.
void ltc2970_print_die_temp(LT_SMBus *smbus, uint8_t ltc2970_i2c_address)
Prints die temperature on the LTC2970.
void ltc2970_servo_to_adc_val(LT_SMBus *smbus, uint8_t ltc2970_i2c_address, int channel_number, uint16_t code)
Servo once to a given ADC value.
int ltc2970_soft_connect_dac(LT_SMBus *smbus, uint8_t ltc2970_i2c_address, int dac_number)
soft-connect DACn to its controlled node
void ltc2970_hard_connect_dac(LT_SMBus *smbus, uint8_t ltc2970_i2c_address, int dac_number, uint8_t dac_value_8)
Unceremoniously connect DAC0 to the control node no attempt to equalize voltages. ...
static uint8_t ltc2970_i2c_address
void ltc2970_gpio_up(LT_SMBus *smbus, uint8_t ltc2970_i2c_address, int gpio_number)
Set GPIO_n high.
void ltc2970_dac_disconnect(LT_SMBus *smbus, uint8_t ltc2970_i2c_address, int dac_number)
Disconnect a DAC from its channel.
void ltc2970_gpio_down(LT_SMBus *smbus, uint8_t ltc2970_i2c_address, int gpio_number)
Set GPIO_n low.
LTC SMBus Support: Implementation for a shared SMBus layer.