Struct stm32_metapac::otg::regs::Adpctl
#[repr(transparent)]pub struct Adpctl(pub u32);
Expand description
ADP (Attach Detection Protocol) Control Register
Tuple Fields§
§0: u32
Implementations§
§impl Adpctl
impl Adpctl
pub fn set_prb_dschg(&mut self, val: u8)
pub fn set_prb_dschg(&mut self, val: u8)
Probe Discharge time (times for TADP_DSCHG)
pub fn set_prb_delta(&mut self, val: u8)
pub fn set_prb_delta(&mut self, val: u8)
Probe Delta (resolution for RTIM)
pub fn set_prb_per(&mut self, val: u8)
pub fn set_prb_per(&mut self, val: u8)
Probe Period (TADP_PRD)
pub fn set_enaprb(&mut self, val: bool)
pub fn set_enaprb(&mut self, val: bool)
Enable Probe
pub fn set_enasns(&mut self, val: bool)
pub fn set_enasns(&mut self, val: bool)
Enable Sense
pub fn set_adpres(&mut self, val: bool)
pub fn set_adpres(&mut self, val: bool)
ADP Reset
pub const fn adp_prb_int(&self) -> bool
pub const fn adp_prb_int(&self) -> bool
ADP Probe Interrupt Enable
pub fn set_adp_prb_int(&mut self, val: bool)
pub fn set_adp_prb_int(&mut self, val: bool)
ADP Probe Interrupt Enable
pub const fn adp_sns_int(&self) -> bool
pub const fn adp_sns_int(&self) -> bool
ADP Sense Interrupt Enable
pub fn set_adp_sns_int(&mut self, val: bool)
pub fn set_adp_sns_int(&mut self, val: bool)
ADP Sense Interrupt Enable
pub const fn adp_tmout_int(&self) -> bool
pub const fn adp_tmout_int(&self) -> bool
ADP Timeout Interrupt Enable
pub fn set_adp_tmout_int(&mut self, val: bool)
pub fn set_adp_tmout_int(&mut self, val: bool)
ADP Timeout Interrupt Enable
pub const fn adp_prb_msk(&self) -> bool
pub const fn adp_prb_msk(&self) -> bool
ADP Probe Interrupt Mask
pub fn set_adp_prb_msk(&mut self, val: bool)
pub fn set_adp_prb_msk(&mut self, val: bool)
ADP Probe Interrupt Mask
pub const fn adp_tmout_msk(&self) -> bool
pub const fn adp_tmout_msk(&self) -> bool
ADP Timeout Interrupt Mask
pub fn set_adp_tmout_msk(&mut self, val: bool)
pub fn set_adp_tmout_msk(&mut self, val: bool)
ADP Timeout Interrupt Mask
Trait Implementations§
impl Copy for Adpctl
impl Eq for Adpctl
impl StructuralPartialEq for Adpctl
Auto Trait Implementations§
impl Freeze for Adpctl
impl RefUnwindSafe for Adpctl
impl Send for Adpctl
impl Sync for Adpctl
impl Unpin for Adpctl
impl UnwindSafe for Adpctl
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
)