/* Returns the current status register of the given TWI peripheral. This resets the internal value of the status register, so further read may yield different values.  */
unsigned int TWI_GetStatus(AT91S_TWI *pTwi)
/* Returns the current status register of the given TWI peripheral. This resets the internal value of the status register, so further read may yield different values.  */
unsigned int TWI_GetStatus(AT91S_TWI *pTwi)
{
    SANITY_CHECK(pTwi);
    return pTwi->TWI_SR;
}