xyControl
0.1
Quadrotor Flight Controller on AVR Basis
|
I2C API Header. More...
Go to the source code of this file.
Macros | |
#define | TWI_READ 1 |
I2C Read Bit. More... | |
#define | TWI_WRITE 0 |
I2C Write Bit. More... | |
Functions | |
void | twiInit (void) |
Initialize the I2C Hardware. More... | |
void | twiStop (void) |
Stop the I2C Hardware. More... | |
unsigned char | twiStart (unsigned char addr) |
Start an I2C Transfer. More... | |
unsigned char | twiRepStart (unsigned char addr) |
Start a repeated I2C Transfer. More... | |
void | twiStartWait (unsigned char addr) |
Start an I2C Transfer and poll until ready. More... | |
unsigned char | twiWrite (unsigned char data) |
Write to the I2C Slave. More... | |
unsigned char | twiReadAck (void) |
Read from the I2C Slave and request more data. More... | |
unsigned char | twiReadNak (void) |
Read from the I2C Slave and deny more data. More... | |
I2C API Header.
Definition in file twi.h.