Embassy
embassy-usb-synopsys-otg

Crates

git

Versions

default

Flavors

Struct embassy_usb_synopsys_otg::otg_v1::regs::Gintmsk

source ·
#[repr(transparent)]
pub struct Gintmsk(pub u32);
Expand description

Interrupt mask register

Tuple Fields§

§0: u32

Implementations§

source§

impl Gintmsk

source

pub const fn mmism(&self) -> bool

Mode mismatch interrupt mask

source

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

Mode mismatch interrupt mask

source

pub const fn otgint(&self) -> bool

OTG interrupt mask

source

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

OTG interrupt mask

source

pub const fn sofm(&self) -> bool

Start of frame mask

source

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

Start of frame mask

source

pub const fn rxflvlm(&self) -> bool

Receive FIFO non-empty mask

source

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

Receive FIFO non-empty mask

source

pub const fn nptxfem(&self) -> bool

Non-periodic TxFIFO empty mask

source

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

Non-periodic TxFIFO empty mask

source

pub const fn ginakeffm(&self) -> bool

Global non-periodic IN NAK effective mask

source

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

Global non-periodic IN NAK effective mask

source

pub const fn gonakeffm(&self) -> bool

Global OUT NAK effective mask

source

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

Global OUT NAK effective mask

source

pub const fn esuspm(&self) -> bool

Early suspend mask

source

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

Early suspend mask

source

pub const fn usbsuspm(&self) -> bool

USB suspend mask

source

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

USB suspend mask

source

pub const fn usbrst(&self) -> bool

USB reset mask

source

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

USB reset mask

source

pub const fn enumdnem(&self) -> bool

Enumeration done mask

source

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

Enumeration done mask

source

pub const fn isoodrpm(&self) -> bool

Isochronous OUT packet dropped interrupt mask

source

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

Isochronous OUT packet dropped interrupt mask

source

pub const fn eopfm(&self) -> bool

End of periodic frame interrupt mask

source

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

End of periodic frame interrupt mask

source

pub const fn epmism(&self) -> bool

Endpoint mismatch interrupt mask

source

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

Endpoint mismatch interrupt mask

source

pub const fn iepint(&self) -> bool

IN endpoints interrupt mask

source

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

IN endpoints interrupt mask

source

pub const fn oepint(&self) -> bool

OUT endpoints interrupt mask

source

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

OUT endpoints interrupt mask

source

pub const fn iisoixfrm(&self) -> bool

Incomplete isochronous IN transfer mask

source

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

Incomplete isochronous IN transfer mask

source

pub const fn ipxfrm_iisooxfrm(&self) -> bool

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

source

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

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

source

pub const fn fsuspm(&self) -> bool

Data fetch suspended mask

source

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

Data fetch suspended mask

source

pub const fn rstde(&self) -> bool

Reset detected interrupt mask

source

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

Reset detected interrupt mask

source

pub const fn prtim(&self) -> bool

Host port interrupt mask

source

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

Host port interrupt mask

source

pub const fn hcim(&self) -> bool

Host channels interrupt mask

source

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

Host channels interrupt mask

source

pub const fn ptxfem(&self) -> bool

Periodic TxFIFO empty mask

source

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

Periodic TxFIFO empty mask

source

pub const fn lpmintm(&self) -> bool

LPM interrupt mask

source

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

LPM interrupt mask

source

pub const fn cidschgm(&self) -> bool

Connector ID status change mask

source

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

Connector ID status change mask

source

pub const fn discint(&self) -> bool

Disconnect detected interrupt mask

source

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

Disconnect detected interrupt mask

source

pub const fn srqim(&self) -> bool

Session request/new session detected interrupt mask

source

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

Session request/new session detected interrupt mask

source

pub const fn wuim(&self) -> bool

Resume/remote wakeup detected interrupt mask

source

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

Resume/remote wakeup detected interrupt mask

Trait Implementations§

source§

impl Clone for Gintmsk

source§

fn clone(&self) -> Gintmsk

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
source§

impl Default for Gintmsk

source§

fn default() -> Gintmsk

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

impl PartialEq for Gintmsk

source§

fn eq(&self, other: &Gintmsk) -> 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.
source§

impl Copy for Gintmsk

source§

impl Eq for Gintmsk

source§

impl StructuralPartialEq for Gintmsk

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.