[−]Enum sodaq_one::target_device::usb::host::fsmstatus::FSMSTATER
Possible values of the field FSMSTATE
Variants
OFF
OFF (L3). It corresponds to the powered-off, disconnected, and disabled state
ON
ON (L0). It corresponds to the Idle and Active states
SUSPEND
SUSPEND (L2)
SLEEP
SLEEP (L1)
DNRESUME
DNRESUME. Down Stream Resume.
UPRESUME
UPRESUME. Up Stream Resume.
RESET
RESET. USB lines Reset.
_Reserved(u8)
Reserved
Methods
impl FSMSTATER
pub fn bits(&self) -> u8
Value of the field as raw bits
pub fn is_off(&self) -> bool
Checks if the value of the field is OFF
pub fn is_on(&self) -> bool
Checks if the value of the field is ON
pub fn is_suspend(&self) -> bool
Checks if the value of the field is SUSPEND
pub fn is_sleep(&self) -> bool
Checks if the value of the field is SLEEP
pub fn is_dnresume(&self) -> bool
Checks if the value of the field is DNRESUME
pub fn is_upresume(&self) -> bool
Checks if the value of the field is UPRESUME
pub fn is_reset(&self) -> bool
Checks if the value of the field is RESET
Trait Implementations
impl PartialEq<FSMSTATER> for FSMSTATER
impl Debug for FSMSTATER
impl Copy for FSMSTATER
impl Clone for FSMSTATER
fn clone(&self) -> FSMSTATER
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self