/* Returns 1 if the current transmission is complete (the STOP has been sent); otherwise returns 0.  */
unsigned char TWI_TransferComplete(AT91S_TWI *pTwi)
/* Returns 1 if the current transmission is complete (the STOP has been sent); otherwise returns 0.  */
unsigned char TWI_TransferComplete(AT91S_TWI *pTwi)
{
    return ((pTwi->TWI_SR & AT91C_TWI_TXCOMP) == AT91C_TWI_TXCOMP);
}