Struct stm32_metapac::pwr::regs::Ucpdr
#[repr(transparent)]pub struct Ucpdr(pub u32);
Expand description
PWR USB Type-C and Power Delivery register.
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Ucpdr
impl Ucpdr
pub const fn ucpd_dbdis(&self) -> bool
pub const fn ucpd_dbdis(&self) -> bool
UCPD dead battery disable.
pub fn set_ucpd_dbdis(&mut self, val: bool)
pub fn set_ucpd_dbdis(&mut self, val: bool)
UCPD dead battery disable.
pub const fn ucpd_stby(&self) -> bool
pub const fn ucpd_stby(&self) -> bool
UCPD Standby mode When set, this bit is used to memorize the UCPD configuration in Standby mode. This bit must be written to 1 just before entering Standby mode when using UCPD. It must be written to 0 after exiting the Standby mode and before writing any UCPD registers.
pub fn set_ucpd_stby(&mut self, val: bool)
pub fn set_ucpd_stby(&mut self, val: bool)
UCPD Standby mode When set, this bit is used to memorize the UCPD configuration in Standby mode. This bit must be written to 1 just before entering Standby mode when using UCPD. It must be written to 0 after exiting the Standby mode and before writing any UCPD registers.
Trait Implementationsยง
impl Copy for Ucpdr
impl Eq for Ucpdr
impl StructuralEq for Ucpdr
impl StructuralPartialEq for Ucpdr
Auto Trait Implementationsยง
impl RefUnwindSafe for Ucpdr
impl Send for Ucpdr
impl Sync for Ucpdr
impl Unpin for Ucpdr
impl UnwindSafe for Ucpdr
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