nrf-pac

Crates

git

Versions

nrf52832

Flavors

nrf_pac::bprot::regs

Struct Config2

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

Block protect configuration register 2

Tuple Fields§

§0: u32

Implementations§

Source§

impl Config2

Source

pub const fn region64(&self) -> bool

Enable protection for region 64. Write ‘0’ has no effect.

Source

pub fn set_region64(&mut self, val: bool)

Enable protection for region 64. Write ‘0’ has no effect.

Source

pub const fn region65(&self) -> bool

Enable protection for region 65. Write ‘0’ has no effect.

Source

pub fn set_region65(&mut self, val: bool)

Enable protection for region 65. Write ‘0’ has no effect.

Source

pub const fn region66(&self) -> bool

Enable protection for region 66. Write ‘0’ has no effect.

Source

pub fn set_region66(&mut self, val: bool)

Enable protection for region 66. Write ‘0’ has no effect.

Source

pub const fn region67(&self) -> bool

Enable protection for region 67. Write ‘0’ has no effect.

Source

pub fn set_region67(&mut self, val: bool)

Enable protection for region 67. Write ‘0’ has no effect.

Source

pub const fn region68(&self) -> bool

Enable protection for region 68. Write ‘0’ has no effect.

Source

pub fn set_region68(&mut self, val: bool)

Enable protection for region 68. Write ‘0’ has no effect.

Source

pub const fn region69(&self) -> bool

Enable protection for region 69. Write ‘0’ has no effect.

Source

pub fn set_region69(&mut self, val: bool)

Enable protection for region 69. Write ‘0’ has no effect.

Source

pub const fn region70(&self) -> bool

Enable protection for region 70. Write ‘0’ has no effect.

Source

pub fn set_region70(&mut self, val: bool)

Enable protection for region 70. Write ‘0’ has no effect.

Source

pub const fn region71(&self) -> bool

Enable protection for region 71. Write ‘0’ has no effect.

Source

pub fn set_region71(&mut self, val: bool)

Enable protection for region 71. Write ‘0’ has no effect.

Source

pub const fn region72(&self) -> bool

Enable protection for region 72. Write ‘0’ has no effect.

Source

pub fn set_region72(&mut self, val: bool)

Enable protection for region 72. Write ‘0’ has no effect.

Source

pub const fn region73(&self) -> bool

Enable protection for region 73. Write ‘0’ has no effect.

Source

pub fn set_region73(&mut self, val: bool)

Enable protection for region 73. Write ‘0’ has no effect.

Source

pub const fn region74(&self) -> bool

Enable protection for region 74. Write ‘0’ has no effect.

Source

pub fn set_region74(&mut self, val: bool)

Enable protection for region 74. Write ‘0’ has no effect.

Source

pub const fn region75(&self) -> bool

Enable protection for region 75. Write ‘0’ has no effect.

Source

pub fn set_region75(&mut self, val: bool)

Enable protection for region 75. Write ‘0’ has no effect.

Source

pub const fn region76(&self) -> bool

Enable protection for region 76. Write ‘0’ has no effect.

Source

pub fn set_region76(&mut self, val: bool)

Enable protection for region 76. Write ‘0’ has no effect.

Source

pub const fn region77(&self) -> bool

Enable protection for region 77. Write ‘0’ has no effect.

Source

pub fn set_region77(&mut self, val: bool)

Enable protection for region 77. Write ‘0’ has no effect.

Source

pub const fn region78(&self) -> bool

Enable protection for region 78. Write ‘0’ has no effect.

Source

pub fn set_region78(&mut self, val: bool)

Enable protection for region 78. Write ‘0’ has no effect.

Source

pub const fn region79(&self) -> bool

Enable protection for region 79. Write ‘0’ has no effect.

Source

pub fn set_region79(&mut self, val: bool)

Enable protection for region 79. Write ‘0’ has no effect.

Source

pub const fn region80(&self) -> bool

