Struct Power
#[repr(transparent)]pub struct Power(pub u8);
Expand description
USB Power Management Register.
Tuple Fields§
§0: u8
Implementations§
§impl Power
impl Power
pub const fn enable_suspend(&self) -> bool
pub const fn enable_suspend(&self) -> bool
Enable suspend functionality.
pub fn set_enable_suspend(&mut self, val: bool)
pub fn set_enable_suspend(&mut self, val: bool)
Enable suspend functionality.
pub const fn suspend_mode(&self) -> bool
pub const fn suspend_mode(&self) -> bool
Indicates if the USB device is in suspend mode.
pub fn set_suspend_mode(&mut self, val: bool)
pub fn set_suspend_mode(&mut self, val: bool)
Indicates if the USB device is in suspend mode.
pub fn set_resume(&mut self, val: bool)
pub fn set_resume(&mut self, val: bool)
Resumes the USB device from suspend mode when set by software.
pub const fn iso_update(&self) -> bool
pub const fn iso_update(&self) -> bool
Forces the USB controller to wait for a SOF before sending a data packet.
pub fn set_iso_update(&mut self, val: bool)
pub fn set_iso_update(&mut self, val: bool)
Forces the USB controller to wait for a SOF before sending a data packet.
Trait Implementations§
impl Copy for Power
impl Eq for Power
impl StructuralPartialEq for Power
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl Sync for Power
impl Unpin for Power
impl UnwindSafe for Power
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
Mutably borrows from an owned value. Read more