|
Little-Wire
|
Functions | |
| void | littleWire::i2c_init () |
| void | littleWire::i2c_beginTransmission (unsigned char address) |
| void | littleWire::i2c_send (unsigned char message) |
| void | littleWire::i2c_endTransmission () |
| void | littleWire::i2c_requestFrom (unsigned char address, unsigned char numBytes, unsigned char *responseBuffer) |
I2C functions.
| void littleWire::i2c_beginTransmission | ( | unsigned char | address | ) |
Begin a read/write operation on I2C bus.
| address | 7 bit slave address. |
| void littleWire::i2c_endTransmission | ( | ) |
End the I2C transmission.
Actually, all the messages will be sent at once when you call this function.
| void littleWire::i2c_init | ( | ) |
Initialize the I2C module on the Little-Wire
| void littleWire::i2c_requestFrom | ( | unsigned char | address, |
| unsigned char | numBytes, | ||
| unsigned char * | responseBuffer | ||
| ) |
Request a response from a slave device.
| address | 7 bit slave address. |
| numBytes | Length of the response you expect from the slave device. |
| responseBuffer | Pointer of the array which you want to store I2C response messages. |
| void littleWire::i2c_send | ( | unsigned char | message | ) |
Add a message to output buffer.
| message | Message to send. |
1.7.6.1