Struct stm32_metapac::pwr::regs::Ucpdr
#[repr(transparent)]pub struct Ucpdr(pub u32);
Expand description
PWR USB Type-C 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
USB Type-C and power delivery dead battery disable After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all case, either to stop this pull-down or to hand over control to the UCPD (which should therefore be initialized before doing the disable).
pub fn set_ucpd_dbdis(&mut self, val: bool)
pub fn set_ucpd_dbdis(&mut self, val: bool)
USB Type-C and power delivery dead battery disable After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all case, either to stop this pull-down or to hand over control to the UCPD (which should therefore be initialized before doing the disable).
pub const fn ucpd_stby(&self) -> bool
pub const fn ucpd_stby(&self) -> bool
USB Type-c and Power delivery 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, and it must be written to 0 after exiting the standby mode and before writing any UCPD register.
pub fn set_ucpd_stby(&mut self, val: bool)
pub fn set_ucpd_stby(&mut self, val: bool)
USB Type-c and Power delivery 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, and it must be written to 0 after exiting the standby mode and before writing any UCPD register.
Trait Implementations§
impl Copy for Ucpdr
impl Eq for Ucpdr
impl StructuralPartialEq for Ucpdr
Auto Trait Implementations§
impl Freeze for Ucpdr
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
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)
clone_to_uninit
)