Xmega Application Note | |||||
#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 |
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.
bool TWI_Slave::abort |
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::bytesReceived |
Number of bytes received
Definition at line 96 of file twi_slave_driver.h.
Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveInitializeDriver(), TWI_SlaveInterruptHandler(), TWI_SlaveReadHandler(), and TWIC_SlaveProcessData().
register8_t TWI_Slave::bytesSent |
Number of bytes sent
Definition at line 97 of file twi_slave_driver.h.
Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveInitializeDriver(), TWI_SlaveInterruptHandler(), and TWI_SlaveWriteHandler().
TWI_t* TWI_Slave::interface |
Pointer to what interface to use
Definition at line 92 of file twi_slave_driver.h.
Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveDataHandler(), TWI_SlaveInitializeDriver(), TWI_SlaveInitializeModule(), TWI_SlaveInterruptHandler(), TWI_SlaveReadHandler(), TWI_SlaveStopHandler(), and TWI_SlaveWriteHandler().
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 |
Result of transaction
Definition at line 99 of file twi_slave_driver.h.
Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveInitializeDriver(), TWI_SlaveInterruptHandler(), and TWI_SlaveTransactionFinished().
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 |
Status of transaction
Definition at line 98 of file twi_slave_driver.h.
Referenced by TWI_SlaveAddressMatchHandler(), TWI_SlaveInitializeDriver(), TWI_SlaveInterruptHandler(), and TWI_SlaveTransactionFinished().
Generated on Tue Aug 11 12:42:13 2009 for AVR1308 Using the XMEGA TWI by ![]() |