stm32-metapac

Crates

git

Versions

stm32f437vi

Flavors

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

pub const fn prb_dschg(&self) -> u8

Probe Discharge time (times for TADP_DSCHG)

pub fn set_prb_dschg(&mut self, val: u8)

Probe Discharge time (times for TADP_DSCHG)

pub const fn prb_delta(&self) -> u8

Probe Delta (resolution for RTIM)

pub fn set_prb_delta(&mut self, val: u8)

Probe Delta (resolution for RTIM)

pub const fn prb_per(&self) -> u8

Probe Period (TADP_PRD)

pub fn set_prb_per(&mut self, val: u8)

Probe Period (TADP_PRD)

pub const fn rtim(&self) -> u16

Probe Period (TADP_PRD)

pub fn set_rtim(&mut self, val: u16)

Probe Period (TADP_PRD)

pub const fn enaprb(&self) -> bool

Enable Probe

pub fn set_enaprb(&mut self, val: bool)

Enable Probe

pub const fn enasns(&self) -> bool

Enable Sense

pub fn set_enasns(&mut self, val: bool)

Enable Sense

pub const fn adpres(&self) -> bool

ADP Reset

pub fn set_adpres(&mut self, val: bool)

ADP Reset

pub const fn adpen(&self) -> bool

ADP Enable

pub fn set_adpen(&mut self, val: bool)

ADP Enable

pub const fn adp_prb_int(&self) -> bool

ADP Probe Interrupt Enable

pub fn set_adp_prb_int(&mut self, val: bool)

ADP Probe Interrupt Enable

pub const fn adp_sns_int(&self) -> bool

ADP Sense Interrupt Enable

pub fn set_adp_sns_int(&mut self, val: bool)

ADP Sense Interrupt Enable

pub const fn adp_tmout_int(&self) -> bool

ADP Timeout Interrupt Enable

pub fn set_adp_tmout_int(&mut self, val: bool)

ADP Timeout Interrupt Enable

pub const fn adp_prb_msk(&self) -> bool

ADP Probe Interrupt Mask

pub fn set_adp_prb_msk(&mut self, val: bool)

ADP Probe Interrupt Mask

pub const fn adp_tmout_msk(&self) -> bool

ADP Timeout Interrupt Mask

pub fn set_adp_tmout_msk(&mut self, val: bool)

ADP Timeout Interrupt Mask

pub const fn ar(&self) -> bool

Access Request

pub fn set_ar(&mut self, val: bool)

Access Request

Trait Implementations§

§

impl Clone for Adpctl

§

fn clone(&self) -> Adpctl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for Adpctl

§

fn default() -> Adpctl

Returns the “default value” for a type. Read more
§

impl PartialEq for Adpctl

§

fn eq(&self, other: &Adpctl) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.