Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 17-Mar-2025 | - | ||||
figures/ | H | 17-Mar-2025 | - | |||
frameworks/js/napi/ | H | 17-Mar-2025 | - | 8,385 | 6,810 | |
interfaces/inner_api/ | H | 17-Mar-2025 | - | 9,317 | 6,346 | |
sa_profile/ | H | 17-Mar-2025 | - | 41 | 37 | |
services/ | H | 17-Mar-2025 | - | 26,588 | 21,131 | |
test/ | H | 17-Mar-2025 | - | 25,448 | 17,007 | |
CODEOWNERS | H A D | 17-Mar-2025 | 816 | 19 | 17 | |
LICENSE | H A D | 17-Mar-2025 | 9.9 KiB | 177 | 150 | |
OAT.xml | H A D | 17-Mar-2025 | 1.6 KiB | 35 | 18 | |
README.md | H A D | 17-Mar-2025 | 2.1 KiB | 60 | 37 | |
README_zh.md | H A D | 17-Mar-2025 | 2.2 KiB | 68 | 43 | |
bundle.json | H A D | 17-Mar-2025 | 5.1 KiB | 153 | 152 | |
hisysevent.yaml | H A D | 17-Mar-2025 | 2.7 KiB | 51 | 44 | |
nfc.gni | H A D | 17-Mar-2025 | 1.4 KiB | 41 | 37 |
README.md
1# NFC<a name="EN-US_TOPIC_0000001133207781"></a> 2 3- [Introduction](#section13587125816351) 4- [Architecture](#section13587185873516) 5- [Directory Structure](#section161941989596) 6- [Constraints](#section119744591305) 7- [Usage](#section1312121216216) 8- [Repositories Involved](#section1371113476307) 9 10## Introduction<a name="section13587125816351"></a> 11 12Near-field communication \(NFC\) is a non-contact identification and interconnection technology for short-distance wireless communication between mobile devices, consumer electronic products, PCs, and smart devices. 13 14NFC service provides NFC switch control, NFC tag discovery and dispatch, NFC tag reading and writing, NFC card emulation functions. 15 16## Architecture<a name="section13587185873516"></a> 17 18**Figure 1** NFC architecture<a name="fig4460722185514"></a> 19 20 21 22 23## Directory Structure<a name="section161941989596"></a> 24 25``` 26/foundation/communication/nfc 27├── interfaces # Interface 28│ └── inner_api # System inner interface 29├── frameworks # Framework interface 30│ └── js # Implementation of JS API 31│ └── napi # Napi implementation of JS API 32├── services # Service implementation 33├── test # Test code 34├── BUILD.gn # Build entry 35└── bundle.json # Component description 36``` 37 38## Constraints<a name="section119744591305"></a> 39 40- The device must have an NFC controller chip to use NFC services. 41 42## Usage<a name="section1312121216216"></a> 43 44- NFC switch 45 46Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-nfcController.md。 47 48- NFC tag reading and writing 49 50Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md。 51 52- NFC card emulation 53 54Please reference: docs/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md。 55 56## Repositories Involved<a name="section1371113476307"></a> 57 58hmf/communication/nfc 59 60
README_zh.md
1# NFC组件<a name="ZH-CN_TOPIC_0000001124412109"></a> 2 3- [简介](#section11660541593) 4- [系统架构](#section342962219551) 5- [目录](#section161941989596) 6- [约束](#section119744591305) 7- [说明](#section1312121216216) 8- [使用说明](#section129654513264) 9- [相关仓](#section1371113476307) 10 11## 简介<a name="section11660541593"></a> 12 13近距离无线通信技术\(Near Field Communication,NFC\) ,是一种非接触式识别和互联技术,可以在移动设备、消费类电子产品、PC和智能设备间进行近距离无线通信。 14 15NFC服务提供NFC开关控制、NFC标签发现和分发、NFC标签读写、NFC卡模拟等业务功能。 16 17## 系统架构<a name="section342962219551"></a> 18 19**图 1** NFC服务组件架构图<a name="fig444313176464"></a> 20 21 22 23 24<a name="table1716174620235"></a> 25<table><thead align="left"></thead> 26<tbody></tbody> 27</table> 28 29## 目录<a name="section161941989596"></a> 30 31``` 32/foundation/communication/nfc 33├── interfaces # 接口 34│ └── inner_api # 系统内部件间接口 35├── frameworks # 框架层接口 36│ └── js # JS API的实现 37│ └── napi # 通过napi封装的JS接口代码实现 38├── services # NFC服务进程的实现 39├── test # 测试代码 40├── BUILD.gn # 编译入口 41└── bundle.json # 部件描述文件 42``` 43 44## 约束<a name="section119744591305"></a> 45 46设备必须具备NFC控制器芯片,才能使用NFC服务。 47 48## 说明<a name="section1312121216216"></a> 49 50### 使用说明<a name="section129654513264"></a> 51 52- NFC开关 53 54参考开发指南: docs/zh-cn/application-dev/reference/apis-connectivity-kit/js-apis-nfcController.md。 55 56- NFC标签读写 57 58参考开发指南: docs/zh-cn/application-dev/reference/apis-connectivity-kit/js-apis-nfcTag.md。 59 60- NFC卡模拟 61 62参考开发指南: docs/zh-cn/application-dev/reference/apis-connectivity-kit/js-apis-cardEmulation.md。 63 64## 相关仓<a name="section1371113476307"></a> 65 66hmf/communication/nfc 67 68