Struct W

Source
pub struct W { /* private fields */ }
Expand description

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register

Source

pub fn tamp1e(&mut self) -> _TAMP1EW<'_>

Bit 0 - Tamper 1 detection enable

Source

pub fn tamp1trg(&mut self) -> _TAMP1TRGW<'_>

Bit 1 - Active level for tamper 1

Source

pub fn tampie(&mut self) -> _TAMPIEW<'_>

Bit 2 - Tamper interrupt enable

Source

pub fn tamp2e(&mut self) -> _TAMP2EW<'_>

Bit 3 - Tamper 2 detection enable

Source

pub fn tamp2trg(&mut self) -> _TAMP2TRGW<'_>

Bit 4 - Active level for tamper 2

Source

pub fn tamp3e(&mut self) -> _TAMP3EW<'_>

Bit 5 - Tamper 3 detection enable

Source

pub fn tamp3trg(&mut self) -> _TAMP3TRGW<'_>

Bit 6 - Active level for tamper 3

Source

pub fn tampts(&mut self) -> _TAMPTSW<'_>

Bit 7 - Activate timestamp on tamper detection event

Source

pub fn tampfreq(&mut self) -> _TAMPFREQW<'_>

Bits 8:10 - Tamper sampling frequency

Source

pub fn tampflt(&mut self) -> _TAMPFLTW<'_>

Bits 11:12 - Tamper filter count

Source

pub fn tampprch(&mut self) -> _TAMPPRCHW<'_>

Bits 13:14 - Tamper precharge duration

Source

pub fn tamppudis(&mut self) -> _TAMPPUDISW<'_>

Bit 15 - TAMPER pull-up disable

Source

pub fn tamp1ie(&mut self) -> _TAMP1IEW<'_>

Bit 16 - Tamper 1 interrupt enable

Source

pub fn tamp1noerase(&mut self) -> _TAMP1NOERASEW<'_>

Bit 17 - Tamper 1 no erase

Source

pub fn tamp1mf(&mut self) -> _TAMP1MFW<'_>

Bit 18 - Tamper 1 mask flag

Source

pub fn tamp2ie(&mut self) -> _TAMP2IEW<'_>

Bit 19 - Tamper 2 interrupt enable

Source

pub fn tamp2noerase(&mut self) -> _TAMP2NOERASEW<'_>

Bit 20 - Tamper 2 no erase

Source

pub fn tamp2mf(&mut self) -> _TAMP2MFW<'_>

Bit 21 - Tamper 2 mask flag

Source

pub fn tamp3ie(&mut self) -> _TAMP3IEW<'_>

Bit 22 - Tamper 3 interrupt enable

Source

pub fn tamp3noerase(&mut self) -> _TAMP3NOERASEW<'_>

Bit 23 - Tamper 3 no erase

Source

pub fn tamp3mf(&mut self) -> _TAMP3MFW<'_>

Bit 24 - Tamper 3 mask flag

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.