#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <i2c.h>

/************************************************************************
*    Function Name:  DataRdyI2C1    
*    Description:    This routine provides the status whether the receive 
*                    buffer is full by returning the RBF bit.                    
*    Parameters:     void                                   
*    Return Value:   RBF bit status
*************************************************************************/

#ifdef _I2C_V2_1

char DataRdyI2C1(void)
{
     return I2C1STATbits.RBF;
}

#else
#warning "Does not build on this target"
#endif
