99 #define LTC4215_I2C_ADDRESS 0x55 //ADDR2 = H, ADDR1 = H, ADDR0 = H 100 #define LTC4215_I2C_ALERT_RESPONSE 0x0C 101 #define LTC4215_I2C_MASS_WRITE 0x5F 107 #define LTC4215_CONTROL_REG 0x00 108 #define LTC4215_ALERT_REG 0x01 109 #define LTC4215_STATUS_REG 0x02 110 #define LTC4215_FAULT_REG 0x03 111 #define LTC4215_SENSE_REG 0x04 112 #define LTC4215_SOURCE_REG 0x05 113 #define LTC4215_ADIN_REG 0x06 119 #define LTC4215_FET_SHORT_FAULT 0x20 120 #define LTC4215_EN_STATE_CHANGE 0x10 121 #define LTC4215_POWER_BAD_FAULT 0x08 122 #define LTC4215_OVERCURRENT_FAULT 0x04 123 #define LTC4215_UNDERVOLTAGE_FAULT 0x02 124 #define LTC4215_OVERVOLTAGE_FAULT 0x01 130 #define LTC4215_GPIO_OUTPUT_ENABLE 0x40 131 #define LTC4215_GPIO_OUTPUT_DISABLE 0xBF 132 #define LTC4215_FET_SHORT_ENABLE 0x20 133 #define LTC4215_FET_SHORT_DISABLE 0xDF 134 #define LTC4215_EN_STATE_ENABLE 0x10 135 #define LTC4215_EN_STATE_DISABLE 0xEF 136 #define LTC4215_POWER_BAD_ENABLE 0x08 137 #define LTC4215_POWER_BAD_DISABLE 0xF7 138 #define LTC4215_OVERCURRENT_ENABLE 0x04 139 #define LTC4215_OVERCURRENT_DISABLE 0xFB 140 #define LTC4215_UNDERVOLTAGE_ENABLE 0x02 141 #define LTC4215_UNDERVOLTAGE_DISABLE 0xFD 142 #define LTC4215_OVERVOLTAGE_ENABLE 0x01 143 #define LTC4215_OVERVOLTAGE_DISABLE 0xFE 149 #define LTC4215_PGIO_POWER_GOODX 0x00 150 #define LTC4215_PGIO_POWER_GOOD 0x80 151 #define LTC4215_PGIO_GENERAL_PURPOSE_OUTPUT 0x40 152 #define LTC4215_PGIO_GENERAL_PURPOSE_INPUT 0xC0 154 #define LTC4215_TEST_MODE_ENABLE 0x20 155 #define LTC4215_TEST_MODE_DISABLE 0xDF 157 #define LTC4215_MASS_WRITE_ENABLE 0x10 158 #define LTC4215_MASS_WRITE_DISABLE 0xEF 160 #define LTC4215_FET_ON 0x08 161 #define LTC4215_FET_OFF 0xF7 163 #define LTC4215_OVERCURRENT_AUTO_RETRY_ENABLE 0x04 164 #define LTC4215_OVERCURRENT_AUTO_RETRY_DISABLE 0xFB 166 #define LTC4215_UNDERVOLTAGE_AUTO_RETRY_ENABLE 0x02 167 #define LTC4215_UNDERVOLTAGE_AUTO_RETRY_DISABLE 0xFD 169 #define LTC4215_OVERVOLTAGE_AUTO_RETRY_ENABLE 0x01 170 #define LTC4215_OVERVOLTAGE_AUTO_RETRY_DISABLE 0xFE 177 float resistor_divider_ratio
int8_t LTC4215_write(uint8_t i2c_address, uint8_t command, uint8_t code)
Write an 8-bit code to the LTC4215.
#define LSB
Location of Least Signficant Byte when Word is accessed as Byte Array.
int8_t LTC4215_read(uint8_t i2c_address, uint8_t command, uint8_t *code)
Reads an 8-bit adc_code from LTC4215.
float LTC4215_code_to_voltage(uint8_t register_code, float LSB, float resistor_divider_ratio)
Calculates voltage from register code data.
int8_t LTC4215_ARA(uint8_t alert_response_address, uint8_t *i2c_address)
SMBus Alert ResponseProtocol: Sends an alert response command and releases /ALERT pin...