Struct atsame70n21b::lockbit::word2::W

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

Register WORD2 writer

Implementations§

source§

impl W

source

pub fn lock_region_64(&mut self) -> LOCK_REGION_64_W<'_, 0>

Bit 0 - Lock Region 64

source

pub fn lock_region_65(&mut self) -> LOCK_REGION_65_W<'_, 1>

Bit 1 - Lock Region 65

source

pub fn lock_region_66(&mut self) -> LOCK_REGION_66_W<'_, 2>

Bit 2 - Lock Region 66

source

pub fn lock_region_67(&mut self) -> LOCK_REGION_67_W<'_, 3>

Bit 3 - Lock Region 67

source

pub fn lock_region_68(&mut self) -> LOCK_REGION_68_W<'_, 4>

Bit 4 - Lock Region 68

source

pub fn lock_region_69(&mut self) -> LOCK_REGION_69_W<'_, 5>

Bit 5 - Lock Region 69

source

pub fn lock_region_70(&mut self) -> LOCK_REGION_70_W<'_, 6>

Bit 6 - Lock Region 70

source

pub fn lock_region_71(&mut self) -> LOCK_REGION_71_W<'_, 7>

Bit 7 - Lock Region 71

source

pub fn lock_region_72(&mut self) -> LOCK_REGION_72_W<'_, 8>

Bit 8 - Lock Region 72

source

pub fn lock_region_73(&mut self) -> LOCK_REGION_73_W<'_, 9>

Bit 9 - Lock Region 73

source

pub fn lock_region_74(&mut self) -> LOCK_REGION_74_W<'_, 10>

Bit 10 - Lock Region 74

source

pub fn lock_region_75(&mut self) -> LOCK_REGION_75_W<'_, 11>

Bit 11 - Lock Region 75

source

pub fn lock_region_76(&mut self) -> LOCK_REGION_76_W<'_, 12>

Bit 12 - Lock Region 76

source

pub fn lock_region_77(&mut self) -> LOCK_REGION_77_W<'_, 13>

Bit 13 - Lock Region 77

source

pub fn lock_region_78(&mut self) -> LOCK_REGION_78_W<'_, 14>

Bit 14 - Lock Region 78

source

pub fn lock_region_79(&mut self) -> LOCK_REGION_79_W<'_, 15>

Bit 15 - Lock Region 79

source

pub fn lock_region_80(&mut self) -> LOCK_REGION_80_W<'_, 16>

Bit 16 - Lock Region 80

source

pub fn lock_region_81(&mut self) -> LOCK_REGION_81_W<'_, 17>

Bit 17 - Lock Region 81

source

pub fn lock_region_82(&mut self) -> LOCK_REGION_82_W<'_, 18>

Bit 18 - Lock Region 82

source

pub fn lock_region_83(&mut self) -> LOCK_REGION_83_W<'_, 19>

Bit 19 - Lock Region 83

source

pub fn lock_region_84(&mut self) -> LOCK_REGION_84_W<'_, 20>

Bit 20 - Lock Region 84

source

pub fn lock_region_85(&mut self) -> LOCK_REGION_85_W<'_, 21>

Bit 21 - Lock Region 85

source

pub fn lock_region_86(&mut self) -> LOCK_REGION_86_W<'_, 22>

Bit 22 - Lock Region 86

source

pub fn lock_region_87(&mut self) -> LOCK_REGION_87_W<'_, 23>

Bit 23 - Lock Region 87

source

pub fn lock_region_88(&mut self) -> LOCK_REGION_88_W<'_, 24>

Bit 24 - Lock Region 88

source

pub fn lock_region_89(&mut self) -> LOCK_REGION_89_W<'_, 25>

Bit 25 - Lock Region 89

source

pub fn lock_region_90(&mut self) -> LOCK_REGION_90_W<'_, 26>

Bit 26 - Lock Region 90

source

pub fn lock_region_91(&mut self) -> LOCK_REGION_91_W<'_, 27>

Bit 27 - Lock Region 91

source

pub fn lock_region_92(&mut self) -> LOCK_REGION_92_W<'_, 28>

Bit 28 - Lock Region 92

source

pub fn lock_region_93(&mut self) -> LOCK_REGION_93_W<'_, 29>

Bit 29 - Lock Region 93

source

pub fn lock_region_94(&mut self) -> LOCK_REGION_94_W<'_, 30>

Bit 30 - Lock Region 94

source

pub fn lock_region_95(&mut self) -> LOCK_REGION_95_W<'_, 31>

Bit 31 - Lock Region 95

source

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

Writes raw bits to the register.

Methods from Deref<Target = W<WORD2_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<WORD2_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<WORD2_SPEC>> for W

source§

fn from(original: W<WORD2_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.