Skip to main content

StatusCode

Enum StatusCode 

Source
#[repr(u16)]
pub enum StatusCode {
Show 37 variants Success = 0, DataLengthMismatch = 256, UnavailableCommand = 257, UnavailableParameter = 261, UnavailableBaudRate = 266, UnavailableRegion = 267, AppFirmwareCrcError = 512, FlashWriteFailed = 770, NoTagFound = 1_024, ProtocolUnavailable = 1_026, GeneralTagError = 1_034, ReadLengthOutOfLimit = 1_035, UnavailableKillPassword = 1_036, Gen2ProtocolError = 1_056, MemoryOverrunBadPc = 1_059, MemoryLocked = 1_060, InsufficientPower = 1_067, NonSpecificError = 1_071, UnknownTagError = 1_072, UnavailableFrequency = 1_280, TemperatureOverrun = 1_284, HighReturnLoss = 1_285, UnknownSeriousError = 32_512, InitTimerFlashGpioError = 65_281, OemInitFailed = 65_282, CommandInterfaceInitFailed = 65_283, MacRegisterRwInitFailed = 65_284, MacRegisterInitFailed = 65_285, R2000Arm7InterfaceInitFailed = 65_286, R2000Arm7DetectFailed1 = 65_287, R2000Arm7DetectFailed2 = 65_288, GpioConfigError = 65_289, R2000RegisterInitFailed = 65_290, EpcProtocolInitFailed = 65_291, OemMacMappingInitFailed = 65_292, SerialInitFailed = 65_293, AppMainHandlerInterfaceError = 65_294,
}
Expand description

Reader status code values from the documentation.

Variants§

§

Success = 0

0x0000

§

DataLengthMismatch = 256

0x0100

§

UnavailableCommand = 257

0x0101

§

UnavailableParameter = 261

0x0105

§

UnavailableBaudRate = 266

0x010A

§

UnavailableRegion = 267

0x010B

§

AppFirmwareCrcError = 512

0x0200

§

FlashWriteFailed = 770

0x0302

§

NoTagFound = 1_024

0x0400

§

ProtocolUnavailable = 1_026

0x0402

§

GeneralTagError = 1_034

0x040A

§

ReadLengthOutOfLimit = 1_035

0x040B

§

UnavailableKillPassword = 1_036

0x040C

§

Gen2ProtocolError = 1_056

0x0420

§

MemoryOverrunBadPc = 1_059

0x0423

§

MemoryLocked = 1_060

0x0424

§

InsufficientPower = 1_067

0x042B

§

NonSpecificError = 1_071

0x042F

§

UnknownTagError = 1_072

0x0430

§

UnavailableFrequency = 1_280

0x0500

§

TemperatureOverrun = 1_284

0x0504

§

HighReturnLoss = 1_285

0x0505

§

UnknownSeriousError = 32_512

0x7F00

§

InitTimerFlashGpioError = 65_281

0xFF01

§

OemInitFailed = 65_282

0xFF02

§

CommandInterfaceInitFailed = 65_283

0xFF03

§

MacRegisterRwInitFailed = 65_284

0xFF04

§

MacRegisterInitFailed = 65_285

0xFF05

§

R2000Arm7InterfaceInitFailed = 65_286

0xFF06

§

R2000Arm7DetectFailed1 = 65_287

0xFF07

§

R2000Arm7DetectFailed2 = 65_288

0xFF08

§

GpioConfigError = 65_289

0xFF09

§

R2000RegisterInitFailed = 65_290

0xFF0A

§

EpcProtocolInitFailed = 65_291

0xFF0B

§

OemMacMappingInitFailed = 65_292

0xFF0C

§

SerialInitFailed = 65_293

0xFF0D

§

AppMainHandlerInterfaceError = 65_294

0xFF0E

Implementations§

Source§

impl StatusCode

Source

pub const fn from_u16(raw: u16) -> Option<Self>

Convert raw 16-bit status to enum if known.

Trait Implementations§

Source§

impl Clone for StatusCode

Source§

fn clone(&self) -> StatusCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for StatusCode

Source§

fn eq(&self, other: &StatusCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for StatusCode

Source§

impl Eq for StatusCode

Source§

impl StructuralPartialEq for StatusCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.