#[repr(transparent)]pub struct Usb2VbusDetectStat(pub u32);Expand description
USB VBUS Detect Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb2VbusDetectStat
impl Usb2VbusDetectStat
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 Usb2VbusDetectStat
impl Clone for Usb2VbusDetectStat
Source§fn clone(&self) -> Usb2VbusDetectStat
fn clone(&self) -> Usb2VbusDetectStat
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 Usb2VbusDetectStat
impl Debug for Usb2VbusDetectStat
Source§impl Default for Usb2VbusDetectStat
impl Default for Usb2VbusDetectStat
Source§fn default() -> Usb2VbusDetectStat
fn default() -> Usb2VbusDetectStat
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb2VbusDetectStat
impl PartialEq for Usb2VbusDetectStat
impl Copy for Usb2VbusDetectStat
impl Eq for Usb2VbusDetectStat
impl StructuralPartialEq for Usb2VbusDetectStat
Auto Trait Implementations§
impl Freeze for Usb2VbusDetectStat
impl RefUnwindSafe for Usb2VbusDetectStat
impl Send for Usb2VbusDetectStat
impl Sync for Usb2VbusDetectStat
impl Unpin for Usb2VbusDetectStat
impl UnwindSafe for Usb2VbusDetectStat
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