/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; namespace Tizen.Network.Nfc { /// /// Enumeration for the NFC record TNF (Type Name Format). /// /// 3 public enum NfcRecordTypeNameFormat { /// /// Empty. /// /// 3 Empty = 0, /// /// The RTD (Record Type Definition) type format [NFC RTD]. /// /// 3 WellKnown = 1, /// /// MIME media types in the RFC 2046 [RFC 2046]. /// /// 3 MimeMedia = 2, /// /// The absolute URI as defined in the RFC 3986 [RFC 3986]. /// /// 3 Uri = 3, /// /// The NFC forum external type [NFC RTD]. /// /// 3 ExternalRtd = 4, /// /// The payload type is unknown. /// /// 3 Unknown = 5, /// /// The final chunk of a chunked NDEF record. /// /// 3 UnChanged = 6 } /// /// Enumeration for the NFC encode type. /// /// 3 public enum NfcEncodeType { /// /// UTF-8. /// /// 3 Utf8 = 0, /// /// UTF-16. /// /// 3 Utf16 = 1 } /// /// Enumeration for the NFC tag type. /// /// 3 public enum NfcTagType { /// /// An unknown target. /// /// 3 UnknownTarget = 0x00, /// /// The generic PICC. /// /// 3 GenericPicc, /// /// The ISO14443 A PICC. /// /// 3 Iso14443APicc, /// /// The ISO14443 4A PICC. /// /// 3 Iso144434APicc, /// /// The ISO14443 4A PICC. /// /// 3 Iso144433APicc, /// /// The Mifare Mini PICC. /// /// 3 MifareMiniPicc, /// /// Mifare 1k PICC. /// /// 3 Mifare1kPicc, /// /// Mifare 4k PICC. /// /// 3 Mifare4kPicc, /// /// The Mifare Ultra PICC. /// /// 3 MifareUltraPicc, /// /// The Mifare Desfire PICC. /// /// 3 MifareDesfirePicc, /// /// The Iso14443 B PICC. /// /// 3 Iso14443BPicc, /// /// Iso14443 4B PICC. /// /// 3 Iso144434BPicc, /// /// The ISO14443 B Prime PICC. /// /// 3 Iso14443BPrimePicc, /// /// The Felica PICC. /// /// 3 FelicaPicc, /// /// The Jewel PICC. /// /// 3 JewelPicc, /// . /// /// 3 Iso15693Picc, /// /// The Barcode 128 PICC. /// /// 3 Barcode128Picc, /// /// The Barcode 256 PICC. /// /// 3 Barcode256Picc, /// /// The NFCIP1 Target. /// /// 3 NfcIp1Target, /// /// The NFCIP1 Initiator. /// /// 3 NfcIp1Initiator } /// /// Enumeration for the NFC tag filter type. /// /// 3 public enum NfcTagFilterType { /// /// All disable. /// /// 3 AllDisable = 0x0000, /// /// ISO14443A enable. /// /// 3 Iso14443AEnable = 0x0001, /// /// ISO14443B enable. /// /// 3 Iso14443BEnable = 0x0002, /// /// ISO15693 enable. /// /// 3 Iso15693Enable = 0x0004, /// /// FELICA enable. /// /// 3 FelicaEnable = 0x0008, /// /// JEWEL enable. /// /// 3 JewelEnable = 0x0010, /// /// IP enable. /// /// 3 IpEnable = 0x0020, /// /// All enable. /// /// 3 AllEnable = ~0 } /// /// Enumeration for the NFC discovered type. /// /// 3 public enum NfcDiscoveredType { /// /// Attached, discovered, and activated event. /// /// 3 Attached, /// /// Detached, disappeared, and deactivated event. /// /// 3 Detached } /// /// Enumeration for the NFC secure element event. /// /// 3 public enum NfcSecureElementEvent { /// /// Start transaction. /// /// 3 StartTransaction, /// /// End transaction. /// /// 3 EndTransaction, /// /// Ready signal. /// /// 3 Connectivity, /// /// The CLF (Contactless Front-end) detects a RF field. /// /// 3 FieldOn, /// /// The CLF (Contactless Front-end) detects that the RF field is off. /// /// 3 FieldOff, /// /// An external reader tries to access the secure element. /// /// 3 Transaction, /// /// Changing the emulated secure element type. /// /// 3 TypeChanged, /// /// Changing the card emulation mode. /// /// 3 CardEmulationChanged } /// /// Enumeration for the NFC filter type. /// /// 3 public enum NfcSecureElementType { /// /// Disable card emulation. /// /// 3 Disable = 0x00, /// /// The SmartMX type card emulation (Embedded Secure Element). /// /// 3 EmbeddedSE = 0x01, /// /// The UICC type card emulation (Universal IC Card). /// /// 3 Uicc = 0x02, /// /// The SDCARD card emulation. /// /// 3 Sdcard = 0x03, /// /// The Host based card emulation. /// /// 3 Hce = 0x04 } /// /// Enumeration for the NFC discovered type. /// /// 3 public enum NfcSecureElementCardEmulationMode { /// /// The card emulation mode is OFF. /// /// 3 Off = 0x00, /// /// The card emulation mode is ON. /// /// 3 On = 0x01 } /// /// Enumeration for the SNEP (Simple NDEF Exchange Protocol) event. /// /// 3 public enum NfcSnepEvent { /// /// Server or client stopped. /// /// 3 Stop = 0x00, /// /// Server started or client connected. /// /// 3 Start = 0x01, /// /// Server received get request. /// /// 3 Get = 0x02, /// /// Server received put request. /// /// 3 Put = 0x03, /// /// Service registered. /// /// 3 Register = 0x04, /// /// Service unregistered. /// /// 3 Unregister = 0x05 } /// /// Enumeration for the SNEP request type. /// /// 3 public enum NfcSnepRequestType { /// /// The get request. /// /// 3 Get = 0x01, /// /// The put request. /// /// 3 Put = 0x02 } /// /// Enumeration for the NFC card emulation category type. /// /// 3 public enum NfcCardEmulationCategoryType { /// /// NFC payment services. /// /// 3 Payment = 0x01, /// /// All other card emulation services. /// /// 3 Other = 0x02 } /// /// Enumeration for the NFC card emulation HCE (Host Card Emulation) event type. /// /// 3 public enum NfcHceEvent { /// /// HCE deactivated. /// /// 3 Deactivated = 0x00, /// /// HCE activated. /// /// 3 Activated = 0x01, /// /// HCE APDU (Application Protocol Data Unit) received. /// /// 3 ApduReceived = 0x02 } }