Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_i2c.c
tEtaStatus
EtaCspI2cRxDataPoll()
{
    uint32_t ui32Timeout = 1000000;

    while((--ui32Timeout) &&
          ((REG_I2C2_STATUS & BM_I2C2_STATUS_RXFIFO_HAS_1DATA) == 0))
    {
    }

    if(ui32Timeout <= 0)
    {
        return(eEtaI2cRecTimeout);
    }
    else
    {
        return(eEtaSuccess);
    }
}
/***************************************************************************/
/**
 *
 * EtaCspI2cRxDataPoll() - Poll for RX data ready.
 *
 * @return Return the status.
 *
 ******************************************************************************/
Poll for RX data ready.
@return Return the status.
Poll for RX data ready . @return Return the status .
tEtaStatus
EtaCspI2cRxDataPoll()
{
    uint32_t ui32Timeout = 1000000;
    while((--ui32Timeout) &&
          ((REG_I2C2_STATUS & BM_I2C2_STATUS_RXFIFO_HAS_1DATA) == 0))
    {
    }
    if(ui32Timeout <= 0)
    {
        return(eEtaI2cRecTimeout);
    }
    else
    {
        return(eEtaSuccess);
    }
}
tEtaStatus EtaCspI2cRxDataPoll ( ) { uint32_t ui32Timeout = 1000000 ; while ( ( -- ui32Timeout ) && ( ( REG_I2C2_STATUS & BM_I2C2_STATUS_RXFIFO_HAS_1DATA ) == 0 ) ) { } if ( ui32Timeout <= 0 ) { return ( eEtaI2cRecTimeout ) ; } else { return ( eEtaSuccess ) ; } }
EtaCspI2cRxDataPoll() - Poll for RX data ready.
EtaCspI2cRxDataPoll () - Poll for RX data ready .