Struct stm32_metapac::usb::regs::Istr
#[repr(transparent)]pub struct Istr(pub u32);
Expand description
interrupt status register
Tuple Fields§
§0: u32
Implementations§
§impl Istr
impl Istr
pub const fn sof(&self) -> bool
pub const fn sof(&self) -> bool
beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus
pub fn set_sof(&mut self, val: bool)
pub fn set_sof(&mut self, val: bool)
beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus
pub const fn susp(&self) -> bool
pub const fn susp(&self) -> bool
no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus
pub fn set_susp(&mut self, val: bool)
pub fn set_susp(&mut self, val: bool)
no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus
pub const fn err(&self) -> bool
pub const fn err(&self) -> bool
One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred
pub fn set_err(&mut self, val: bool)
pub fn set_err(&mut self, val: bool)
One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred
pub const fn pmaovr(&self) -> bool
pub const fn pmaovr(&self) -> bool
microcontroller has not been able to respond in time to an USB memory request
pub fn set_pmaovr(&mut self, val: bool)
pub fn set_pmaovr(&mut self, val: bool)
microcontroller has not been able to respond in time to an USB memory request
Trait Implementations§
impl Copy for Istr
impl Eq for Istr
impl StructuralPartialEq for Istr
Auto Trait Implementations§
impl Freeze for Istr
impl RefUnwindSafe for Istr
impl Send for Istr
impl Sync for Istr
impl Unpin for Istr
impl UnwindSafe for Istr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)