Xmega Application Note


TWI_Master Struct Reference

TWI master driver struct. More...

#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]


Detailed Description

TWI master driver struct.

TWI master struct. Holds pointer to TWI module, buffers and necessary varibles.

Definition at line 94 of file twi_master_driver.h.


Field Documentation

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().

Number of bytes to read

Definition at line 100 of file twi_master_driver.h.

Referenced by TWI_MasterReadHandler(), TWI_MasterWriteHandler(), and TWI_MasterWriteRead().

Number of bytes to write

Definition at line 99 of file twi_master_driver.h.

Referenced by TWI_MasterWriteHandler(), and TWI_MasterWriteRead().

Number of bytes written

Definition at line 101 of file twi_master_driver.h.

Referenced by 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

register8_t TWI_Master::status

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().

@DOC_TITLE@
Generated on Tue Aug 11 12:42:13 2009 for AVR1308 Using the XMEGA TWI by doxygen 1.5.9