118 uint16_t registerinfo,
123 uint16_t registerinfo,
134 #ifndef MAX_NUM_LTC4155_INSTANCES 135 #define MAX_NUM_LTC4155_INSTANCES 1
uint8_t addr
Target IC's SMBus address.
int(* smbus_read_register)(uint8_t addr, uint8_t command_code, uint8_t *data, port_configuration_t *port_configuration)
Prototype of user supplied SMBus read_byte or read_word function.
smbus_read_register read_register
Pointer to a user supplied smbus_read_register function.
LTC4155 LTC4155_init(LTC4155_chip_cfg_t *cfg)
Returns a pointer to a LTC4155 structure used by LTC4155_write_register and LTC4155_read_register.
Information required to access hardware SMBus port.
int(* smbus_write_register)(uint8_t addr, uint8_t command_code, uint8_t data, port_configuration_t *port_configuration)
Prototype of user supplied SMBus write_byte or write_word function.
int file_descriptor
Linux SMBus file handle.
union LT_union_int32_4bytes data
port_configuration_t * port_configuration
Pointer to a user supplied port_configuration struct.
LTC4155: Dual-Input Power Manager / 3.5A Li-Ion Battery Charger with I²C Control and USB OTG...
int LTC4155_read_register(LTC4155 chip_handle, uint16_t registerinfo, uint8_t *data)
Retrieves a bit field data into *data.
smbus_write_register write_register
Pointer to a user supplied smbus_write_register function.
Hardware port information.
int LTC4155_write_register(LTC4155 chip_handle, uint16_t registerinfo, uint8_t data)
Function to modify a bit field within a register while preserving the unaddressed bit fields...