[][src]Enum sodaq_one::usb::host::fsmstatus::FSMSTATER

pub enum FSMSTATER {
    OFF,
    ON,
    SUSPEND,
    SLEEP,
    DNRESUME,
    UPRESUME,
    RESET,
    _Reserved(u8),
}

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[src]

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

Value of the field as raw bits

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

Checks if the value of the field is OFF

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

Checks if the value of the field is ON

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

Checks if the value of the field is SUSPEND

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

Checks if the value of the field is SLEEP

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

Checks if the value of the field is DNRESUME

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

Checks if the value of the field is UPRESUME

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

Checks if the value of the field is RESET

Trait Implementations

impl PartialEq<FSMSTATER> for FSMSTATER[src]

impl Debug for FSMSTATER[src]

impl Copy for FSMSTATER[src]

impl Clone for FSMSTATER[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 FSMSTATER

impl Sync for FSMSTATER

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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