Struct R

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

Value read from the register

Implementations§

Source§

impl R

Source

pub fn bits(&self) -> u32

Value of the register as raw bits

Source

pub fn alarmouttype(&self) -> ALARMOUTTYPER

Bit 18 - AFO_ALARM output type

Source

pub fn tamppudis(&self) -> TAMPPUDISR

Bit 15 - TAMPER pull-up disable

Source

pub fn tampprch(&self) -> TAMPPRCHR

Bits 13:14 - Tamper precharge duration

Source

pub fn tampflt(&self) -> TAMPFLTR

Bits 11:12 - Tamper filter count

Source

pub fn tampfreq(&self) -> TAMPFREQR

Bits 8:10 - Tamper sampling frequency

Source

pub fn tampts(&self) -> TAMPTSR

Bit 7 - Activate timestamp on tamper detection event

Source

pub fn tamp3trg(&self) -> TAMP3TRGR

Bit 6 - TAMPER1 mapping

Source

pub fn tamp3e(&self) -> TAMP3ER

Bit 5 - TIMESTAMP mapping

Source

pub fn tamp2trg(&self) -> TAMP2TRGR

Bit 4 - Active level for tamper 2

Source

pub fn tamp2e(&self) -> TAMP2ER

Bit 3 - Tamper 2 detection enable

Source

pub fn tampie(&self) -> TAMPIER

Bit 2 - Tamper interrupt enable

Source

pub fn tamp1etrg(&self) -> TAMP1ETRGR

Bit 1 - Active level for tamper 1

Source

pub fn tamp1e(&self) -> TAMP1ER

Bit 0 - Tamper 1 detection enable

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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, 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.