#[repr(transparent)]pub struct Usb1VbusDetectStat(pub u32);Expand description
USB VBUS Detect Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1VbusDetectStat
impl Usb1VbusDetectStat
Sourcepub const fn set_sessend(&mut self, val: bool)
pub const fn set_sessend(&mut self, val: bool)
Session End for USB OTG
Sourcepub const fn set_bvalid(&mut self, val: bool)
pub const fn set_bvalid(&mut self, val: bool)
Indicates VBus is valid for a B-peripheral
Sourcepub const fn set_avalid(&mut self, val: bool)
pub const fn set_avalid(&mut self, val: bool)
Indicates VBus is valid for a A-peripheral
Sourcepub const fn vbus_valid(&self) -> bool
pub const fn vbus_valid(&self) -> bool
VBus valid for USB OTG
Sourcepub const fn set_vbus_valid(&mut self, val: bool)
pub const fn set_vbus_valid(&mut self, val: bool)
VBus valid for USB OTG
Trait Implementations§
Source§impl Clone for Usb1VbusDetectStat
impl Clone for Usb1VbusDetectStat
Source§fn clone(&self) -> Usb1VbusDetectStat
fn clone(&self) -> Usb1VbusDetectStat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Usb1VbusDetectStat
impl Debug for Usb1VbusDetectStat
Source§impl Default for Usb1VbusDetectStat
impl Default for Usb1VbusDetectStat
Source§fn default() -> Usb1VbusDetectStat
fn default() -> Usb1VbusDetectStat
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb1VbusDetectStat
impl PartialEq for Usb1VbusDetectStat
impl Copy for Usb1VbusDetectStat
impl Eq for Usb1VbusDetectStat
impl StructuralPartialEq for Usb1VbusDetectStat
Auto Trait Implementations§
impl Freeze for Usb1VbusDetectStat
impl RefUnwindSafe for Usb1VbusDetectStat
impl Send for Usb1VbusDetectStat
impl Sync for Usb1VbusDetectStat
impl Unpin for Usb1VbusDetectStat
impl UnwindSafe for Usb1VbusDetectStat
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