#[repr(transparent)]pub struct Status(pub u32);Expand description
USB PHY Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Status
impl Status
Sourcepub const fn hostdiscondetect_status(&self) -> bool
pub const fn hostdiscondetect_status(&self) -> bool
Indicates that the device has disconnected while in high-speed host mode.
Sourcepub const fn set_hostdiscondetect_status(&mut self, val: bool)
pub const fn set_hostdiscondetect_status(&mut self, val: bool)
Indicates that the device has disconnected while in high-speed host mode.
Sourcepub const fn devplugin_status(&self) -> bool
pub const fn devplugin_status(&self) -> bool
Indicates that the device has been connected on the USB_DP and USB_DM lines.
Sourcepub const fn set_devplugin_status(&mut self, val: bool)
pub const fn set_devplugin_status(&mut self, val: bool)
Indicates that the device has been connected on the USB_DP and USB_DM lines.
Sourcepub const fn otgid_status(&self) -> bool
pub const fn otgid_status(&self) -> bool
Indicates the results of ID pin on MiniAB plug
Sourcepub const fn set_otgid_status(&mut self, val: bool)
pub const fn set_otgid_status(&mut self, val: bool)
Indicates the results of ID pin on MiniAB plug
Sourcepub const fn resume_status(&self) -> bool
pub const fn resume_status(&self) -> bool
Indicates that the host is sending a wake-up after suspend and has triggered an interrupt.
Sourcepub const fn set_resume_status(&mut self, val: bool)
pub const fn set_resume_status(&mut self, val: bool)
Indicates that the host is sending a wake-up after suspend and has triggered an interrupt.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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