[][src]Enum lpc55s6x_pac::usb0::info::ERR_CODER

pub enum ERR_CODER {
    NO_ERROR,
    PID_ENCODING_ERROR,
    PID_UNKNOWN,
    PACKET_UNEXPECTED,
    TOKEN_CRC_ERROR,
    DATA_CRC_ERROR,
    TIMEOUT,
    BABBLE,
    TRUNCATED_EOP,
    SENT_RECEIVED_NAK,
    SENT_STALL,
    OVERRUN,
    SENT_EMPTY_PACKET,
    BITSTUFF_ERROR,
    SYNC_ERROR,
    WRONG_DATA_TOGGLE,
}
[]

Possible values of the field ERR_CODE

Variants

NO_ERROR
[]

No error

PID_ENCODING_ERROR
[]

PID encoding error

PID_UNKNOWN
[]

PID unknown

PACKET_UNEXPECTED
[]

Packet unexpected

TOKEN_CRC_ERROR
[]

Token CRC error

DATA_CRC_ERROR
[]

Data CRC error

TIMEOUT
[]

Time out

BABBLE
[]

Babble

TRUNCATED_EOP
[]

Truncated EOP

SENT_RECEIVED_NAK
[]

Sent/Received NAK

SENT_STALL
[]

Sent Stall

OVERRUN
[]

Overrun

SENT_EMPTY_PACKET
[]

Sent empty packet

BITSTUFF_ERROR
[]

Bitstuff error

SYNC_ERROR
[]

Sync error

WRONG_DATA_TOGGLE
[]

Wrong data toggle

Methods

impl ERR_CODER[src][]

pub fn bits(&self) -> u8[src][]

Value of the field as raw bits

pub fn is_no_error(&self) -> bool[src][]

Checks if the value of the field is NO_ERROR

pub fn is_pid_encoding_error(&self) -> bool[src][]

Checks if the value of the field is PID_ENCODING_ERROR

pub fn is_pid_unknown(&self) -> bool[src][]

Checks if the value of the field is PID_UNKNOWN

pub fn is_packet_unexpected(&self) -> bool[src][]

Checks if the value of the field is PACKET_UNEXPECTED

pub fn is_token_crc_error(&self) -> bool[src][]

Checks if the value of the field is TOKEN_CRC_ERROR

pub fn is_data_crc_error(&self) -> bool[src][]

Checks if the value of the field is DATA_CRC_ERROR

pub fn is_timeout(&self) -> bool[src][]

Checks if the value of the field is TIMEOUT

pub fn is_babble(&self) -> bool[src][]

Checks if the value of the field is BABBLE

pub fn is_truncated_eop(&self) -> bool[src][]

Checks if the value of the field is TRUNCATED_EOP

pub fn is_sent_received_nak(&self) -> bool[src][]

Checks if the value of the field is SENT_RECEIVED_NAK

pub fn is_sent_stall(&self) -> bool[src][]

Checks if the value of the field is SENT_STALL

pub fn is_overrun(&self) -> bool[src][]

Checks if the value of the field is OVERRUN

pub fn is_sent_empty_packet(&self) -> bool[src][]

Checks if the value of the field is SENT_EMPTY_PACKET

pub fn is_bitstuff_error(&self) -> bool[src][]

Checks if the value of the field is BITSTUFF_ERROR

pub fn is_sync_error(&self) -> bool[src][]

Checks if the value of the field is SYNC_ERROR

pub fn is_wrong_data_toggle(&self) -> bool[src][]

Checks if the value of the field is WRONG_DATA_TOGGLE

Trait Implementations

impl PartialEq<ERR_CODER> for ERR_CODER[src][+]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src][]

This method tests for !=.

impl Copy for ERR_CODER[src]

impl Debug for ERR_CODER[src][+]

impl Clone for ERR_CODER[src][+]

fn clone_from(&mut self, source: &Self)1.0.0[src][]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ERR_CODER

impl Sync for ERR_CODER

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src][+]

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.

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

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

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

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

type Output = T

Should always be Self