Struct stm32wlxx_hal::pac::syscfg::swpr::W

pub struct W(/* private fields */);
Available on crate feature stm32wl5x_cm4 only.
Expand description

Register SWPR writer

Implementations§

§

impl W

pub fn p31wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 31>

Bit 31 - SRAM2 1Kbyte page 31 write protection

pub fn p30wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 30>

Bit 30 - SRAM2 1Kbyte page 30 write protection

pub fn p29wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 29>

Bit 29 - SRAM2 1Kbyte page 29 write protection

pub fn p28wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 28>

Bit 28 - SRAM2 1Kbyte page 28 write protection

pub fn p27wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 27>

Bit 27 - SRAM2 1Kbyte page 27 write protection

pub fn p26wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 26>

Bit 26 - SRAM2 1Kbyte page 26 write protection

pub fn p25wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 25>

Bit 25 - SRAM2 1Kbyte page 25 write protection

pub fn p24wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 24>

Bit 24 - SRAM2 1Kbyte page 24 write protection

pub fn p23wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 23>

Bit 23 - SRAM2 1Kbyte page 23 write protection

pub fn p22wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 22>

Bit 22 - SRAM2 1Kbyte page 22 write protection

pub fn p21wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 21>

Bit 21 - SRAM2 1Kbyte page 21 write protection

pub fn p20wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 20>

Bit 20 - SRAM2 1Kbyte page 20 write protection

pub fn p19wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 19>

Bit 19 - SRAM2 1Kbyte page 19 write protection

pub fn p18wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 18>

Bit 18 - SRAM2 1Kbyte page 18 write protection

pub fn p17wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 17>

Bit 17 - SRAM2 1Kbyte page 17 write protection

pub fn p16wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 16>

Bit 16 - SRAM2 1Kbyte page 16 write protection

pub fn p15wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 15>

Bit 15 - SRAM2 1Kbyte page 15 write protection

pub fn p14wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 14>

Bit 14 - SRAM2 1Kbyte page 14 write protection

pub fn p13wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 13>

Bit 13 - SRAM2 1Kbyte page 13 write protection

pub fn p12wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 12>

Bit 12 - SRAM2 1Kbyte page 12 write protection

pub fn p11wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 11>

Bit 11 - SRAM2 1Kbyte page 11 write protection

pub fn p10wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P10WP_A, BitM, 10>

Bit 10 - SRAM2 1Kbyte page 10 write protection

pub fn p9wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 9>

Bit 9 - SRAM2 1Kbyte page 9 write protection

pub fn p8wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 8>

Bit 8 - SRAM2 1Kbyte page 8 write protection

pub fn p7wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 7>

Bit 7 - SRAM2 1Kbyte page 7 write protection

pub fn p6wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 6>

Bit 6 - SRAM2 1Kbyte page 6 write protection

pub fn p5wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 5>

Bit 5 - SRAM2 1Kbyte page 5 write protection

pub fn p4wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 4>

Bit 4 - SRAM2 1Kbyte page 4 write protection

pub fn p3wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 3>

Bit 3 - SRAM2 1Kbyte page 3 write protection

pub fn p2wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 2>

Bit 2 - SRAM2 1Kbyte page 2 write protection

pub fn p1wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 1>

Bit 1 - SRAM2 1Kbyte page 1 write protection

pub fn p0wp(&mut self) -> BitWriterRaw<'_, u32, SWPR_SPEC, P0WP_A, BitM, 0>

Bit 0 - SRAM2 1Kbyte page 0 write protection

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

Writes raw bits to the register.

Methods from Deref<Target = W<SWPR_SPEC>>§

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

§

impl Deref for W

§

type Target = W<SWPR_SPEC>

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl DerefMut for W

§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
§

impl From<W<SWPR_SPEC>> for W

§

fn from(writer: W<SWPR_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.