stm32-metapac

Crates

git

Versions

stm32g483ce

Flavors

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

pub const fn ep_id(&self) -> u8

EP_ID

pub fn set_ep_id(&mut self, val: u8)

EP_ID

pub const fn dir(&self) -> Dir

DIR

pub fn set_dir(&mut self, val: Dir)

DIR

pub const fn l1req(&self) -> bool

LPM command to enter the L1 state is successfully received and acknowledged

pub fn set_l1req(&mut self, val: bool)

LPM command to enter the L1 state is successfully received and acknowledged

pub const fn esof(&self) -> bool

an SOF packet is expected but not received

pub fn set_esof(&mut self, val: bool)

an SOF packet is expected but not received

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)

beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus

pub const fn reset(&self) -> bool

peripheral detects an active USB RESET signal at its inputs

pub fn set_reset(&mut self, val: bool)

peripheral detects an active USB RESET signal at its inputs

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)

no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus

pub const fn wkup(&self) -> bool

activity is detected that wakes up the USB peripheral

pub fn set_wkup(&mut self, val: bool)

activity is detected that wakes up the USB peripheral

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)

One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred

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)

microcontroller has not been able to respond in time to an USB memory request

pub const fn ctr(&self) -> bool

endpoint has successfully completed a transaction

pub fn set_ctr(&mut self, val: bool)

endpoint has successfully completed a transaction

Trait Implementations§

§

impl Clone for Istr

§

fn clone(&self) -> Istr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for Istr

§

fn default() -> Istr

Returns the “default value” for a type. Read more
§

impl PartialEq for Istr

§

fn eq(&self, other: &Istr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.