Datasheet

TWI_Write
TWI_Stop
TWI_Status
TWI_Close
532
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void TWI_Write(char data_);
Returns Nothing.
Description Sends data byte (parameter data_) via TWI bus.
Requires
TWI must be configured before using this function. See TWI_Init.
Also, START signal needs to be issued in order to use this function. See
TWI_Start.
Example
TWI_Write(0xA3);
Prototype
void TWI_Stop();
Returns Nothing.
Description Issues STOP signal to TWI operation.
Requires TWI must be configured before using this function. See TWI_Init.
Example
TWI_Stop();
Prototype
char TWI_Status();
Returns Returns value of status register (TWSR), the highest 5 bits.
Description Returns status of TWI.
Requires TWI must be configured before using this function. See TWI_Init.
Example
status = TWI_Status();
Prototype
void TWI_Close();
Returns Nothing.
Description Closes TWI connection.
Requires TWI must be configured before using this function. See TWI_Init.
Example
TWI_Close();