75 voltage = (float)register_code * LSB;
76 return(voltage * resistor_divider_ratio);
int8_t i2c_read_byte_data(uint8_t address, uint8_t command, uint8_t *value)
Read a byte of data at register specified by "command", store in "value".
float LTC4280_code_to_voltage(uint8_t register_code, float LSB, float resistor_divider_ratio)
Calculates voltage from register code data.
int8_t LTC4280_ARA(uint8_t alert_response_address, uint8_t *i2c_address)
SMBus Alert ResponseProtocol: Sends an alert response command and releases /ALERT pin...
int8_t i2c_write_byte_data(uint8_t address, uint8_t command, uint8_t value)
Write a byte of data to register specified by "command".
#define LSB
Location of Least Signficant Byte when Word is accessed as Byte Array.
int8_t LTC4280_write(uint8_t i2c_address, uint8_t command, uint8_t code)
Write an 8-bit code to the LTC4280.
LT_SPI: Routines to communicate with ATmega328P's hardware SPI port.
LT_I2C: Routines to communicate with ATmega328P's hardware I2C port.
LTC4280: Hot Swap Controller with I2C Compatible Monitoring.
int8_t LTC4280_read(uint8_t i2c_address, uint8_t command, uint8_t *code)
Reads an 8-bit adc_code from LTC4280.
int8_t i2c_read_byte(uint8_t address, uint8_t *value)
Read a byte, store in "value".