pub enum SOFR {
STARTOFFRAME,
_Reserved(bool),
}
Expand description
Possible values of the field SOF
Variants§
STARTOFFRAME
beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus
_Reserved(bool)
Reserved
Implementations§
Source§impl SOFR
impl SOFR
Sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
Sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
Sourcepub fn is_start_of_frame(&self) -> bool
pub fn is_start_of_frame(&self) -> bool
Checks if the value of the field is STARTOFFRAME
Trait Implementations§
impl Copy for SOFR
impl StructuralPartialEq for SOFR
Auto Trait Implementations§
impl Freeze for SOFR
impl RefUnwindSafe for SOFR
impl Send for SOFR
impl Sync for SOFR
impl Unpin for SOFR
impl UnwindSafe for SOFR
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