Enum AtcaStatus

Source
pub enum AtcaStatus {
Show 38 variants AtcaSuccess, AtcaConfigZoneLocked, AtcaDataZoneLocked, AtcaWakeFailed, AtcaCheckMacVerifyFailed, AtcaParseError, AtcaStatusCrc, AtcaStatusUnknown, AtcaStatusEcc, AtcaStatusSelftestError, AtcaFuncFail, AtcaGenFail, AtcaBadParam, AtcaInvalidId, AtcaInvalidSize, AtcaRxCrcError, AtcaRxFail, AtcaRxNoResponse, AtcaResyncWithWakeup, AtcaParityError, AtcaTxTimeout, AtcaRxTimeout, AtcaTooManyCommRetries, AtcaSmallBuffer, AtcaCommFail, AtcaTimeout, AtcaBadOpcode, AtcaWakeSuccess, AtcaExecutionError, AtcaUnimplemented, AtcaAssertFailure, AtcaTxFail, AtcaNotLocked, AtcaNoDevices, AtcaHealthTestError, AtcaAllocFailure, AtcaUseFlagsConsumed, AtcaUnknown,
}
Expand description

Return status for device accessing functions

Variants§

§

AtcaSuccess

Function succeeded.

§

AtcaConfigZoneLocked

§

AtcaDataZoneLocked

§

AtcaWakeFailed

response status byte indicates CheckMac failure (status byte = 0x01)

§

AtcaCheckMacVerifyFailed

response status byte indicates CheckMac failure (status byte = 0x01)

§

AtcaParseError

response status byte indicates parsing error (status byte = 0x03)

§

AtcaStatusCrc

response status byte indicates DEVICE did not receive data properly (status byte = 0xFF)

§

AtcaStatusUnknown

response status byte is unknown

§

AtcaStatusEcc

response status byte is ECC fault (status byte = 0x05)

§

AtcaStatusSelftestError

response status byte is Self Test Error, chip in failure mode (status byte = 0x07)

§

AtcaFuncFail

Function could not execute due to incorrect condition / state.

§

AtcaGenFail

unspecified error

§

AtcaBadParam

bad argument (out of range, null pointer, etc.)

§

AtcaInvalidId

invalid device id, id not set

§

AtcaInvalidSize

Count value is out of range or greater than buffer size.

§

AtcaRxCrcError

CRC error in data received from device

§

AtcaRxFail

Timed out while waiting for response. Number of bytes received is > 0.

§

AtcaRxNoResponse

Not an error while the Command layer is polling for a command response.

§

AtcaResyncWithWakeup

Re-synchronization succeeded, but only after generating a Wake-up

§

AtcaParityError

for protocols needing parity

§

AtcaTxTimeout

for Microchip PHY protocol, timeout on transmission waiting for master

§

AtcaRxTimeout

for Microchip PHY protocol, timeout on receipt waiting for master

§

AtcaTooManyCommRetries

Device did not respond too many times during a transmission. Could indicate no device present.

§

AtcaSmallBuffer

Supplied buffer is too small for data required

§

AtcaCommFail

Communication with device failed. Same as in hardware dependent modules.

§

AtcaTimeout

Timed out while waiting for response. Number of bytes received is 0.

§

AtcaBadOpcode

opcode is not supported by the device

§

AtcaWakeSuccess

received proper wake token

§

AtcaExecutionError

chip was in a state where it could not execute the command, response status byte indicates command execution error (status byte = 0x0F)

§

AtcaUnimplemented

Function or some element of it hasn’t been implemented yet

§

AtcaAssertFailure

Code failed run-time consistency check

§

AtcaTxFail

Failed to write

§

AtcaNotLocked

required zone was not locked

§

AtcaNoDevices

For protocols that support device discovery (kit protocol), no devices were found

§

AtcaHealthTestError

random number generator health test error

§

AtcaAllocFailure

Couldn’t allocate required memory

§

AtcaUseFlagsConsumed

Use flags on the device indicates its consumed fully

§

AtcaUnknown

Unknown error occured

Trait Implementations§

Source§

impl Clone for AtcaStatus

Source§

fn clone(&self) -> AtcaStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AtcaStatus

Source§

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

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

impl Display for AtcaStatus

Source§

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

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

impl From<u32> for AtcaStatus

Source§

fn from(atca_status: ATCA_STATUS) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for AtcaStatus

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 AtcaStatus

Source§

impl StructuralPartialEq for AtcaStatus

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V