Pn5180.ReadDataFromCard Method

Definition

Overloads

ReadDataFromCard(Span<Byte>)

Read data from a card.

ReadDataFromCard(Span<Byte>, Int32)

Read all the data from the card

ReadDataFromCard(Span<Byte>)

Read data from a card.

public bool ReadDataFromCard (Span<byte> toRead);
member this.ReadDataFromCard : Span<byte> -> bool
Public Function ReadDataFromCard (toRead As Span(Of Byte)) As Boolean

Parameters

toRead
Span<Byte>

The span of byte to read

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

ReadDataFromCard(Span<Byte>, Int32)

Read all the data from the card

public bool ReadDataFromCard (Span<byte> toRead, out int bytesRead);
member this.ReadDataFromCard : Span<byte> * int -> bool
Public Function ReadDataFromCard (toRead As Span(Of Byte), ByRef bytesRead As Integer) As Boolean

Parameters

toRead
Span<Byte>

>The span of byte to read

bytesRead
Int32

number of bytes read

Returns

A byte array with all the read elements, null if nothing can be read

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