![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC4260 Hot Swap Controller with I2C Compatible Monitoring. More...
Library for LTC4260 Hot Swap Controller with I2C Compatible Monitoring.
Definition in file LTC4260.cpp.
Go to the source code of this file.
Functions | |
float | LTC4260_code_to_voltage (uint8_t register_code, float LSB, float resistor_divider_ratio) |
Calculates voltage from register code data. More... | |
int8_t | LTC4260_ARA (uint8_t alert_response_address, uint8_t *i2c_address) |
SMBus Alert ResponseProtocol: Sends an alert response command and releases /ALERT pin. More... | |
int8_t | LTC4260_write (uint8_t i2c_address, uint8_t command, uint8_t code) |
Write an 8-bit code to the LTC4260. More... | |
int8_t | LTC4260_read (uint8_t i2c_address, uint8_t command, uint8_t *code) |
Reads an 8-bit adc_code from LTC4260. More... | |
int8_t LTC4260_ARA | ( | uint8_t | alert_response_address, |
uint8_t * | i2c_address | ||
) |
SMBus Alert ResponseProtocol: Sends an alert response command and releases /ALERT pin.
LTC4260 responds with its address
alert_response_address | the Alert Response Address on the I2C bus |
i2c_address | the address of the alert source |
Definition at line 81 of file LTC4260.cpp.
float LTC4260_code_to_voltage | ( | uint8_t | register_code, |
float | LSB, | ||
float | resistor_divider_ratio | ||
) |
Calculates voltage from register code data.
LSB | Data from registers |
resistor_divider_ratio | Smallest incremental voltage the ratio that the voltages have been divided down. Set to 1 for no resistir divider circuit |
Definition at line 72 of file LTC4260.cpp.
int8_t LTC4260_read | ( | uint8_t | i2c_address, |
uint8_t | command, | ||
uint8_t * | code | ||
) |
Reads an 8-bit adc_code from LTC4260.
command | LTC4260 I2C ADDRESS |
code | Register address to read from Contents of the requested register |
Definition at line 97 of file LTC4260.cpp.
int8_t LTC4260_write | ( | uint8_t | i2c_address, |
uint8_t | command, | ||
uint8_t | code | ||
) |
Write an 8-bit code to the LTC4260.
command | LTC4260 I2C ADDRESS |
code | Register address to be written into Data to be written into the register |
Definition at line 89 of file LTC4260.cpp.