stm32-metapac

Crates

git

Versions

stm32h7s7l8

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Struct stm32_metapac::otg::regs::Gintsts

#[repr(transparent)]
pub struct Gintsts(pub u32);
Expand description

Core interrupt register

Tuple Fieldsยง

ยง0: u32

Implementationsยง

ยง

impl Gintsts

pub const fn cmod(&self) -> bool

Current mode of operation

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

Current mode of operation

pub const fn mmis(&self) -> bool

Mode mismatch interrupt

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

Mode mismatch interrupt

pub const fn otgint(&self) -> bool

OTG interrupt

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

OTG interrupt

pub const fn sof(&self) -> bool

Start of frame

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

Start of frame

pub const fn rxflvl(&self) -> bool

RxFIFO non-empty

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

RxFIFO non-empty

pub const fn nptxfe(&self) -> bool

Non-periodic TxFIFO empty

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

Non-periodic TxFIFO empty

pub const fn ginakeff(&self) -> bool

Global IN non-periodic NAK effective

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

Global IN non-periodic NAK effective

pub const fn goutnakeff(&self) -> bool

Global OUT NAK effective

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

Global OUT NAK effective

pub const fn esusp(&self) -> bool

Early suspend

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

Early suspend

pub const fn usbsusp(&self) -> bool

USB suspend

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

USB suspend

pub const fn usbrst(&self) -> bool

USB reset

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

USB reset

pub const fn enumdne(&self) -> bool

Enumeration done

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

Enumeration done

pub const fn isoodrp(&self) -> bool

Isochronous OUT packet dropped interrupt

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

Isochronous OUT packet dropped interrupt

pub const fn eopf(&self) -> bool

End of periodic frame interrupt

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

End of periodic frame interrupt

pub const fn iepint(&self) -> bool

IN endpoint interrupt

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

IN endpoint interrupt

pub const fn oepint(&self) -> bool

OUT endpoint interrupt

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

OUT endpoint interrupt

pub const fn iisoixfr(&self) -> bool

Incomplete isochronous IN transfer

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

Incomplete isochronous IN transfer

pub const fn ipxfr_incompisoout(&self) -> bool

Incomplete periodic transfer (host mode) / Incomplete isochronous OUT transfer (device mode)

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

Incomplete periodic transfer (host mode) / Incomplete isochronous OUT transfer (device mode)

pub const fn datafsusp(&self) -> bool

Data fetch suspended

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

Data fetch suspended

pub const fn hprtint(&self) -> bool

Host port interrupt

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

Host port interrupt

pub const fn hcint(&self) -> bool

Host channels interrupt

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

Host channels interrupt

pub const fn ptxfe(&self) -> bool

Periodic TxFIFO empty

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

Periodic TxFIFO empty

pub const fn cidschg(&self) -> bool

Connector ID status change

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

Connector ID status change

pub const fn discint(&self) -> bool

Disconnect detected interrupt

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

Disconnect detected interrupt

pub const fn srqint(&self) -> bool

Session request/new session detected interrupt

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

Session request/new session detected interrupt

pub const fn wkupint(&self) -> bool

Resume/remote wakeup detected interrupt

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

Resume/remote wakeup detected interrupt

Trait Implementationsยง

ยง

impl Clone for Gintsts

ยง

fn clone(&self) -> Gintsts

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 Gintsts

ยง

fn default() -> Gintsts

Returns the โ€œdefault valueโ€ for a type. Read more
ยง

impl PartialEq for Gintsts

ยง

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
ยง

impl Copy for Gintsts

ยง

impl Eq for Gintsts

ยง

impl StructuralEq for Gintsts

ยง

impl StructuralPartialEq for Gintsts

Auto Trait Implementationsยง

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> 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>,

ยง

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>,

ยง

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.