• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package android.nfc;
20
21option java_outer_classname = "NfcProtoEnums";
22option java_multiple_files = true;
23
24// RF Technology Type
25// values according to frameworks/base/core/java/android/nfc/tech/TagTechnology.java
26enum RFTechnologyType {
27    RF_UNKNOWN = 0;
28    RF_NFC_A = 1;
29    RF_NFC_B = 2;
30    RF_ISO_DEP = 3;
31    RF_NFC_F = 4;
32    RF_NFC_V = 5;
33    RF_NDEF = 6;
34    RF_NDEF_FORMATABLE = 7;
35    RF_MIFARE_CLASSIC = 8;
36    RF_MIFARE_ULTRALIGHT = 9;
37    RF_NFC_BARCODE = 10;
38}
39
40// Nfc Tag Type, used in Reader mode
41enum NfcTagType {
42    TAG_UNKNOWN = 0;
43    TAG_TYPE_1 = 1;
44    TAG_TYPE_2 = 2;
45    TAG_TYPE_3 = 3;
46    TAG_TYPE_4A = 4;
47    TAG_TYPE_4B = 5;
48    TAG_TYPE_5 = 6;
49    TAG_MIFARE_CLASSIC = 7;
50    TAG_KOVIO_BARCODE = 8;
51}
52