private void SetGreenAndShortBeepTwice(ContactlessCard card)
        {
            var status = new LedBuzzerStatus();
            status.FinalRedLedState = false;
            status.FinalGreenLedState = false;
            status.UpdateRedLedState = true;
            status.UpdateGreenLedState = true;
            status.InitialRedLedBlinkingState = false;
            status.InitialGreenLedBlinkingState = true;
            status.RedBlinking = false;
            status.GreenBlinking = false;
            status.InitialBlinkingState = HexNumber.One;
            status.ToggleBlinkingState = HexNumber.One;
            status.RepetitionNumber = HexNumber.Two;
            status.Buzzer = LedBuzzerStatus.BuzzerState.T1;

            _reader.UpdateLedAndBuzzer(card, status);
        }
        private void SetGreenAndShortBeep(ContactlessCard card)
        {
            var status = new LedBuzzerStatus();

            status.FinalRedLedState             = false;
            status.FinalGreenLedState           = false;
            status.UpdateRedLedState            = true;
            status.UpdateGreenLedState          = true;
            status.InitialRedLedBlinkingState   = false;
            status.InitialGreenLedBlinkingState = true;
            status.RedBlinking          = false;
            status.GreenBlinking        = false;
            status.InitialBlinkingState = HexNumber.One;
            status.ToggleBlinkingState  = HexNumber.Zero;
            status.RepetitionNumber     = HexNumber.One;
            status.Buzzer = LedBuzzerStatus.BuzzerState.T1;

            _reader.UpdateLedAndBuzzer(card, status);
        }
Beispiel #3
0
 public SetBuzzerOutputForCardDetectionAction(ContactlessCard card, bool shouldBuzzWhenCardDetected)
 {
     Card = card;
     ShouldBuzzWhenCardDetected = shouldBuzzWhenCardDetected;
 }
 public UpdateLedAndBuzzerAction(ContactlessCard card, LedBuzzerStatus status)
 {
     Card = card;
     Status = status;
 }
 public SetBuzzerOutputForCardDetectionAction(ContactlessCard card, bool shouldBuzzWhenCardDetected)
 {
     Card = card;
     ShouldBuzzWhenCardDetected = shouldBuzzWhenCardDetected;
 }
 public UpdateLedAndBuzzerAction(ContactlessCard card, LedBuzzerStatus status)
 {
     Card   = card;
     Status = status;
 }
Beispiel #7
0
 public CardreaderEventArgs(ContactlessCard card)
 {
     Card = card;
 }
Beispiel #8
0
 public CardreaderEventArgs(ContactlessCard card, string cardreaderName)
 {
     Card = card;
     CardreaderName = cardreaderName;
 }
Beispiel #9
0
 public CardreaderEventArgs(ContactlessCard card, string cardreaderName)
 {
     Card           = card;
     CardreaderName = cardreaderName;
 }
Beispiel #10
0
 public CardreaderEventArgs(ContactlessCard card)
 {
     Card = card;
 }