Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_i2c.c
/***************************************************************************/
/**
 *
 *  EtaCspI2cProcessIntCmdDone - Process I2C Interrupt for Command Done
 *
 *
 ******************************************************************************/
Process I2C Interrupt for Command Done
Process I2C Interrupt for Command Done
tEtaStatus
EtaCspI2cProcessIntCmdDone(void)
{
    if((gsI2cCmd.bCmdActive == 0) ||
       (gsI2cCmd.ui16TxLen != 0) ||
       (gsI2cCmd.ui16RxLen != 0))
    {
        return(eEtaI2cCmdSequenceErr);
    }
    gsI2cCmd.i2cStatus = eEtaSuccess;
    gsI2cCmd.bCmdActive = 0;
    REG_I2C2_INT_EN = 0;
    return(eEtaSuccess);
}
tEtaStatus EtaCspI2cProcessIntCmdDone ( void ) { if ( ( gsI2cCmd . bCmdActive == 0 ) || ( gsI2cCmd . ui16TxLen != 0 ) || ( gsI2cCmd . ui16RxLen != 0 ) ) { return ( eEtaI2cCmdSequenceErr ) ; } gsI2cCmd . i2cStatus = eEtaSuccess ; gsI2cCmd . bCmdActive = 0 ; REG_I2C2_INT_EN = 0 ; return ( eEtaSuccess ) ; }
EtaCspI2cProcessIntCmdDone - Process I2C Interrupt for Command Done
EtaCspI2cProcessIntCmdDone - Process I2C Interrupt for Command Done