embassy-usb-synopsys-otg

Crates

git

Versions

default

Flavors

embassy_usb_synopsys_otg::otg_v1::regs

Struct Gintsts

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

Core interrupt register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Gintsts

Source

pub const fn cmod(&self) -> bool

Current mode of operation

Source

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

Current mode of operation

Source

pub const fn mmis(&self) -> bool

Mode mismatch interrupt

Source

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

Mode mismatch interrupt

Source

pub const fn otgint(&self) -> bool

OTG interrupt

Source

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

OTG interrupt

Source

pub const fn sof(&self) -> bool

Start of frame

Source

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

Start of frame

Source

pub const fn rxflvl(&self) -> bool

RxFIFO non-empty

Source

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

RxFIFO non-empty

Source

pub const fn nptxfe(&self) -> bool

Non-periodic TxFIFO empty

Source

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

Non-periodic TxFIFO empty

Source

pub const fn ginakeff(&self) -> bool

Global IN non-periodic NAK effective

Source

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

Global IN non-periodic NAK effective

Source

pub const fn goutnakeff(&self) -> bool

Global OUT NAK effective

Source

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

Global OUT NAK effective

Source

pub const fn esusp(&self) -> bool

Early suspend

Source

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

Early suspend

Source

pub const fn usbsusp(&self) -> bool

USB suspend

Source

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

USB suspend

Source

pub const fn usbrst(&self) -> bool

USB reset

Source

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

USB reset

Source

pub const fn enumdne(&self) -> bool

Enumeration done

Source

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

Enumeration done

Source

pub const fn isoodrp(&self) -> bool

Isochronous OUT packet dropped interrupt

Source

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

Isochronous OUT packet dropped interrupt

Source

pub const fn eopf(&self) -> bool

End of periodic frame interrupt

Source

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

End of periodic frame interrupt

Source

pub const fn iepint(&self) -> bool

IN endpoint interrupt

Source

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

IN endpoint interrupt

Source

pub const fn oepint(&self) -> bool

OUT endpoint interrupt

Source

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

OUT endpoint interrupt

Source

pub const fn iisoixfr(&self) -> bool

Incomplete isochronous IN transfer

Source

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

Incomplete isochronous IN transfer

Source

pub const fn ipxfr_incompisoout(&self) -> bool

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

Source

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

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

Source

pub const fn datafsusp(&self) -> bool

Data fetch suspended

Source

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

Data fetch suspended

Source

pub const fn hprtint(&self) -> bool

Host port interrupt

Source

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

Host port interrupt

Source

pub const fn hcint(&self) -> bool

Host channels interrupt

Source

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

Host channels interrupt

Source

pub const fn ptxfe(&self) -> bool

Periodic TxFIFO empty

Source

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

Periodic TxFIFO empty

Source

pub const fn cidschg(&self) -> bool

Connector ID status change

Source

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

Connector ID status change

Source

pub const fn discint(&self) -> bool

Disconnect detected interrupt

Source

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

Disconnect detected interrupt

Source

pub const fn srqint(&self) -> bool

Session request/new session detected interrupt

Source

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

Session request/new session detected interrupt

Source

pub const fn wkupint(&self) -> bool

Resume/remote wakeup detected interrupt

Source

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

Resume/remote wakeup detected interrupt

Trait Implementations§

Source§

impl Clone for Gintsts

Source§

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

impl Default for Gintsts

Source§

fn default() -> Gintsts

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

impl PartialEq for Gintsts

Source§

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

impl Copy for Gintsts

Source§

impl Eq for Gintsts

Source§

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