Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

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

Detailed Description

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...
 

Function Documentation

◆ LTC4260_ARA()

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

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 LTC4260.cpp.

◆ LTC4260_code_to_voltage()

float LTC4260_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 LTC4260.cpp.

◆ LTC4260_read()

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

Reads an 8-bit adc_code from LTC4260.

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

Definition at line 97 of file LTC4260.cpp.

◆ LTC4260_write()

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

Write an 8-bit code to the LTC4260.

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

Definition at line 89 of file LTC4260.cpp.