unsigned char TWI_TransferComplete(AT91S_TWI *pTwi) { return ((pTwi->TWI_SR & AT91C_TWI_TXCOMP) == AT91C_TWI_TXCOMP); }