53 bool inGroupProtocol_;
172 #endif // LT_I2CBus_H void endGroupProtocol(void)
ends group protocol so I2CBus knows to send STOPs again.
void quikevalI2CInit(void)
Initializes Linduino I2C port.
int8_t writeWordData(uint8_t address, uint8_t command, uint16_t value)
Write a 16-bit word of data to register specified by "command".
int8_t readByteData(uint8_t address, uint8_t command, uint8_t *value)
Read a byte of data at register specified by "command", store in "value".
int8_t readBlockData(uint8_t address, uint8_t command, uint16_t length, uint8_t *values)
Read a block of data, starting at register specified by "command" and ending at (command + length - 1...
int8_t writeBlockData(uint8_t address, uint8_t command, uint16_t length, uint8_t *values)
Write a block of data, starting at register specified by "command" and ending at (command + length - ...
void startGroupProtocol(void)
starts group protocol so I2CBus knows to repeat START instead of STOP.
TwoWire.h - TWI/I2C library for Arduino & Wiring Copyright (c) 2006 Nicholas Zambetti.
int8_t twoByteCommandReadBlock(uint8_t address, uint16_t command, uint16_t length, uint8_t *values)
Write a two command bytes, then receive a block of data.
int8_t readWordData(uint8_t address, uint8_t command, uint16_t *value)
Read a 16-bit word of data from register specified by "command".
void changeSpeed(uint32_t speed)
Change the speed of the bus.
void quikevalI2CConnect(void)
Switch MUX to connect I2C pins to QuikEval connector.
int8_t readBlockDataPec(uint8_t address, uint8_t command, uint16_t length, uint8_t *values)
Read a block of data, starting at register specified by "command" and ending at (command + length - 1...
int8_t writeByte(uint8_t address, uint8_t value)
Write "value" byte to device at "address".
uint32_t getSpeed()
Get the speed of the bus.
int8_t writeByteData(uint8_t address, uint8_t command, uint8_t value)
Write a byte of data to register specified by "command".
int8_t readByte(uint8_t address, uint8_t *value)
Read a byte, store in "value".