MfRc522.SendAndReceiveData Method

Definition

Sand and Receive Data.

public Iot.Device.Mfrc522.Status SendAndReceiveData (Iot.Device.Mfrc522.MfrcCommand command, ReadOnlySpan<byte> sendData, Span<byte> receiveData, byte numberValidBitsLastByte = 8);
member this.SendAndReceiveData : Iot.Device.Mfrc522.MfrcCommand * ReadOnlySpan<byte> * Span<byte> * byte -> Iot.Device.Mfrc522.Status
Public Function SendAndReceiveData (command As MfrcCommand, sendData As ReadOnlySpan(Of Byte), receiveData As Span(Of Byte), Optional numberValidBitsLastByte As Byte = 8) As Status

Parameters

command
MfrcCommand

The MFRC522 command.

sendData
ReadOnlySpan<Byte>

The data to send.

receiveData
Span<Byte>

The data to receive. Note that you need to have at least the size of data you expect to receive.

numberValidBitsLastByte
Byte

The number of bits valid in the last byte, 8 is the default.

Returns

True if the operation is successful.

Applies to