Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC4280 Hot Swap Controller with I2C Compatible Monitoring. More...

Detailed Description

Library for LTC4280 Hot Swap Controller with I2C Compatible Monitoring.

Definition in file LTC4280.cpp.

Go to the source code of this file.

Functions

float LTC4280_code_to_voltage (uint8_t register_code, float LSB, float resistor_divider_ratio)
 Calculates voltage from register code data. More...
 
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. More...
 
int8_t LTC4280_write (uint8_t i2c_address, uint8_t command, uint8_t code)
 Write an 8-bit code to the LTC4280. More...
 
int8_t LTC4280_read (uint8_t i2c_address, uint8_t command, uint8_t *code)
 Reads an 8-bit adc_code from LTC4280. More...
 

Function Documentation

◆ LTC4280_ARA()

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.

LTC4280 responds with its address

Returns
The function returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge
Parameters
alert_response_addressthe Alert Response Address on the I2C bus
i2c_addressthe address of the alert source

Definition at line 81 of file LTC4280.cpp.

◆ LTC4280_code_to_voltage()

float LTC4280_code_to_voltage ( uint8_t  register_code,
float  LSB,
float  resistor_divider_ratio 
)

Calculates voltage from register code data.

Returns
The function returns valtage calculated from register data
Parameters
LSBData from registers
resistor_divider_ratioSmallest 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 LTC4280.cpp.

◆ LTC4280_read()

int8_t LTC4280_read ( uint8_t  i2c_address,
uint8_t  command,
uint8_t *  code 
)

Reads an 8-bit adc_code from LTC4280.

Returns
The function returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.
Parameters
commandLTC4280 I2C ADDRESS
codeRegister address to read from Contents of the requested register

Definition at line 97 of file LTC4280.cpp.

◆ LTC4280_write()

int8_t LTC4280_write ( uint8_t  i2c_address,
uint8_t  command,
uint8_t  code 
)

Write an 8-bit code to the LTC4280.

Returns
The function returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.
Parameters
commandLTC4280 I2C ADDRESS
codeRegister address to be written into Data to be written into the register

Definition at line 89 of file LTC4280.cpp.