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
bool nextNack
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 76 of file twi_slave_driver.h.


Field Documentation

Strobe to abort

Definition at line 85 of file twi_slave_driver.h.

Referenced by TWI_SlaveInitializeDriver().

register8_t TWI_Slave::bytesSent

Number of bytes sent

Definition at line 82 of file twi_slave_driver.h.

Referenced by TWI_process(), TWI_SlaveAddressMatchHandler(), TWI_SlaveInitializeDriver(), and TWI_SlaveWriteHandler().

Definition at line 86 of file twi_slave_driver.h.

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 79 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 80 of file twi_slave_driver.h.

Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveWriteHandler(), and TWIC_SlaveProcessData().

register8_t TWI_Slave::status

@DOC_TITLE@
Generated on Tue Jan 19 18:42:01 2010 for AVR1320: True 400kHz operation for TWI slave by doxygen 1.5.8