/* Returns 1 if a byte has been sent, so another one can be stored for transmission; otherwise returns 0. This function clears the status register of the TWI.  */
unsigned char TWI_ByteSent(AT91S_TWI *pTwi)
/* Returns 1 if a byte has been sent, so another one can be stored for transmission; otherwise returns 0. This function clears the status register of the TWI.  */
unsigned char TWI_ByteSent(AT91S_TWI *pTwi)
{
    return ((pTwi->TWI_SR & AT91C_TWI_TXRDY) == AT91C_TWI_TXRDY);
}