forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Helper.cs
31 lines (29 loc) · 1.09 KB
/
Helper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Iot.Device.Card.Ultralight;
namespace Iot.Device.Mfrc522
{
internal static class Helper
{
public static bool IsDefined(UltralightCommand ultralight)
{
switch (ultralight)
{
case UltralightCommand.GetVersion:
case UltralightCommand.Read16Bytes:
case UltralightCommand.ReadFast:
case UltralightCommand.WriteCompatible:
case UltralightCommand.Write4Bytes:
case UltralightCommand.ReadCounter:
case UltralightCommand.IncreaseCounter:
case UltralightCommand.PasswordAuthentication:
case UltralightCommand.ThreeDsAuthenticationPart1:
case UltralightCommand.ThreeDsAuthenticationPart2:
case UltralightCommand.ReadSignature:
return true;
default:
return false;
}
}
}
}