[]Struct nucleo_f042k6::usb::cntr::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W

pub fn reset_value() -> W

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register

pub fn fres(&mut self) -> _FRESW

Bit 0 - Force USB Reset

pub fn pdwn(&mut self) -> _PDWNW

Bit 1 - Power down

pub fn lpmode(&mut self) -> _LPMODEW

Bit 2 - Low-power mode

pub fn fsusp(&mut self) -> _FSUSPW

Bit 3 - Force suspend

pub fn resume(&mut self) -> _RESUMEW

Bit 4 - Resume request

pub fn l1resume(&mut self) -> _L1RESUMEW

Bit 5 - LPM L1 Resume request

pub fn l1reqm(&mut self) -> _L1REQMW

Bit 7 - LPM L1 state request interrupt mask

pub fn esofm(&mut self) -> _ESOFMW

Bit 8 - Expected start of frame interrupt mask

pub fn sofm(&mut self) -> _SOFMW

Bit 9 - Start of frame interrupt mask

pub fn resetm(&mut self) -> _RESETMW

Bit 10 - USB reset interrupt mask

pub fn suspm(&mut self) -> _SUSPMW

Bit 11 - Suspend mode interrupt mask

pub fn wkupm(&mut self) -> _WKUPMW

Bit 12 - Wakeup interrupt mask

pub fn errm(&mut self) -> _ERRMW

Bit 13 - Error interrupt mask

pub fn pmaovrm(&mut self) -> _PMAOVRMW

Bit 14 - Packet memory area over / underrun interrupt mask

pub fn ctrm(&mut self) -> _CTRMW

Bit 15 - Correct transfer interrupt mask

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]