/* RDR_to_PC_NotifySlotChange Interrupt message to be sent to the host, Checks the card presence status and update the buffer accordingly.  */
void RDR_to_PC_NotifySlotChange(USBD_HandleTypeDef *pdev)
/* RDR_to_PC_NotifySlotChange Interrupt message to be sent to the host, Checks the card presence status and update the buffer accordingly.  */
void RDR_to_PC_NotifySlotChange(USBD_HandleTypeDef *pdev)
{
  USBD_CCID_HandleTypeDef  *hccid = (USBD_CCID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId];
  hccid->UsbIntData[OFFSET_INT_BMESSAGETYPE] = RDR_TO_PC_NOTIFYSLOTCHANGE;
  if (SC_Detect() != 0U)
  {
    hccid->UsbIntData[OFFSET_INT_BMSLOTICCSTATE] = SLOT_ICC_PRESENT | SLOT_ICC_CHANGE;
  }
  else
  {
    hccid->UsbIntData[OFFSET_INT_BMSLOTICCSTATE] = SLOT_ICC_CHANGE;
    SC_Itf_IccPowerOff();
  }
}