public void CanSetParams() { var defaultParam = new PICCParams(); defaultParam.DetectISO14443TypeACard() .DetectISO14443TypeBCard() .DetectFeliCa212KCard() .DetectFeliCa424KCard() .DetectTopazCard() .EnableAutomaticATSGeneration() .EnableAutomaticPICCPolling(); Assert.Equals(defaultParam.GetParams()[3], 255); }
public SmartCardReader(string name, int hContext) { _name = name; _hContext = hContext; _dwControlCode = (int)ModWinsCard.IOCTL_CCID_ESCAPE_SCARD_CTL_CODE; IsConnected = false; IsControlled = false; _pollingTimer = new Timer(); _pollingTimer.Tick += _pollingTimer_Tick; PiccParams = new PICCParams() .DetectFeliCa212KCard() .DetectFeliCa424KCard() .DetectISO14443TypeACard() .DetectISO14443TypeBCard() .DetectTopazCard() .EnableAutomaticATSGeneration() .EnableAutomaticPICCPolling() .SetPollInterval250(); }
public SmartCardReader(string name, int hContext) { _name = name; _hContext = hContext; _dwControlCode = (int) ModWinsCard.IOCTL_CCID_ESCAPE_SCARD_CTL_CODE; IsConnected = false; IsControlled = false; _pollingTimer = new Timer(); _pollingTimer.Tick += _pollingTimer_Tick; PiccParams = new PICCParams() .DetectFeliCa212KCard() .DetectFeliCa424KCard() .DetectISO14443TypeACard() .DetectISO14443TypeBCard() .DetectTopazCard() .EnableAutomaticATSGeneration() .EnableAutomaticPICCPolling() .SetPollInterval250(); }
public static byte[] SetPICCParams(PICCParams piccParams) { return piccParams.GetParams(); }
public static byte[] SetPICCParams(PICCParams piccParams) { return(piccParams.GetParams()); }