Struct stm32_metapac::usb::regs::Lpmcsr
#[repr(transparent)]pub struct Lpmcsr(pub u32);
Expand description
LPM control and status register
Tuple Fields§
§0: u32
Implementations§
§impl Lpmcsr
impl Lpmcsr
pub const fn lpmen(&self) -> bool
pub const fn lpmen(&self) -> bool
LPM support enable Device mode This bit is set by the software to enable the LPM support within the USB device. If this bit is at ’0 no LPM transactions are handled. Host mode Software sets this bit to transmit an LPM transaction to device. This bit is cleared by hardware, simultaneous with L1REQ flag set, when device answer is received
pub fn set_lpmen(&mut self, val: bool)
pub fn set_lpmen(&mut self, val: bool)
LPM support enable Device mode This bit is set by the software to enable the LPM support within the USB device. If this bit is at ’0 no LPM transactions are handled. Host mode Software sets this bit to transmit an LPM transaction to device. This bit is cleared by hardware, simultaneous with L1REQ flag set, when device answer is received
pub const fn lpmack(&self) -> Lpmack
pub const fn lpmack(&self) -> Lpmack
LPM Token acknowledge enable The NYET/ACK will be returned only on a successful LPM transaction: No errors in both the EXT token and the LPM token (else ERROR) A valid bLinkState = 0001B (L1) is received (else STALL) This bit contains the device answer to the LPM transaction. It mast be evaluated following the L1REQ interrupt.
pub fn set_lpmack(&mut self, val: Lpmack)
pub fn set_lpmack(&mut self, val: Lpmack)
LPM Token acknowledge enable The NYET/ACK will be returned only on a successful LPM transaction: No errors in both the EXT token and the LPM token (else ERROR) A valid bLinkState = 0001B (L1) is received (else STALL) This bit contains the device answer to the LPM transaction. It mast be evaluated following the L1REQ interrupt.
pub const fn remwake(&self) -> bool
pub const fn remwake(&self) -> bool
bRemoteWake value Device mode This bit contains the bRemoteWake value received with last ACKed LPM Token Host mode This bit contains the bRemoteWake value transmitted with the LPM transaction
pub fn set_remwake(&mut self, val: bool)
pub fn set_remwake(&mut self, val: bool)
bRemoteWake value Device mode This bit contains the bRemoteWake value received with last ACKed LPM Token Host mode This bit contains the bRemoteWake value transmitted with the LPM transaction
Trait Implementations§
impl Copy for Lpmcsr
impl Eq for Lpmcsr
impl StructuralPartialEq for Lpmcsr
Auto Trait Implementations§
impl Freeze for Lpmcsr
impl RefUnwindSafe for Lpmcsr
impl Send for Lpmcsr
impl Sync for Lpmcsr
impl Unpin for Lpmcsr
impl UnwindSafe for Lpmcsr
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
)