/* Event handler for the CCID_PC_to_RDR_IccPowerOn message. This message is sent to the device whenever an application at the host wants to send a power off signal to a slot. THe slot must reply back with a recognizable ATR (answer to reset)  */
uint8_t CCID_IccPowerOn(uint8_t Slot, uint8_t *const Atr, uint8_t *const AtrLength, uint8_t *const Error)
/* Event handler for the CCID_PC_to_RDR_IccPowerOn message. This message is sent to the device whenever an application at the host wants to send a power off signal to a slot. THe slot must reply back with a recognizable ATR (answer to reset)  */
uint8_t CCID_IccPowerOn(uint8_t Slot, uint8_t *const Atr, uint8_t *const AtrLength, uint8_t *const Error)
{
	if (Slot == 0)
	{
		Iso7816_CreateSimpleAtr(Atr, AtrLength);
		*Error = CCID_ERROR_NO_ERROR;
		return CCID_COMMANDSTATUS_PROCESSEDWITHOUTERROR | CCID_ICCSTATUS_PRESENTANDACTIVE;
	}
	else
	{
		*Error = CCID_ERROR_SLOT_NOT_FOUND;
		return CCID_COMMANDSTATUS_FAILED | CCID_ICCSTATUS_NOICCPRESENT;
	}
}