EVT_NFC_CX_SEQUENCE_HANDLER callback function (nfccx.h)

Called by the NFC CX to notify the client driver to handle the specific registered sequence.

Syntax

EVT_NFC_CX_SEQUENCE_HANDLER EvtNfcCxSequenceHandler;

void EvtNfcCxSequenceHandler(
  [in]           WDFDEVICE Device,
  [in]           NFC_CX_SEQUENCE Sequence,
  [in]           PFN_NFC_CX_SEQUENCE_COMPLETION_ROUTINE CompletionRoutine,
  [in, optional] WDFCONTEXT CompletionContext
)
{...}

Parameters

[in] Device

A handle to a framework device object.

[in] Sequence

An NFC_CX_SEQUENCE enumeration.

[in] CompletionRoutine

A pointer to a CompletionRoutine callback function.

[in, optional] CompletionContext

Driver-defined context information that the driver specified when it registered the EvtNfcCxSequenceHandler callback function.

Return value

None

Remarks

On completion of handling the sequence, the client driver notifies the NFC CX through the sequence completion callback. Similar to EvtNfcCxWriteNciPacket, the client must not make any blocking calls when handling this function call. Any I/O processing must be handled on a separate thread or work item. However, the client driver can invoke the completion routine with a status flag when handling this call.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server None supported
Target Platform Desktop
Header nfccx.h (include Ncidef.h)

See also

NFC class extension design guide

Near field communication (NFC) design guide