Struct stm32_metapac::usb::regs::Cntr
#[repr(transparent)]pub struct Cntr(pub u32);
Expand description
control register
Tuple Fields§
§0: u32
Implementations§
§impl Cntr
impl Cntr
pub const fn fres(&self) -> bool
pub const fn fres(&self) -> bool
Force a reset of the USB peripheral, exactly like a RESET signaling on the USB
pub fn set_fres(&mut self, val: bool)
pub fn set_fres(&mut self, val: bool)
Force a reset of the USB peripheral, exactly like a RESET signaling on the USB
pub fn set_lpmode(&mut self, val: bool)
pub fn set_lpmode(&mut self, val: bool)
Enter low-power mode
pub const fn fsusp(&self) -> bool
pub const fn fsusp(&self) -> bool
Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected
pub fn set_fsusp(&mut self, val: bool)
pub fn set_fsusp(&mut self, val: bool)
Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected
pub fn set_resume(&mut self, val: bool)
pub fn set_resume(&mut self, val: bool)
Resume request
pub const fn esofm(&self) -> bool
pub const fn esofm(&self) -> bool
ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_esofm(&mut self, val: bool)
pub fn set_esofm(&mut self, val: bool)
ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub const fn sofm(&self) -> bool
pub const fn sofm(&self) -> bool
SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_sofm(&mut self, val: bool)
pub fn set_sofm(&mut self, val: bool)
SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub const fn resetm(&self) -> bool
pub const fn resetm(&self) -> bool
RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_resetm(&mut self, val: bool)
pub fn set_resetm(&mut self, val: bool)
RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub const fn suspm(&self) -> bool
pub const fn suspm(&self) -> bool
SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_suspm(&mut self, val: bool)
pub fn set_suspm(&mut self, val: bool)
SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub const fn wkupm(&self) -> bool
pub const fn wkupm(&self) -> bool
WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_wkupm(&mut self, val: bool)
pub fn set_wkupm(&mut self, val: bool)
WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub const fn errm(&self) -> bool
pub const fn errm(&self) -> bool
ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_errm(&mut self, val: bool)
pub fn set_errm(&mut self, val: bool)
ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub const fn pmaovrm(&self) -> bool
pub const fn pmaovrm(&self) -> bool
PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
pub fn set_pmaovrm(&mut self, val: bool)
pub fn set_pmaovrm(&mut self, val: bool)
PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set
Trait Implementations§
impl Copy for Cntr
impl Eq for Cntr
impl StructuralPartialEq for Cntr
Auto Trait Implementations§
impl Freeze for Cntr
impl RefUnwindSafe for Cntr
impl Send for Cntr
impl Sync for Cntr
impl Unpin for Cntr
impl UnwindSafe for Cntr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)