1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @addtogroup HdiNfc
18 * @{
19 *
20 * @brief Provides unified APIs for nfc services to access nfc drivers.
21 *
22 * An nfc service can obtain an nfc driver object or agent and then call APIs provided by this object or agent to
23 * access nfc devices, thereby obtaining enabling or disabling an nfc controller, initializing an nfc core,
24 * writing NCI data to an nfc driver, starting configuration for RF discovery of nfc remote endpoints,
25 * sending nfc commands to an nfc driver for IO control.
26 *
27 * @version 1.0
28 */
29
30/**
31 * @file NfcTypes.idl
32 *
33 * @brief Declares the APIs provided by the sensor module for obtaining sensor information, subscribing to or
34 * unsubscribing from sensor data, enabling or disabling a sensor, setting the sensor data reporting mode,
35 * and setting sensor options such as the accuracy and measurement range.
36 *
37 * @since 3.2
38 * @version 1.0
39 */
40
41package ohos.hdi.nfc.v1_0;
42
43/**
44 * @brief Enumerates return values of the Nfc Event.
45 *
46 * @since 3.2
47 */
48enum NfcEvent {
49    OPEN_CPLT           = 0,
50    CLOSE_CPLT          = 1,
51    POST_INIT_CPLT      = 2,
52    PRE_DISCOVER_CPLT   = 3,
53    REQUEST_CONTROL     = 4,
54    RELEASE_CONTROL     = 5,
55    ERROR               = 6,
56    HCI_NETWORK_RESET   = 7,
57};
58
59/**
60 * @brief Enumerates return values of the Nfc status.
61 *
62 * @since 3.2
63 */
64enum NfcStatus {
65    OK               = 0,
66    FAILED           = 1,
67    ERR_TRANSPORT    = 2,
68    ERR_CMD_TIMEOUT  = 3,
69    REFUSED          = 4,
70};
71
72/**
73 * @brief Enumerates return values of the Nfc command.
74 *
75 * @since 3.2
76 */
77enum NfcCommand {
78    CMD_INVALID = 0,
79};
80