Struct atsame70n21b::lockbit::word0::W

source ·
pub struct W(/* private fields */);
Expand description

Register WORD0 writer

Implementations§

source§

impl W

source

pub fn lock_region_0(&mut self) -> LOCK_REGION_0_W<'_, 0>

Bit 0 - Lock Region 0

source

pub fn lock_region_1(&mut self) -> LOCK_REGION_1_W<'_, 1>

Bit 1 - Lock Region 1

source

pub fn lock_region_2(&mut self) -> LOCK_REGION_2_W<'_, 2>

Bit 2 - Lock Region 2

source

pub fn lock_region_3(&mut self) -> LOCK_REGION_3_W<'_, 3>

Bit 3 - Lock Region 3

source

pub fn lock_region_4(&mut self) -> LOCK_REGION_4_W<'_, 4>

Bit 4 - Lock Region 4

source

pub fn lock_region_5(&mut self) -> LOCK_REGION_5_W<'_, 5>

Bit 5 - Lock Region 5

source

pub fn lock_region_6(&mut self) -> LOCK_REGION_6_W<'_, 6>

Bit 6 - Lock Region 6

source

pub fn lock_region_7(&mut self) -> LOCK_REGION_7_W<'_, 7>

Bit 7 - Lock Region 7

source

pub fn lock_region_8(&mut self) -> LOCK_REGION_8_W<'_, 8>

Bit 8 - Lock Region 8

source

pub fn lock_region_9(&mut self) -> LOCK_REGION_9_W<'_, 9>

Bit 9 - Lock Region 9

source

pub fn lock_region_10(&mut self) -> LOCK_REGION_10_W<'_, 10>

Bit 10 - Lock Region 10

source

pub fn lock_region_11(&mut self) -> LOCK_REGION_11_W<'_, 11>

Bit 11 - Lock Region 11

source

pub fn lock_region_12(&mut self) -> LOCK_REGION_12_W<'_, 12>

Bit 12 - Lock Region 12

source

pub fn lock_region_13(&mut self) -> LOCK_REGION_13_W<'_, 13>

Bit 13 - Lock Region 13

source

pub fn lock_region_14(&mut self) -> LOCK_REGION_14_W<'_, 14>

Bit 14 - Lock Region 14

source

pub fn lock_region_15(&mut self) -> LOCK_REGION_15_W<'_, 15>

Bit 15 - Lock Region 15

source

pub fn lock_region_16(&mut self) -> LOCK_REGION_16_W<'_, 16>

Bit 16 - Lock Region 16

source

pub fn lock_region_17(&mut self) -> LOCK_REGION_17_W<'_, 17>

Bit 17 - Lock Region 17

source

pub fn lock_region_18(&mut self) -> LOCK_REGION_18_W<'_, 18>

Bit 18 - Lock Region 18

source

pub fn lock_region_19(&mut self) -> LOCK_REGION_19_W<'_, 19>

Bit 19 - Lock Region 19

source

pub fn lock_region_20(&mut self) -> LOCK_REGION_20_W<'_, 20>

Bit 20 - Lock Region 20

source

pub fn lock_region_21(&mut self) -> LOCK_REGION_21_W<'_, 21>

Bit 21 - Lock Region 21

source

pub fn lock_region_22(&mut self) -> LOCK_REGION_22_W<'_, 22>

Bit 22 - Lock Region 22

source

pub fn lock_region_23(&mut self) -> LOCK_REGION_23_W<'_, 23>

Bit 23 - Lock Region 23

source

pub fn lock_region_24(&mut self) -> LOCK_REGION_24_W<'_, 24>

Bit 24 - Lock Region 24

source

pub fn lock_region_25(&mut self) -> LOCK_REGION_25_W<'_, 25>

Bit 25 - Lock Region 25

source

pub fn lock_region_26(&mut self) -> LOCK_REGION_26_W<'_, 26>

Bit 26 - Lock Region 26

source

pub fn lock_region_27(&mut self) -> LOCK_REGION_27_W<'_, 27>

Bit 27 - Lock Region 27

source

pub fn lock_region_28(&mut self) -> LOCK_REGION_28_W<'_, 28>

Bit 28 - Lock Region 28

source

pub fn lock_region_29(&mut self) -> LOCK_REGION_29_W<'_, 29>

Bit 29 - Lock Region 29

source

pub fn lock_region_30(&mut self) -> LOCK_REGION_30_W<'_, 30>

Bit 30 - Lock Region 30

source

pub fn lock_region_31(&mut self) -> LOCK_REGION_31_W<'_, 31>

Bit 31 - Lock Region 31

source

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

Writes raw bits to the register.

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

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<WORD0_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<WORD0_SPEC>> for W

source§

fn from(original: W<WORD0_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 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>,

§

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

§

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.