Pn5180.SendDataToCard(Span<Byte>, Int32) Method

Definition

Send data to a card.

public bool SendDataToCard (Span<byte> toSend, int numberValidBitsLastByte = 8);
member this.SendDataToCard : Span<byte> * int -> bool
Public Function SendDataToCard (toSend As Span(Of Byte), Optional numberValidBitsLastByte As Integer = 8) As Boolean

Parameters

toSend
Span<Byte>

The span of byte to send

numberValidBitsLastByte
Int32

The number of bits valid in the last byte, 8 is the default. If validBits == 3 then it's equivalent to apply a mask of 0b000_0111 to get the correct valid bits

Returns

True if success

Remarks

Using this function you'll have to manage yourself the possible low level communication protocol. This function write directly to the card all the bytes. Please make sure you'll first load specific radio frequence settings, detect a card, select it and then send data

Applies to