Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_i2c.c
/***************************************************************************/
/**
 *
 *  EtaCspI2cProcessIntNack - Process I2C Interrupt for Unexpected Negative
 *                            Acknowledgement
 *
 ******************************************************************************/
Process I2C Interrupt for Unexpected Negative
Acknowledgement
Process I2C Interrupt for Unexpected Negative Acknowledgement
tEtaStatus
EtaCspI2cProcessIntNack(void)
{
    REG_I2C2_INT_EN = 0;
    REG_I2C2_CONFIG2 |=  BM_I2C2_CONFIG2_SOFT_RST;
    REG_I2C2_CONFIG2 &= ~BM_I2C2_CONFIG2_SOFT_RST;
    gsI2cCmd.i2cStatus = eEtaI2cUnexpectedNack;
    gsI2cCmd.bCmdActive = 0;
    REG_I2C2_INT_EN = 0;
    return(eEtaSuccess);
}
tEtaStatus EtaCspI2cProcessIntNack ( void ) { REG_I2C2_INT_EN = 0 ; REG_I2C2_CONFIG2 |= BM_I2C2_CONFIG2_SOFT_RST ; REG_I2C2_CONFIG2 &= ~ BM_I2C2_CONFIG2_SOFT_RST ; gsI2cCmd . i2cStatus = eEtaI2cUnexpectedNack ; gsI2cCmd . bCmdActive = 0 ; REG_I2C2_INT_EN = 0 ; return ( eEtaSuccess ) ; }
EtaCspI2cProcessIntNack - Process I2C Interrupt for Unexpected Negative
                            Acknowledgement
EtaCspI2cProcessIntNack - Process I2C Interrupt for Unexpected Negative Acknowledgement
// Disable Interrupts // Clear State machine / cancel command