Struct stm32_metapac::pwr::regs::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)
V_DDUSB 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 V_DDUSB supply for electrical and logical isolation purpose. Setting this bit is mandatory to use the USBFS peripheral. If V_DDUSB is not always present in the application, the V_DDUSB 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 V_DDUSB supply for electrical and logical isolation purpose. Setting this bit is mandatory to use the USBFS peripheral. If V_DDUSB is not always present in the application, the V_DDUSB 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)