Enable protection for region 80. Write ‘0’ has no effect.

Source

pub fn set_region80(&mut self, val: bool)

Enable protection for region 80. Write ‘0’ has no effect.

Source

pub const fn region81(&self) -> bool

Enable protection for region 81. Write ‘0’ has no effect.

Source

pub fn set_region81(&mut self, val: bool)

Enable protection for region 81. Write ‘0’ has no effect.

Source

pub const fn region82(&self) -> bool

Enable protection for region 82. Write ‘0’ has no effect.

Source

pub fn set_region82(&mut self, val: bool)

Enable protection for region 82. Write ‘0’ has no effect.

Source

pub const fn region83(&self) -> bool

Enable protection for region 83. Write ‘0’ has no effect.

Source

pub fn set_region83(&mut self, val: bool)

Enable protection for region 83. Write ‘0’ has no effect.

Source

pub const fn region84(&self) -> bool

Enable protection for region 84. Write ‘0’ has no effect.

Source

pub fn set_region84(&mut self, val: bool)

Enable protection for region 84. Write ‘0’ has no effect.

Source

pub const fn region85(&self) -> bool

Enable protection for region 85. Write ‘0’ has no effect.

Source

pub fn set_region85(&mut self, val: bool)

Enable protection for region 85. Write ‘0’ has no effect.

Source

pub const fn region86(&self) -> bool

Enable protection for region 86. Write ‘0’ has no effect.

Source

pub fn set_region86(&mut self, val: bool)

Enable protection for region 86. Write ‘0’ has no effect.

Source

pub const fn region87(&self) -> bool

Enable protection for region 87. Write ‘0’ has no effect.

Source

pub fn set_region87(&mut self, val: bool)

Enable protection for region 87. Write ‘0’ has no effect.

Source

pub const fn region88(&self) -> bool

Enable protection for region 88. Write ‘0’ has no effect.

Source

pub fn set_region88(&mut self, val: bool)

Enable protection for region 88. Write ‘0’ has no effect.

Source

pub const fn region89(&self) -> bool

Enable protection for region 89. Write ‘0’ has no effect.

Source

pub fn set_region89(&mut self, val: bool)

Enable protection for region 89. Write ‘0’ has no effect.

Source

pub const fn region90(&self) -> bool

Enable protection for region 90. Write ‘0’ has no effect.

Source

pub fn set_region90(&mut self, val: bool)

Enable protection for region 90. Write ‘0’ has no effect.

Source

pub const fn region91(&self) -> bool

Enable protection for region 91. Write ‘0’ has no effect.

Source

pub fn set_region91(&mut self, val: bool)

Enable protection for region 91. Write ‘0’ has no effect.

Source

pub const fn region92(&self) -> bool

Enable protection for region 92. Write ‘0’ has no effect.

Source

pub fn set_region92(&mut self, val: bool)

Enable protection for region 92. Write ‘0’ has no effect.

Source

pub const fn region93(&self) -> bool

Enable protection for region 93. Write ‘0’ has no effect.

Source

pub fn set_region93(&mut self, val: bool)

Enable protection for region 93. Write ‘0’ has no effect.

Source

pub const fn region94(&self) -> bool

Enable protection for region 94. Write ‘0’ has no effect.

Source

pub fn set_region94(&mut self, val: bool)

Enable protection for region 94. Write ‘0’ has no effect.

Source

pub const fn region95(&self) -> bool

Enable protection for region 95. Write ‘0’ has no effect.

Source

pub fn set_region95(&mut self, val: bool)

Enable protection for region 95. Write ‘0’ has no effect.

Trait Implementations§

Source§

impl Clone for Config2

Source§

fn clone(&self) -> Config2

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 Config2

Source§

fn default() -> Config2

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

impl PartialEq for Config2

Source§

fn eq(&self, other: &Config2) -> 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 Config2

Source§

impl Eq for Config2

Source§

impl StructuralPartialEq for Config2

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.