/* Event handler for the CCID_PC_to_RDR_GetParameters when T=0. This message is sent to the device whenever an application at the host wants to get the current parameters for a given slot.  */
uint8_t CCID_GetParameters_T0(uint8_t Slot, uint8_t *const Error, uint8_t *ProtocolNum, USB_CCID_ProtocolData_T0_t *const T0)
/* Event handler for the CCID_PC_to_RDR_GetParameters when T=0. This message is sent to the device whenever an application at the host wants to get the current parameters for a given slot.  */
uint8_t CCID_GetParameters_T0(uint8_t Slot, uint8_t *const Error, uint8_t *ProtocolNum, USB_CCID_ProtocolData_T0_t *const T0)
{
	if (Slot == 0)
	{
		*ProtocolNum = CCID_PROTOCOLNUM_T0;
		memcpy(T0, &ProtocolData, sizeof(USB_CCID_ProtocolData_T0_t));
		*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;
	}
}