forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MirrorConfiguration.cs
51 lines (44 loc) · 1.41 KB
/
MirrorConfiguration.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Card.Ultralight
{
/// <summary>
/// The Mirror Configuration
/// </summary>
public class MirrorConfiguration
{
/// <summary>
/// The size in bytes of the UID Mirror
/// </summary>
public const byte UidMirrorSize = 14;
/// <summary>
/// The size in bytes of the NFC counter Mirror
/// </summary>
public const byte NfcCounterMirrorSize = 6;
/// <summary>
/// The size in bytes when both mirror counter are activated = 14 + 1 + 6
/// </summary>
public const byte UidAndNfcCounterMirrorSize = 21;
/// <summary>
/// Create a default Mirror Configuration
/// </summary>
public MirrorConfiguration()
{
MirrorType = MirrorType.None;
Page = 0;
Position = 0;
}
/// <summary>
/// Gets or sets the Mirror Type
/// </summary>
public MirrorType MirrorType { get; set; }
/// <summary>
/// Gets or sets the Mirror Page
/// </summary>
public byte Page { get; set; }
/// <summary>
/// Gets or sets the Mirror Position in the page from 0 to 3
/// </summary>
public byte Position { get; set; }
}
}