forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParametersFlags.cs
53 lines (46 loc) · 1.68 KB
/
ParametersFlags.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
52
53
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Iot.Device.Pn532
{
/// <summary>
/// Parameters complementary of the Security Module Parameters
/// Allows to change the behavior of the handshake with the card
/// </summary>
[Flags]
public enum ParametersFlags
{
/// <summary>
/// bit 0: fNADUsed is Use of the NAD information in case of initiator
/// configuration (DEP and ISO/IEC14443-4 PCD).
/// </summary>
NADUsed = 0b0000_0001,
/// <summary>
/// bit 1: fDIDUsed is Use of the DID information in case of initiator
/// configuration (or CID in case of ISO/IEC14443-4 PCD configuration).
/// </summary>
DIDUsed = 0b0000_0010,
/// <summary>
/// bit 2: fAutomaticATR_RES is Automatic generation of the ATR_RES in
/// case of target configuration.
/// </summary>
AutomaticATR_RES = 0b0000_0100,
// bit 3: RFU Must be set to 0.
/// <summary>
/// bit 4: fAutomaticRATS is Automatic generation of the RATS in case of
/// ISO/IEC14443-4 PCD mode.
/// </summary>
AutomaticRATS = 0b0001_0000,
/// <summary>
/// bit 5: fISO14443-4_PICC is The emulation of a ISO/IEC14443-4 PICC is
/// enabled.
/// </summary>
ISO14443_4_PICC = 0b0010_0000,
/// <summary>
/// bit 6: fRemovePrePostAmble is The PN532 does not send Preamble and
/// Postamble.
/// </summary>
RemovePrePostAmble = 0b0100_0000,
// bit 7: RFU Must be set to 0.
}
}