51 #ifndef LT_SMBusBase_H_ 52 #define LT_SMBusBase_H_ 130 uint16_t block_out_size,
132 uint16_t block_in_size
161 uint8_t *
probe(uint8_t command
void sendByte(uint8_t address, uint8_t command)
SMBus send byte command.
LTC SMBus Support: API for a shared SMBus layer.
static uint8_t found_address_[]
void writeWord(uint8_t address, uint8_t command, uint16_t data)
SMBus write word command.
uint8_t * probe(uint8_t command)
SMBus bus probe.
Header File for Linduino Libraries and Demo Code.
void writeByte(uint8_t address, uint8_t command, uint8_t data)
SMBus write byte command.
uint8_t * probeUnique(uint8_t command)
SMBus bus probe.
uint8_t readAlert(void)
Perform ARA.
union LT_union_int32_4bytes data
static bool open_
Used to ensure initialisation of i2c once.
void writeBytes(uint8_t *addresses, uint8_t *commands, uint8_t *data, uint8_t no_addresses)
SMBus write byte command for a list of addresses.
LT_I2CBus: Routines to communicate to I2C by Wire Library.
uint8_t readByte(uint8_t address, uint8_t command)
SMBus read byte command.
uint8_t readBlock(uint8_t address, uint8_t command, uint8_t *block, uint16_t block_size)
SMBus read block command.
void i2cbus(LT_I2CBus *i2cbus)
void writeBlock(uint8_t address, uint8_t command, uint8_t *block, uint16_t block_size)
SMBus write block command.
uint16_t readWord(uint8_t address, uint8_t command)
SMBus read word command.
uint8_t waitForAck(uint8_t address, uint8_t command)
Read with the address and command in loop until ack, then issue stop.
uint8_t writeReadBlock(uint8_t address, uint8_t command, uint8_t *block_out, uint16_t block_out_size, uint8_t *block_in, uint16_t block_in_size)
SMBus write then read block command.