pub enum RPSR {
STOPPED,
RUNNINGFETCHING,
RUNNINGWAITING,
SUSPENDED,
RUNNINGWRITING,
_Reserved(u8),
}
Expand description
Possible values of the field RPS
Variants§
STOPPED
Stopped, reset or Stop Receive command issued
RUNNINGFETCHING
Running, fetching receive transfer descriptor
RUNNINGWAITING
Running, waiting for receive packet
SUSPENDED
Suspended, receive descriptor unavailable
RUNNINGWRITING
Running, writing data to host memory buffer
_Reserved(u8)
Reserved
Implementations§
Source§impl RPSR
impl RPSR
Sourcepub fn is_stopped(&self) -> bool
pub fn is_stopped(&self) -> bool
Checks if the value of the field is STOPPED
Sourcepub fn is_running_fetching(&self) -> bool
pub fn is_running_fetching(&self) -> bool
Checks if the value of the field is RUNNINGFETCHING
Sourcepub fn is_running_waiting(&self) -> bool
pub fn is_running_waiting(&self) -> bool
Checks if the value of the field is RUNNINGWAITING
Sourcepub fn is_suspended(&self) -> bool
pub fn is_suspended(&self) -> bool
Checks if the value of the field is SUSPENDED
Sourcepub fn is_running_writing(&self) -> bool
pub fn is_running_writing(&self) -> bool
Checks if the value of the field is RUNNINGWRITING
Trait Implementations§
impl Copy for RPSR
impl StructuralPartialEq for RPSR
Auto Trait Implementations§
impl Freeze for RPSR
impl RefUnwindSafe for RPSR
impl Send for RPSR
impl Sync for RPSR
impl Unpin for RPSR
impl UnwindSafe for RPSR
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