page_type | description | languages | products | |||
---|---|---|---|---|---|---|
sample |
Sample code for creating a NFC driver using the NFC Class Extension. |
|
|
A template for creating an NFC functional driver using the NFC Class Extension (CX) driver.
This is a complete version of the code created in the NFC CX quick start guide.
To use the NFC CX, your NFC Controller must implement NFC Forum's NFC Controller Interface (NCI) protocol.
In addition, the NFC CX requires the driver to use the UMDF 2 framework.
This sample builds a Universal Windows Driver. It uses only APIs and DDIs that are included in OneCoreUAP.
- NfcCx.h - The NFC CX's client driver API. This file is included in the WDK.
-
DriverEntry
- Driver initialization.
-
DeviceContext::AddDevice
- Device initialization, including initializing the NFC CX driver.DeviceContext::WriteNciPacket
- The implementation of theEvtNfcCxWriteNciPacket
callback function.DeviceContext::ReadNciPacket
- Demonstrates callingNfcCxNciReadNotification
.
-
DeviceContext
- The class that stores the device instance's state.