stm32-metapac

Crates

git

Versions

stm32h573zi

Flavors

Enum stm32_metapac::i3c::vals::Coderr

#[repr(u8)]
pub enum Coderr {
Show 16 variants CE0 = 0, CE1 = 1, CE2 = 2, CE3 = 3, _RESERVED_4 = 4, _RESERVED_5 = 5, _RESERVED_6 = 6, _RESERVED_7 = 7, TE0 = 8, TE1 = 9, TE2 = 10, TE3 = 11, TE4 = 12, TE5 = 13, TE6 = 14, _RESERVED_f = 15,
}

Variants§

§

CE0 = 0

Transaction after sending CCC. Controller detected an illegally formatted CCC

§

CE1 = 1

Monitoring error. Controller detected that transmitted data on the bus is different from expected

§

CE2 = 2

No response to broadcast address. Controller detected a not acknowledged broadcast address (0b111_1110)

§

CE3 = 3

Failed controller-role hand-off. Controller detected the new controller did not drive bus after controller-role hand-off

§

_RESERVED_4 = 4

§

_RESERVED_5 = 5

§

_RESERVED_6 = 6

§

_RESERVED_7 = 7

§

TE0 = 8

Invalid broadcast address 0b111_1110 + W. Target detected an invalid broadcast address 0b111_1110 + W

§

TE1 = 9

CCC code. Target detected a parity error on a CCC code via a parity check (vs. T bit)

§

TE2 = 10

Write data. Target detected a parity error on a write data via a parity check (vs. T bit)

§

TE3 = 11

Assigned address during dynamic address arbitration. Target detected a parity error on the assigned address during dynamic address arbitration via a parity check (vs. PAR bit)

§

TE4 = 12

0b111_1110 + R missing after Sr during dynamic address arbitration. Target detected a 0b111_1110 + R missing after Sr during dynamic address arbitration

§

TE5 = 13

Transaction after detecting CCC. Target detected an illegally formatted CCC

§

TE6 = 14

Monitoring error. Target detected that transmitted data on the bus is different from expected

§

_RESERVED_f = 15

Implementations§

§

impl Coderr

pub const fn from_bits(val: u8) -> Coderr

pub const fn to_bits(self) -> u8

Trait Implementations§

§

impl Clone for Coderr

§

fn clone(&self) -> Coderr

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl From<Coderr> for u8

§

fn from(val: Coderr) -> u8

Converts to this type from the input type.
§

impl From<u8> for Coderr

§

fn from(val: u8) -> Coderr

Converts to this type from the input type.
§

impl Ord for Coderr

§

fn cmp(&self, other: &Coderr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Coderr

§

fn eq(&self, other: &Coderr) -> 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.
§

impl PartialOrd for Coderr

§

fn partial_cmp(&self, other: &Coderr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Copy for Coderr

§

impl Eq for Coderr

§

impl StructuralPartialEq for Coderr

Auto Trait Implementations§

§

impl Freeze for Coderr

§

impl RefUnwindSafe for Coderr

§

impl Send for Coderr

§

impl Sync for Coderr

§

impl Unpin for Coderr

§

impl UnwindSafe for Coderr

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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.