pub struct W(_);
Expand description
Register WKUPEPR
writer
Implementations
sourceimpl W
impl W
sourcepub fn wkupen1(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 0>
pub fn wkupen1(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 0>
Bit 0 - Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.
sourcepub fn wkupen2(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 1>
pub fn wkupen2(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 1>
Bit 1 - Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.
sourcepub fn wkupen3(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 2>
pub fn wkupen3(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 2>
Bit 2 - Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.
sourcepub fn wkupen4(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 3>
pub fn wkupen4(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 3>
Bit 3 - Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.
sourcepub fn wkupen5(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 4>
pub fn wkupen5(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 4>
Bit 4 - Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.
sourcepub fn wkupen6(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 5>
pub fn wkupen6(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 5>
Bit 5 - Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.
sourcepub fn wkupp1(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 8>
pub fn wkupp1(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 8>
Bit 8 - Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin.
sourcepub fn wkupp2(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 9>
pub fn wkupp2(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 9>
Bit 9 - Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin.
sourcepub fn wkupp3(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 10>
pub fn wkupp3(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 10>
Bit 10 - Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin.
sourcepub fn wkupp4(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 11>
pub fn wkupp4(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 11>
Bit 11 - Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin.
sourcepub fn wkupp5(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 12>
pub fn wkupp5(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 12>
Bit 12 - Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin.
sourcepub fn wkupp6(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 13>
pub fn wkupp6(&mut self) -> BitWriterRaw<'_, u32, WKUPEPR_SPEC, bool, BitM, 13>
Bit 13 - Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin.
sourcepub fn wkuppupd1(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 16>
pub fn wkuppupd1(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 16>
Bits 16:17 - Wakeup pin pull configuration
sourcepub fn wkuppupd2(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 18>
pub fn wkuppupd2(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 18>
Bits 18:19 - Wakeup pin pull configuration
sourcepub fn wkuppupd3(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 20>
pub fn wkuppupd3(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 20>
Bits 20:21 - Wakeup pin pull configuration
sourcepub fn wkuppupd4(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 22>
pub fn wkuppupd4(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 22>
Bits 22:23 - Wakeup pin pull configuration
sourcepub fn wkuppupd5(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 24>
pub fn wkuppupd5(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 24>
Bits 24:25 - Wakeup pin pull configuration
sourcepub fn wkuppupd6(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 26>
pub fn wkuppupd6(
&mut self
) -> FieldWriterRaw<'_, u32, WKUPEPR_SPEC, u8, u8, Unsafe, 2, 26>
Bits 26:27 - Wakeup pin pull configuration for WKUP(truncate(n/2)-7) These bits define the I/O pad pull configuration used when WKUPEN(truncate(n/2)-7) = 1. The associated GPIO port pull configuration shall be set to the same value or to 00. The Wakeup pin pull configuration is kept in Standby mode.
Methods from Deref<Target = W<WKUPEPR_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.