Class CardEmulationData
Holds the result of a successful Autocoll activation during card emulation mode.
public class CardEmulationData
- Inheritance
-
CardEmulationData
Remarks
After the PN5180 enters Autocoll mode and an external reader activates the device, this class provides the activated protocol and the first data frame received from the reader (e.g. RATS for ISO-DEP, ATR_REQ for NFC-DEP).
Constructors
CardEmulationData(TargetProtocol, byte[])
Creates a new CardEmulationData instance.
public CardEmulationData(TargetProtocol activatedProtocol, byte[] rxData)
Parameters
activatedProtocolTargetProtocolThe NFC technology used by the external reader.
rxDatabyte[]The first data frame received from the reader after activation, or null if none.
Properties
ActivatedProtocol
Gets the NFC technology that the external reader used to activate the PN5180 during Autocoll.
public TargetProtocol ActivatedProtocol { get; }
Property Value
Remarks
Derived from RF_STATUS register (0x1D) bits [16:14].
RxData
Gets the first data frame received from the external reader after the card emulation activation completed.
public byte[] RxData { get; }
Property Value
- byte[]
Remarks
For NFC-A ISO-DEP this is typically the RATS command. For NFC-DEP this is typically the ATR_REQ. May be null if no data was available after activation.