Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_i2c.c
/***************************************************************************/
/**
 *
 *  EtaCspI2cProcessIntNack - Process I2C Interrupt for Unexpected Negative Acknowledgement
 *
 *  @param iNum the I2C number.
 *
 ******************************************************************************/
Process I2C Interrupt for Unexpected Negative Acknowledgement
@param iNum the I2C number.
Process I2C Interrupt for Unexpected Negative Acknowledgement @param iNum the I2C number .
tEtaStatus EtaCspI2cProcessIntNack (tI2cNum iNum)
{
  #ifdef ETA_CSP_I2C_INT_DEBUG
    ETA_DIAGS_PRINTF("DETAILED_I2C:entered EtaCspI2cProcessIntNack\r\n");
  #endif
  REG_I2C_INT_EN(iNum).V = 0;
  REG_I2C_CONFIG2(iNum).BF.SOFT_RST = 1;
  REG_GPIO_DEBUG1_READ_ONLY.V = REG_I2C_CONFIG2(iNum).V;
  REG_I2C_CONFIG2(iNum).BF.SOFT_RST = 0;
  g_pEtaCspI2cCmd[iNum]->i2cStatus = eEtaI2cUnexpectedNack;
  g_pEtaCspI2cCmd[iNum]->bCmdActive = 0;
  REG_I2C_INT_EN(iNum).V = 0;
  return eEtaSuccess;
}
tEtaStatus EtaCspI2cProcessIntNack ( tI2cNum iNum ) { #ifdef ETA_CSP_I2C_INT_DEBUG ETA_DIAGS_PRINTF ( " \r \n " ) ; #endif REG_I2C_INT_EN ( iNum ) . V = 0 ; REG_I2C_CONFIG2 ( iNum ) . BF . SOFT_RST = 1 ; REG_GPIO_DEBUG1_READ_ONLY . V = REG_I2C_CONFIG2 ( iNum ) . V ; REG_I2C_CONFIG2 ( iNum ) . BF . SOFT_RST = 0 ; g_pEtaCspI2cCmd [ iNum ] -> i2cStatus = eEtaI2cUnexpectedNack ; g_pEtaCspI2cCmd [ iNum ] -> bCmdActive = 0 ; REG_I2C_INT_EN ( iNum ) . V = 0 ; return eEtaSuccess ; }
EtaCspI2cProcessIntNack - Process I2C Interrupt for Unexpected Negative Acknowledgement
  @param iNum the I2C number.
EtaCspI2cProcessIntNack - Process I2C Interrupt for Unexpected Negative Acknowledgement @param iNum the I2C number .
// Disable Interrupts // Clear State machine / cancel command // FENCE TO MAKE SURE ALL WRITES GET FLUSHED