Struct stm32_hal2::pac::rtc::tampcr::R

source ·
pub struct R(_);
Expand description

Register TAMPCR reader

Implementations§

source§

impl R

source

pub fn tamp1e(&self) -> BitReaderRaw<bool>

Bit 0 - RTC_TAMP1 input detection enable

source

pub fn tamp1trg(&self) -> BitReaderRaw<bool>

Bit 1 - Active level for RTC_TAMP1 input If TAMPFLT != 00 if TAMPFLT = 00:

source

pub fn tampie(&self) -> BitReaderRaw<bool>

Bit 2 - Tamper interrupt enable

source

pub fn tamp2e(&self) -> BitReaderRaw<bool>

Bit 3 - RTC_TAMP2 input detection enable

source

pub fn tamp2trg(&self) -> BitReaderRaw<bool>

Bit 4 - Active level for RTC_TAMP2 input if TAMPFLT != 00: if TAMPFLT = 00:

source

pub fn tamp3e(&self) -> BitReaderRaw<bool>

Bit 5 - RTC_TAMP3 detection enable

source

pub fn tamp3trg(&self) -> BitReaderRaw<bool>

Bit 6 - Active level for RTC_TAMP3 input if TAMPFLT != 00: if TAMPFLT = 00:

source

pub fn tampts(&self) -> BitReaderRaw<bool>

Bit 7 - Activate timestamp on tamper detection event TAMPTS is valid even if TSE=0 in the RTC_CR register.

source

pub fn tampfreq(&self) -> FieldReaderRaw<u8, u8>

Bits 8:10 - Tamper sampling frequency Determines the frequency at which each of the RTC_TAMPx inputs are sampled.

source

pub fn tampflt(&self) -> FieldReaderRaw<u8, u8>

Bits 11:12 - RTC_TAMPx filter count These bits determines the number of consecutive samples at the specified level (TAMP*TRG) needed to activate a Tamper event. TAMPFLT is valid for each of the RTC_TAMPx inputs.

source

pub fn tampprch(&self) -> FieldReaderRaw<u8, u8>

Bits 13:14 - RTC_TAMPx precharge duration These bit determines the duration of time during which the pull-up/is activated before each sample. TAMPPRCH is valid for each of the RTC_TAMPx inputs.

source

pub fn tamppudis(&self) -> BitReaderRaw<bool>

Bit 15 - RTC_TAMPx pull-up disable This bit determines if each of the RTC_TAMPx pins are pre-charged before each sample.

source

pub fn tamp1ie(&self) -> BitReaderRaw<bool>

Bit 16 - Tamper 1 interrupt enable

source

pub fn tamp1noerase(&self) -> BitReaderRaw<bool>

Bit 17 - Tamper 1 no erase

source

pub fn tamp1mf(&self) -> BitReaderRaw<bool>

Bit 18 - Tamper 1 mask flag

source

pub fn tamp2ie(&self) -> BitReaderRaw<bool>

Bit 19 - Tamper 2 interrupt enable

source

pub fn tamp2noerase(&self) -> BitReaderRaw<bool>

Bit 20 - Tamper 2 no erase

source

pub fn tamp2mf(&self) -> BitReaderRaw<bool>

Bit 21 - Tamper 2 mask flag

source

pub fn tamp3ie(&self) -> BitReaderRaw<bool>

Bit 22 - Tamper 3 interrupt enable

source

pub fn tamp3noerase(&self) -> BitReaderRaw<bool>

Bit 23 - Tamper 3 no erase

source

pub fn tamp3mf(&self) -> BitReaderRaw<bool>

Bit 24 - Tamper 3 mask flag

Methods from Deref<Target = R<TAMPCR_SPEC>>§

source

pub fn bits(&self) -> <REG as RegisterSpec>::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<TAMPCR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<R as Deref>::Target

Dereferences the value.
source§

impl From<R<TAMPCR_SPEC>> for R

source§

fn from(reader: R<TAMPCR_SPEC>) -> R

Converts to this type from the input type.

Auto Trait Implementations§

§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.