1# INfcInterface
2
3
4## 概述
5
6声明操作nfc芯片的API,包括关闭、打开nfc,初始化nfc,读写数据、配置RF参数、发送nci指令。
7
8**起始版本:** 4.1
9
10**相关模块:**[HdiNfc](_hdi_nfc_v11.md)
11
12
13## 汇总
14
15
16### Public 成员函数
17
18| 名称 | 描述 |
19| -------- | -------- |
20| [GetVendorConfig](#getvendorconfig) ([out] struct [NfcVendorConfig](_nfc_vendor_config_v11.md) config, [out] enum NfcStatus status) | 查询厂商自定义的NFC配置。 |
21| [DoFactoryReset](#dofactoryreset) ([out] enum NfcStatus status) | NFC芯片工厂级复位。 |
22| [Shutdown](#shutdown) ([out] enum NfcStatus status) | 关闭NFC。如果设备支持关机刷卡功能,需要实现该接口 |
23
24
25## 成员函数说明
26
27
28### DoFactoryReset()
29
30```
31INfcInterface::DoFactoryReset ([out] enum NfcStatus status)
32```
33
34**描述**
35
36
37NFC芯片工厂级复位。
38
39**起始版本:** 4.1
40
41**返回:**
42
43操作成功返回0,否则返回失败。 具体类型详见[NfcTypes](_nfc_types_8idl_v10.md)。
44
45
46### GetVendorConfig()
47
48```
49INfcInterface::GetVendorConfig ([out] struct NfcVendorConfig config, [out] enum NfcStatus status )
50```
51
52**描述**
53
54
55查询厂商自定义的NFC配置。
56
57**起始版本:** 4.1
58
59**参数:**
60
61| 名称 | 描述 |
62| -------- | -------- |
63| config | 厂商自定义的NFC配置。 |
64
65**返回:**
66
67操作成功返回0,否则返回失败。 具体类型详见[NfcTypes](_nfc_types_8idl_v10.md)。
68
69
70### Shutdown()
71
72```
73INfcInterface::Shutdown ([out] enum NfcStatus status)
74```
75
76**描述**
77
78
79关闭NFC。如果设备支持关机刷卡功能,需要实现该接口
80
81**起始版本:** 4.1
82
83**返回:**
84
85操作成功返回0,否则返回失败。 具体类型详见[NfcTypes](_nfc_types_8idl_v10.md)。
86