Enum stm32_metapac::i3c::vals::Crinit
#[repr(u8)]pub enum Crinit {
TARGET = 0,
CONTROLLER = 1,
}
Variants§
TARGET = 0
Once enabled by setting EN = 1, the peripheral initially acts as a target. I3C does not drive SCL line and does not enable SDA pull-up, until it eventually acquires the controller role.
CONTROLLER = 1
Once enabled by setting EN = 1, the peripheral initially acts as a controller. It has the I3C controller role, so drives SCL line and enables SDA pull-up, until it eventually offers the controller role to an I3C secondary controller.
Implementations§
Trait Implementations§
§impl Ord for Crinit
impl Ord for Crinit
§impl PartialOrd for Crinit
impl PartialOrd for Crinit
§fn partial_cmp(&self, other: &Crinit) -> Option<Ordering>
fn partial_cmp(&self, other: &Crinit) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Crinit
impl Eq for Crinit
impl StructuralEq for Crinit
impl StructuralPartialEq for Crinit
Auto Trait Implementations§
impl RefUnwindSafe for Crinit
impl Send for Crinit
impl Sync for Crinit
impl Unpin for Crinit
impl UnwindSafe for Crinit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more