pub struct W(_);
Expand description
Register TAMPCR
writer
Implementations
sourceimpl W
impl W
sourcepub fn tamp1e(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 0>
pub fn tamp1e(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 0>
Bit 0 - RTC_TAMP1 input detection enable
sourcepub fn tamp1trg(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 1>
pub fn tamp1trg(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 1>
Bit 1 - Active level for RTC_TAMP1 input If TAMPFLT != 00 if TAMPFLT = 00:
sourcepub fn tampie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 2>
pub fn tampie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 2>
Bit 2 - Tamper interrupt enable
sourcepub fn tamp2e(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 3>
pub fn tamp2e(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 3>
Bit 3 - RTC_TAMP2 input detection enable
sourcepub fn tamp2trg(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 4>
pub fn tamp2trg(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 4>
Bit 4 - Active level for RTC_TAMP2 input if TAMPFLT != 00: if TAMPFLT = 00:
sourcepub fn tamp3e(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 5>
pub fn tamp3e(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 5>
Bit 5 - RTC_TAMP3 detection enable
sourcepub fn tamp3trg(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 6>
pub fn tamp3trg(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 6>
Bit 6 - Active level for RTC_TAMP3 input if TAMPFLT != 00: if TAMPFLT = 00:
sourcepub fn tampts(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 7>
pub fn tampts(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 7>
Bit 7 - Activate timestamp on tamper detection event TAMPTS is valid even if TSE=0 in the RTC_CR register.
sourcepub fn tampfreq(
&mut self
) -> FieldWriterRaw<'_, u32, TAMPCR_SPEC, u8, u8, Unsafe, 3, 8>
pub fn tampfreq(
&mut self
) -> FieldWriterRaw<'_, u32, TAMPCR_SPEC, u8, u8, Unsafe, 3, 8>
Bits 8:10 - Tamper sampling frequency Determines the frequency at which each of the RTC_TAMPx inputs are sampled.
sourcepub fn tampflt(
&mut self
) -> FieldWriterRaw<'_, u32, TAMPCR_SPEC, u8, u8, Unsafe, 2, 11>
pub fn tampflt(
&mut self
) -> FieldWriterRaw<'_, u32, TAMPCR_SPEC, u8, u8, Unsafe, 2, 11>
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.
sourcepub fn tampprch(
&mut self
) -> FieldWriterRaw<'_, u32, TAMPCR_SPEC, u8, u8, Unsafe, 2, 13>
pub fn tampprch(
&mut self
) -> FieldWriterRaw<'_, u32, TAMPCR_SPEC, u8, u8, Unsafe, 2, 13>
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.
sourcepub fn tamppudis(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 15>
pub fn tamppudis(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 15>
Bit 15 - RTC_TAMPx pull-up disable This bit determines if each of the RTC_TAMPx pins are pre-charged before each sample.
sourcepub fn tamp1ie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 16>
pub fn tamp1ie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 16>
Bit 16 - Tamper 1 interrupt enable
sourcepub fn tamp1noerase(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 17>
pub fn tamp1noerase(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 17>
Bit 17 - Tamper 1 no erase
sourcepub fn tamp1mf(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 18>
pub fn tamp1mf(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 18>
Bit 18 - Tamper 1 mask flag
sourcepub fn tamp2ie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 19>
pub fn tamp2ie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 19>
Bit 19 - Tamper 2 interrupt enable
sourcepub fn tamp2noerase(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 20>
pub fn tamp2noerase(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 20>
Bit 20 - Tamper 2 no erase
sourcepub fn tamp2mf(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 21>
pub fn tamp2mf(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 21>
Bit 21 - Tamper 2 mask flag
sourcepub fn tamp3ie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 22>
pub fn tamp3ie(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 22>
Bit 22 - Tamper 3 interrupt enable
sourcepub fn tamp3noerase(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 23>
pub fn tamp3noerase(
&mut self
) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 23>
Bit 23 - Tamper 3 no erase
sourcepub fn tamp3mf(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 24>
pub fn tamp3mf(&mut self) -> BitWriterRaw<'_, u32, TAMPCR_SPEC, bool, BitM, 24>
Bit 24 - Tamper 3 mask flag
Methods from Deref<Target = W<TAMPCR_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.