Xmega Application Note


TWI_Slave Struct Reference

TWI slave driver struct. More...

#include <twi_slave_driver.h>


Data Fields

bool abort
register8_t bytesReceived
register8_t bytesSent
TWI_t * interface
void(* Process_Data )(void)
register8_t receivedData [TWIS_RECEIVE_BUFFER_SIZE]
register8_t result
register8_t sendData [TWIS_SEND_BUFFER_SIZE]
register8_t status


Detailed Description

TWI slave driver struct.

TWI slave struct. Holds pointer to TWI module and data processing routine, buffers and necessary varibles.

Definition at line 91 of file twi_slave_driver.h.


Field Documentation

Strobe to abort

Definition at line 100 of file twi_slave_driver.h.

Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveInitializeDriver(), and TWI_SlaveReadHandler().

register8_t TWI_Slave::bytesSent

void(* TWI_Slave::Process_Data)(void)

Pointer to process data function

Referenced by TWI_SlaveInitializeDriver(), and TWI_SlaveReadHandler().

register8_t TWI_Slave::receivedData[TWIS_RECEIVE_BUFFER_SIZE]

Read data

Definition at line 94 of file twi_slave_driver.h.

Referenced by TWI_SlaveReadHandler(), and TWIC_SlaveProcessData().

register8_t TWI_Slave::result

register8_t TWI_Slave::sendData[TWIS_SEND_BUFFER_SIZE]

Data to write

Definition at line 95 of file twi_slave_driver.h.

Referenced by TWI_SlaveWriteHandler(), and TWIC_SlaveProcessData().

register8_t TWI_Slave::status

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