Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_i2c.c
/***************************************************************************/
/**
 *
 * EtaCspI2cLineClear - Triggers an I2C clearing event to clear any residual
 * commands
 *                      issued before a soft reset
 *
 * @return Return the status.
 *
 ******************************************************************************/
Triggers an I2C clearing event to clear any residual
commands
issued before a soft reset

@return Return the status.
Triggers an I2C clearing event to clear any residual commands issued before a soft reset @return Return the status .
tEtaStatus
EtaCspI2cLineClear()
{
    tEtaStatus iResult;
    REG_I2C2_CONFIG = (REG_I2C2_CONFIG & ~BM_I2C2_CONFIG_IGNORE_NACK) |
                      (1 << BP_I2C2_CONFIG_IGNORE_NACK);
    REG_I2C2_TXRX_1BYTE_FIFO_DATA = 0xff;
    REG_I2C2_TXRX_1BYTE_FIFO_DATA = 0xff;
    REG_I2C2_CMD_FIFO_DATA = I2C_CMD_STOP;
    REG_I2C2_STATUS = (1 << BP_I2C2_STATUS_START_BUSY);
    iResult = EtaCspI2cDonePoll();
    if(iResult != eEtaSuccess)
    {
        return(iResult);
    }
    REG_I2C2_CONFIG = (REG_I2C2_CONFIG & ~BM_I2C2_CONFIG_IGNORE_NACK) |
                      (0 << BP_I2C2_CONFIG_IGNORE_NACK);
     Return the result.
    return(iResult);
}
tEtaStatus EtaCspI2cLineClear ( ) { tEtaStatus iResult ; REG_I2C2_CONFIG = ( REG_I2C2_CONFIG & ~ BM_I2C2_CONFIG_IGNORE_NACK ) | ( 1 << BP_I2C2_CONFIG_IGNORE_NACK ) ; REG_I2C2_TXRX_1BYTE_FIFO_DATA = 0xff ; REG_I2C2_TXRX_1BYTE_FIFO_DATA = 0xff ; REG_I2C2_CMD_FIFO_DATA = I2C_CMD_STOP ; REG_I2C2_STATUS = ( 1 << BP_I2C2_STATUS_START_BUSY ) ; iResult = EtaCspI2cDonePoll ( ) ; if ( iResult != eEtaSuccess ) { return ( iResult ) ; } REG_I2C2_CONFIG = ( REG_I2C2_CONFIG & ~ BM_I2C2_CONFIG_IGNORE_NACK ) | ( 0 << BP_I2C2_CONFIG_IGNORE_NACK ) ; return ( iResult ) ; }
EtaCspI2cLineClear - Triggers an I2C clearing event to clear any residual
 commands
                      issued before a soft reset
EtaCspI2cLineClear - Triggers an I2C clearing event to clear any residual commands issued before a soft reset
// // Return the result. //