pub struct R { /* private fields */ }
Expand description

Value read from the register

Implementations§

Source§

impl R

Source

pub fn bits(&self) -> u32

Value of the register as raw bits

Source

pub fn cmod(&self) -> CMODR

Bit 0 - Current mode of operation

Source

pub fn mmis(&self) -> MMISR

Bit 1 - Mode mismatch interrupt

Source

pub fn otgint(&self) -> OTGINTR

Bit 2 - OTG interrupt

Source

pub fn sof(&self) -> SOFR

Bit 3 - Start of frame

Source

pub fn rxflvl(&self) -> RXFLVLR

Bit 4 - RxFIFO nonempty

Source

pub fn nptxfe(&self) -> NPTXFER

Bit 5 - Nonperiodic TxFIFO empty

Source

pub fn ginakeff(&self) -> GINAKEFFR

Bit 6 - Global IN nonperiodic NAK effective

Source

pub fn boutnakeff(&self) -> BOUTNAKEFFR

Bit 7 - Global OUT NAK effective

Source

pub fn esusp(&self) -> ESUSPR

Bit 10 - Early suspend

Source

pub fn usbsusp(&self) -> USBSUSPR

Bit 11 - USB suspend

Source

pub fn usbrst(&self) -> USBRSTR

Bit 12 - USB reset

Source

pub fn enumdne(&self) -> ENUMDNER

Bit 13 - Enumeration done

Source

pub fn isoodrp(&self) -> ISOODRPR

Bit 14 - Isochronous OUT packet dropped interrupt

Source

pub fn eopf(&self) -> EOPFR

Bit 15 - End of periodic frame interrupt

Source

pub fn iepint(&self) -> IEPINTR

Bit 18 - IN endpoint interrupt

Source

pub fn oepint(&self) -> OEPINTR

Bit 19 - OUT endpoint interrupt

Source

pub fn iisoixfr(&self) -> IISOIXFRR

Bit 20 - Incomplete isochronous IN transfer

Source

pub fn pxfr_incompisoout(&self) -> PXFR_INCOMPISOOUTR

Bit 21 - Incomplete periodic transfer

Source

pub fn datafsusp(&self) -> DATAFSUSPR

Bit 22 - Data fetch suspended

Source

pub fn hprtint(&self) -> HPRTINTR

Bit 24 - Host port interrupt

Source

pub fn hcint(&self) -> HCINTR

Bit 25 - Host channels interrupt

Source

pub fn ptxfe(&self) -> PTXFER

Bit 26 - Periodic TxFIFO empty

Source

pub fn cidschg(&self) -> CIDSCHGR

Bit 28 - Connector ID status change

Source

pub fn discint(&self) -> DISCINTR

Bit 29 - Disconnect detected interrupt

Source

pub fn srqint(&self) -> SRQINTR

Bit 30 - Session request/new session detected interrupt

Source

pub fn wkuint(&self) -> WKUINTR

Bit 31 - Resume/remote wakeup detected interrupt

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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> Same for T

Source§

type Output = T

Should always be Self
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.