#[repr(u8)]pub enum Fsmstateselect {
Off = 1,
On = 2,
Suspend = 4,
Sleep = 8,
Dnresume = 16,
Upresume = 32,
Reset = 64,
}
Expand description
Fine State Machine Status
Value on reset: 1
Variants§
Off = 1
1: OFF (L3). It corresponds to the powered-off, disconnected, and disabled state
On = 2
2: ON (L0). It corresponds to the Idle and Active states
Suspend = 4
4: SUSPEND (L2)
Sleep = 8
8: SLEEP (L1)
Dnresume = 16
16: DNRESUME. Down Stream Resume.
Upresume = 32
32: UPRESUME. Up Stream Resume.
Reset = 64
64: RESET. USB lines Reset.
Trait Implementations§
Source§impl Clone for Fsmstateselect
impl Clone for Fsmstateselect
Source§fn clone(&self) -> Fsmstateselect
fn clone(&self) -> Fsmstateselect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Fsmstateselect
impl Debug for Fsmstateselect
Source§impl From<Fsmstateselect> for u8
impl From<Fsmstateselect> for u8
Source§fn from(variant: Fsmstateselect) -> Self
fn from(variant: Fsmstateselect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Fsmstateselect
impl PartialEq for Fsmstateselect
impl Copy for Fsmstateselect
impl Eq for Fsmstateselect
impl IsEnum for Fsmstateselect
impl StructuralPartialEq for Fsmstateselect
Auto Trait Implementations§
impl Freeze for Fsmstateselect
impl RefUnwindSafe for Fsmstateselect
impl Send for Fsmstateselect
impl Sync for Fsmstateselect
impl Unpin for Fsmstateselect
impl UnwindSafe for Fsmstateselect
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