Xmega Application Note | |||||
#include <twi_master_driver.h>
Data Fields | |
register8_t | address |
register8_t | bytesRead |
register8_t | bytesToRead |
register8_t | bytesToWrite |
register8_t | bytesWritten |
TWI_t * | interface |
register8_t | readData [TWIM_READ_BUFFER_SIZE] |
register8_t | result |
register8_t | status |
register8_t | writeData [TWIM_WRITE_BUFFER_SIZE] |
TWI master struct. Holds pointer to TWI module, buffers and necessary varibles.
Definition at line 94 of file twi_master_driver.h.
register8_t TWI_Master::address |
Slave address
Definition at line 96 of file twi_master_driver.h.
Referenced by TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::bytesRead |
Number of bytes read
Definition at line 102 of file twi_master_driver.h.
Referenced by TWI_MasterReadHandler(), TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::bytesToRead |
Number of bytes to read
Definition at line 100 of file twi_master_driver.h.
Referenced by TWI_MasterReadHandler(), TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::bytesToWrite |
Number of bytes to write
Definition at line 99 of file twi_master_driver.h.
Referenced by TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::bytesWritten |
Number of bytes written
Definition at line 101 of file twi_master_driver.h.
Referenced by TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
TWI_t* TWI_Master::interface |
Pointer to what interface to use
Definition at line 95 of file twi_master_driver.h.
Referenced by TWI_MasterArbitrationLostBusErrorHandler(), TWI_MasterInit(), TWI_MasterInterruptHandler(), TWI_MasterReadHandler(), TWI_MasterState(), TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::readData[TWIM_READ_BUFFER_SIZE] |
Read data
Definition at line 98 of file twi_master_driver.h.
Referenced by main(), and TWI_MasterReadHandler().
register8_t TWI_Master::result |
Result of transaction
Definition at line 104 of file twi_master_driver.h.
Referenced by TWI_MasterArbitrationLostBusErrorHandler(), TWI_MasterTransactionFinished(), TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::status |
Status of transaction
Definition at line 103 of file twi_master_driver.h.
Referenced by main(), TWI_MasterArbitrationLostBusErrorHandler(), TWI_MasterReady(), TWI_MasterTransactionFinished(), TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
register8_t TWI_Master::writeData[TWIM_WRITE_BUFFER_SIZE] |
Data to write
Definition at line 97 of file twi_master_driver.h.
Referenced by TWI_MasterWriteHandler(), and TWI_MasterWriteRead().
Generated on Tue Aug 11 12:42:13 2009 for AVR1308 Using the XMEGA TWI by ![]() |