Edit

Share via


MfrcCommand Enum

Definition

Command of MFRC522 reader

public enum MfrcCommand
type MfrcCommand = 
Public Enum MfrcCommand
Inheritance
MfrcCommand

Fields

Name Value Description
Idle 0

Idle : no action, cancels current command execution

Memory 1

Memory: stores 25 bytes into the internal buffer

GenerateRandomId 2

Generate Random Id: generates a 10-byte random ID number

CalculateCrc 3

Calculate CRC: activates the CRC coprocessor or performs a self test

Transmit 4

Transmit: transmits data from the FIFO buffer

NoCommandChange 7

No Command Change: no command change, can be used to modify the CommandReg register bits without affecting the command, for example, the PowerDown bit

Receive 8

Receive: activates the receiver circuits

Transceive 12

Transceive: transmits data from FIFO buffer to antenna and automatically activates the receiver after transmission

MifareAuthenticate 14

Mifare Authenticate: performs the MIFARE standard authentication as a reader

ResetPhase 15

Reset Phase: soft resets the MFRC522

Remarks

Most of the time, the only one you need to use is the Transceive command. The SendAndReceiveData function is already using some of those commands to allow send and receive scenarios

Applies to