nrf-pac

Crates

git

Versions

nrf51

Flavors

nrf_pac::mpu::regs

Struct Protenset0

Source
#[repr(transparent)]
pub struct Protenset0(pub u32);
Expand description

Erase and write protection bit enable set register.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Protenset0

Source

pub const fn protreg0(&self) -> Protreg0

Protection enable for region 0.

Source

pub fn set_protreg0(&mut self, val: Protreg0)

Protection enable for region 0.

Source

pub const fn protreg1(&self) -> Protreg1

Protection enable for region 1.

Source

pub fn set_protreg1(&mut self, val: Protreg1)

Protection enable for region 1.

Source

pub const fn protreg2(&self) -> Protreg2

Protection enable for region 2.

Source

pub fn set_protreg2(&mut self, val: Protreg2)

Protection enable for region 2.

Source

pub const fn protreg3(&self) -> Protreg3

Protection enable for region 3.

Source

pub fn set_protreg3(&mut self, val: Protreg3)

Protection enable for region 3.

Source

pub const fn protreg4(&self) -> Protreg4

Protection enable for region 4.

Source

pub fn set_protreg4(&mut self, val: Protreg4)

Protection enable for region 4.

Source

pub const fn protreg5(&self) -> Protreg5

Protection enable for region 5.

Source

pub fn set_protreg5(&mut self, val: Protreg5)

Protection enable for region 5.

Source

pub const fn protreg6(&self) -> Protreg6

Protection enable for region 6.

Source

pub fn set_protreg6(&mut self, val: Protreg6)

Protection enable for region 6.

Source

pub const fn protreg7(&self) -> Protreg7

Protection enable for region 7.

Source

pub fn set_protreg7(&mut self, val: Protreg7)

Protection enable for region 7.

Source

pub const fn protreg8(&self) -> Protreg8

Protection enable for region 8.

Source

pub fn set_protreg8(&mut self, val: Protreg8)

Protection enable for region 8.

Source

pub const fn protreg9(&self) -> Protreg9

Protection enable for region 9.

Source

pub fn set_protreg9(&mut self, val: Protreg9)

Protection enable for region 9.

Source

pub const fn protreg10(&self) -> Protreg10

Protection enable for region 10.

Source

pub fn set_protreg10(&mut self, val: Protreg10)

Protection enable for region 10.

Source

pub const fn protreg11(&self) -> Protreg11

Protection enable for region 11.

Source

pub fn set_protreg11(&mut self, val: Protreg11)

Protection enable for region 11.

Source

pub const fn protreg12(&self) -> Protreg12

Protection enable for region 12.

Source

pub fn set_protreg12(&mut self, val: Protreg12)

Protection enable for region 12.

Source

pub const fn protreg13(&self) -> Protreg13

Protection enable for region 13.

Source

pub fn set_protreg13(&mut self, val: Protreg13)

Protection enable for region 13.

Source

pub const fn protreg14(&self) -> Protreg14

Protection enable for region 14.

Source

pub fn set_protreg14(&mut self, val: Protreg14)

Protection enable for region 14.

Source

pub const fn protreg15(&self) -> Protreg15

Protection enable for region 15.

Source

pub fn set_protreg15(&mut self, val: Protreg15)

Protection enable for region 15.

Source

pub const fn protreg16(&self) -> Protreg16

Protection enable for region 16.

Source

pub fn set_protreg16(&mut self, val: Protreg16)

Protection enable for region 16.

Source

pub const fn protreg17(&self) -> Protreg17

Protection enable for region 17.

Source

pub fn set_protreg17(&mut self, val: Protreg17)

Protection enable for region 17.

Source

pub const fn protreg18(&self) -> Protreg18

Protection enable for region 18.

Source

pub fn set_protreg18(&mut self, val: Protreg18)

Protection enable for region 18.

Source

pub const fn protreg19(&self) -> Protreg19

Protection enable for region 19.

Source

pub fn set_protreg19(&mut self, val: Protreg19)

Protection enable for region 19.

Source

pub const fn protreg20(&self) -> Protreg20

Protection enable for region 20.

Source

pub fn set_protreg20(&mut self, val: Protreg20)

Protection enable for region 20.

Source

pub const fn protreg21(&self) -> Protreg21

Protection enable for region 21.

Source

pub fn set_protreg21(&mut self, val: Protreg21)

Protection enable for region 21.

Source

pub const fn protreg22(&self) -> Protreg22

Protection enable for region 22.

Source

pub fn set_protreg22(&mut self, val: Protreg22)

Protection enable for region 22.

Source

pub const fn protreg23(&self) -> Protreg23

Protection enable for region 23.

Source

pub fn set_protreg23(&mut self, val: Protreg23)

Protection enable for region 23.

Source

pub const fn protreg24(&self) -> Protreg24

Protection enable for region 24.

Source

pub fn set_protreg24(&mut self, val: Protreg24)

Protection enable for region 24.

Source

pub const fn protreg25(&self) -> Protreg25

Protection enable for region 25.

Source

pub fn set_protreg25(&mut self, val: Protreg25)

Protection enable for region 25.

Source

pub const fn protreg26(&self) -> Protreg26

Protection enable for region 26.

Source

pub fn set_protreg26(&mut self, val: Protreg26)

Protection enable for region 26.

Source

pub const fn protreg27(&self) -> Protreg27

Protection enable for region 27.

Source

pub fn set_protreg27(&mut self, val: Protreg27)

Protection enable for region 27.

Source

pub const fn protreg28(&self) -> Protreg28

Protection enable for region 28.

Source

pub fn set_protreg28(&mut self, val: Protreg28)

Protection enable for region 28.

Source

pub const fn protreg29(&self) -> Protreg29

Protection enable for region 29.

Source

pub fn set_protreg29(&mut self, val: Protreg29)

Protection enable for region 29.

Source

pub const fn protreg30(&self) -> Protreg30

Protection enable for region 30.

Source

pub fn set_protreg30(&mut self, val: Protreg30)

Protection enable for region 30.

Source

pub const fn protreg31(&self) -> Protreg31

Protection enable for region 31.

Source

pub fn set_protreg31(&mut self, val: Protreg31)

Protection enable for region 31.

Trait Implementations§

Source§

impl Clone for Protenset0

Source§

fn clone(&self) -> Protenset0

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Protenset0

Source§

fn default() -> Protenset0

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Protenset0

Source§

fn eq(&self, other: &Protenset0) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Protenset0

Source§

impl Eq for Protenset0

Source§

impl StructuralPartialEq for Protenset0

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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>,

Source§

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

Source§

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.