/* SC_Itf_IccPowerOn Manages the Warm and Cold Reset and get the Answer to Reset from ICC.  */
void SC_Itf_IccPowerOn(uint8_t voltage)
/* SC_Itf_IccPowerOn Manages the Warm and Cold Reset and get the Answer to Reset from ICC.  */
void SC_Itf_IccPowerOn(uint8_t voltage)
{
  SCState = SC_POWER_ON;
  SC_ADPU.Header.CLA = 0x00U;
  SC_ADPU.Header.INS = SC_GET_A2R;
  SC_ADPU.Header.P1 = 0x00U;
  SC_ADPU.Header.P2 = 0x00U;
  SC_ADPU.Body.LC = 0x00U;
  SC_PowerCmd(SC_ENABLED);
  SC_VoltageConfig(voltage);
  while ((SCState != SC_ACTIVE_ON_T0) && (SCState != SC_ACTIVE_ON_T1)
         && (SCState != SC_NO_INIT))
  {
    SC_Handler(&SCState, &SC_ADPU, &SC_Response);
  }
  if ((SCState == SC_ACTIVE_ON_T0) || (SCState == SC_ACTIVE_ON_T1))
  {
    SC_Itf_UpdateParams();
    SC_PTSConfig();
    SC_SaveVoltage(voltage);
  }
  return;
}