Пример #1
0
        public void CanSetParams()
        {
            var defaultParam = new PICCParams();

            defaultParam.DetectISO14443TypeACard()
                        .DetectISO14443TypeBCard()
                        .DetectFeliCa212KCard()
                        .DetectFeliCa424KCard()
                        .DetectTopazCard()
                        .EnableAutomaticATSGeneration()
                        .EnableAutomaticPICCPolling();

            Assert.Equals(defaultParam.GetParams()[3], 255);
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }
Пример #4
0
 public static byte[] SetPICCParams(PICCParams piccParams)
 {
     return piccParams.GetParams();
 }
Пример #5
0
 public static byte[] SetPICCParams(PICCParams piccParams)
 {
     return(piccParams.GetParams());
 }