twi.h
Default mainpageat91libperipheralstwitwi.h
Description Overview
Methods Brief description
 TWI_ByteReceived Returns 1 if a byte has been received and can be read on the given TWI peripheral; otherwise, returns 0.
 TWI_ByteSent Returns 1 if a byte has been sent, so another one can be stored for transmission; otherwise returns 0.
 TWI_ConfigureMaster Configures a TWI peripheral to operate in master mode, at the given frequency (in Hz).
 TWI_DisableIt Disables the selected interrupts sources on a TWI peripheral.
 TWI_EnableIt Enables the selected interrupts sources on a TWI peripheral.
 TWI_GetMaskedStatus Returns the current status register of the given TWI peripheral, but masking interrupt sources which are not currently enabled.
 TWI_GetStatus Returns the current status register of the given TWI peripheral.
 TWI_ReadByte Reads a byte from the TWI bus.
 TWI_SendSTOPCondition Sends a STOP condition.
 TWI_StartRead Starts a read operation on the TWI bus with the specified slave, and returns immediately.
 TWI_StartWrite Starts a write operation on the TWI to access the selected slave, then returns immediately.
 TWI_Stop Sends a STOP condition on the TWI.
 TWI_TransferComplete Returns 1 if the current transmission is complete (the STOP has been sent); otherwise returns 0.
 TWI_WriteByte Sends a byte of data to one of the TWI slaves on the bus.
Macros  
 TWI_STATUS_RXRDY Returns 1 if the RXRDY bit (ready to receive data) is set in the given status register value.
 TWI_STATUS_TXCOMP Returns 1 if the TXCOMP bit (transfer complete) is set in the given status register value.
 TWI_STATUS_TXRDY Returns 1 if the TXRDY bit (ready to transmit data) is set in the given status register value.