MfRc522 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
MfRc522 module
public class MfRc522 : Iot.Device.Card.CardTransceiver, IDisposable
type MfRc522 = class
inherit CardTransceiver
interface IDisposable
Public Class MfRc522
Inherits CardTransceiver
Implements IDisposable
- Inheritance
- Implements
Constructors
MfRc522(I2cDevice, Int32, GpioController, Boolean) |
Constructor for MFRC5222 with I2C interface. |
MfRc522(SerialPort, Int32, GpioController, Boolean) |
Constructor for MFRC5222 with Serial Port interface. |
MfRc522(SpiDevice, Int32, GpioController, Boolean) |
Constructor for MFRC5222 with SPI interface. |
MfRc522(String, Int32, GpioController, Boolean) |
Constructor for MFRC5222 with Serial Port interface. |
Fields
DefaultSpiMode |
Only SPI Mode supported is Mode0 |
MaximumSpiClockFrequency |
The maximum speed for SPI transfer speed |
SupportedProtocols |
The set of NFC protocols that are supported by this transceiver. |
Properties
Enabled |
Switch on or off the antenna. |
Gain |
Get or Set the gain. |
MaximumReadSize |
The maximum number of bytes that can be read from the card in a single transaction, (excluding CRC). This is constrained by the operating mode as well as transceiver limitations (such as the size of a FIFO buffer in the transceiver). |
MaximumReadSize |
The maximum number of bytes that can be read from the card in a single transaction, (excluding CRC). This is constrained by the operating mode as well as transceiver limitations (such as the size of a FIFO buffer in the transceiver). (Inherited from CardTransceiver) |
MaximumWriteSize |
The maximum number of bytes that can be written to the card in a single transaction, (excluding CRC). This is constrained by the operating mode as well as transceiver limitations (such as the size of a FIFO buffer in the transceiver). |
MaximumWriteSize |
The maximum number of bytes that can be written to the card in a single transaction, (excluding CRC). This is constrained by the operating mode as well as transceiver limitations (such as the size of a FIFO buffer in the transceiver). (Inherited from CardTransceiver) |
SerialSpeed |
Set or Get the baud rate for the serial port communication. Default is 9600 baud. |
Version |
Get the Version. |
Methods
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Halt() |
Stop to communicate with a card. |
IsCardPresent(Byte[], Boolean) |
Check if a new card is present. |
IsCardPresent(Byte[]) |
Check if a new card is present. |
ListenToCardIso14443TypeA(Data106kbpsTypeA, TimeSpan) |
Listen to any 14443 Type A card. |
MifareAuthenticate(ReadOnlySpan<Byte>, MifareCardCommand, Byte, ReadOnlySpan<Byte>) |
Specific function to authenticate Mifare cards |
PrepareForSleep() |
Prepare for sleep, make sure cryptography is off and switch off the antenna. |
ReselectTarget(Byte) |
Once you have an authentication operation failing with Mifare cards or a read/write, the card stop. TYhe only way to have it back is to send the unselect and anti collision. This function provides this feature |
SendAndReceiveData(MfrcCommand, ReadOnlySpan<Byte>, Span<Byte>, Byte) |
Sand and Receive Data. |
SoftReset() |
Perform a soft reset. The configuration data of the internal buffer remains unchanged.All registers are set to the reset values.This command automatically terminates when finished. |
Transceive(Byte, ReadOnlySpan<Byte>, Span<Byte>, NfcProtocol) |
This function has to be implemented by all NFC/RFID/Card readers. This function is used in exchange of data with the reader and the cards. |
Transceive(Byte, ReadOnlySpan<Byte>, Span<Byte>, NfcProtocol) |
This function has to be implemented by all NFC/RFID/Card readers. This function is used in exchange of data with the reader and the cards. (Inherited from CardTransceiver) |
Transceive(Byte, ReadOnlySpan<Byte>, Span<Byte>) |
This function has to be implemented by all NFC/RFID/Card readers. This function is used in exchange of data with the reader and the cards. |
Transceive(Byte, ReadOnlySpan<Byte>, Span<Byte>) |
This function has to be implemented by all NFC/RFID/Card readers. This function is used in exchange of data with the reader and the cards. (Inherited from CardTransceiver) |