[][src]Enum rfid_rs::picc::Command

pub enum Command {
    REQA,
    WUPA,
    CT,
    SelCl1,
    SelCl2,
    SelCl3,
    HLTA,
    RATS,
    MfAuthKeyA,
    MfAuthKeyB,
    MfRead,
    MfWrite,
    MfDecrement,
    MfIncrement,
    MfRestore,
    MfTransfer,
    UlWrite,
}

Commands that can be send to the PICC.
The commands used for MIFARE Classic begin with Mf (cfr Section 9).
The commands used for MIFARE Ultralight begin with Ul (cfr Section 8.6).
Use PCD_MFAuthent to authenticate access to a sector,
then use the other commands to read/write/modify the blocks on the sector.
The read/write commands can also be used for MIFARE Ultralight.

Variants

REQA

REQuest command, Type A. invites PICCs in state IDLE to go to READY
and prepare for anticollision or selection. 7 bit frame.

WUPA

Wake-UP command, Type A. invites PICCs in state IDLE and HALT to go to READY(*)
and prepare for anticollision or selection. 7 bit frame.

CT

Cascade Tag. Not really a command, but used during anti collision.

SelCl1

Anti collision/Select, Cascade Level 1

SelCl2

Anti collision/Select, Cascade Level 2

SelCl3

Anti collision/Select, Cascade Level 3

HLTA

HaLT command, Type A. Instructs an ACTIVE PICC to go to state HALT.

RATS

Request command for Answer To Reset.

MfAuthKeyA

Perform authentication with Key A

MfAuthKeyB

Perform authentication with Key B

MfRead

Reads one 16 byte block from the authenticated sector of the PICC.
Also used for MIFARE Ultralight.

MfWrite

Writes one 16 byte block to the authenticated sector of the PICC.
Called "COMPATIBILITY WRITE" for MIFARE Ultralight.

MfDecrement

Decrements the contents of a block and stores the result in the internal data register.

MfIncrement

Increments the contents of a block and stores the result in the internal data register.

MfRestore

Reads the contents of a block into the internal data register.

MfTransfer

Writes the contents of the internal data register to a block.

UlWrite

Writes one 4 byte page to the PICC.

Trait Implementations

impl Clone for Command[src]

impl Copy for Command[src]

impl Debug for Command[src]

impl PartialEq<Command> for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.