INfcInterface

概述

声明操作nfc芯片的API,包括关闭、打开nfc,初始化nfc,读写数据、配置RF参数、发送nci指令。

起始版本: 4.1

相关模块:HdiNfc

汇总

Public 成员函数

名称 描述
GetVendorConfig ([out] struct NfcVendorConfig config, [out] enum NfcStatus status) 查询厂商自定义的NFC配置。
DoFactoryReset ([out] enum NfcStatus status) NFC芯片工厂级复位。
Shutdown ([out] enum NfcStatus status) 关闭NFC。如果设备支持关机刷卡功能,需要实现该接口

成员函数说明

DoFactoryReset()

INfcInterface::DoFactoryReset ([out] enum NfcStatus status)

描述

NFC芯片工厂级复位。

起始版本: 4.1

返回:

操作成功返回0,否则返回失败。 具体类型详见NfcTypes

GetVendorConfig()

INfcInterface::GetVendorConfig ([out] struct NfcVendorConfig config, [out] enum NfcStatus status )

描述

查询厂商自定义的NFC配置。

起始版本: 4.1

参数:

名称 描述
config 厂商自定义的NFC配置。

返回:

操作成功返回0,否则返回失败。 具体类型详见NfcTypes

Shutdown()

INfcInterface::Shutdown ([out] enum NfcStatus status)

描述

关闭NFC。如果设备支持关机刷卡功能,需要实现该接口

起始版本: 4.1

返回:

操作成功返回0,否则返回失败。 具体类型详见NfcTypes