Struct Lpmcsr
#[repr(transparent)]pub struct Lpmcsr(pub u32);Expand description
LPM control and status register
Tuple Fields§
§0: u32Implementations§
§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.
pub const fn set_lpmen(&mut self, val: bool)
pub const 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.
pub const fn lpmack(&self) -> Lpmack
pub const fn lpmack(&self) -> Lpmack
LPM token acknowledge enable - Device mode. The NYET/ACK is returned only on a successful LPM transaction: no errors in both the EXT token and the LPM token (else ERROR), and a valid bLinkState = 0001B (L1) is received (else STALL).
pub const fn set_lpmack(&mut self, val: Lpmack)
pub const fn set_lpmack(&mut self, val: Lpmack)
LPM token acknowledge enable - Device mode. The NYET/ACK is returned only on a successful LPM transaction: no errors in both the EXT token and the LPM token (else ERROR), and a valid bLinkState = 0001B (L1) is received (else STALL).
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
pub const fn set_remwake(&mut self, val: bool)
pub const fn set_remwake(&mut self, val: bool)
bRemoteWake value - Device mode. This bit contains the bRemoteWake value received with last ACKed LPM Token