Struct Usbscr
#[repr(transparent)]pub struct Usbscr(pub u32);
Expand description
PWR USB supply control register
Tuple Fields§
§0: u32
Implementations§
§impl Usbscr
impl Usbscr
pub fn set_usb33den(&mut self, val: bool)
pub fn set_usb33den(&mut self, val: bool)
VDDUSB voltage level detector enable
pub const fn usb33sv(&self) -> bool
pub const fn usb33sv(&self) -> bool
independent USB supply valid This bit is used to validate the VDDUSB supply for electrical and logical isolation purpose. Setting this bit is mandatory to use the USBFS peripheral. If VDDUSB is not always present in the application, the VDDUSB voltage monitor can be used to determine whether this supply is ready or not.
pub fn set_usb33sv(&mut self, val: bool)
pub fn set_usb33sv(&mut self, val: bool)
independent USB supply valid This bit is used to validate the VDDUSB supply for electrical and logical isolation purpose. Setting this bit is mandatory to use the USBFS peripheral. If VDDUSB is not always present in the application, the VDDUSB voltage monitor can be used to determine whether this supply is ready or not.
Trait Implementations§
impl Copy for Usbscr
impl Eq for Usbscr
impl StructuralPartialEq for Usbscr
Auto Trait Implementations§
impl Freeze for Usbscr
impl RefUnwindSafe for Usbscr
impl Send for Usbscr
impl Sync for Usbscr
impl Unpin for Usbscr
impl UnwindSafe for Usbscr
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