nrf-pac

Crates

git

Versions

nrf52832

Flavors

nrf_pac::bprot::regs

Struct Config0

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

Block protect configuration register 0

Tuple Fields§

§0: u32

Implementations§

Source§

impl Config0

Source

pub const fn region0(&self) -> bool

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

Source

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

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

Source

pub const fn region1(&self) -> bool

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

Source

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

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

Source

pub const fn region2(&self) -> bool

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

Source

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

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

Source

pub const fn region3(&self) -> bool

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

Source

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

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

Source

pub const fn region4(&self) -> bool

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

Source

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

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

Source

pub const fn region5(&self) -> bool

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

Source

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

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

Source

pub const fn region6(&self) -> bool

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

Source

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

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

Source

pub const fn region7(&self) -> bool

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

Source

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

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

Source

pub const fn region8(&self) -> bool

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

Source

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

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

Source

pub const fn region9(&self) -> bool

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

Source

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

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

Source

pub const fn region10(&self) -> bool

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

Source

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

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

Source

pub const fn region11(&self) -> bool

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

Source

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

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

Source

pub const fn region12(&self) -> bool

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

Source

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

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

Source

pub const fn region13(&self) -> bool

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

Source

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

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

Source

pub const fn region14(&self) -> bool

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

Source

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

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

Source

pub const fn region15(&self) -> bool

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

Source

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

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

Source

pub const fn region16(&self) -> bool

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

Source

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

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

Source

pub const fn region17(&self) -> bool

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

Source

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

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

Source

pub const fn region18(&self) -> bool

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

Source

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

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

Source

pub const fn region19(&self) -> bool

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

Source

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

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

Source

pub const fn region20(&self) -> bool

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

Source

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

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

Source

pub const fn region21(&self) -> bool

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

Source

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

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

Source

pub const fn region22(&self) -> bool

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

Source

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

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

Source

pub const fn region23(&self) -> bool

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

Source

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

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

Source

pub const fn region24(&self) -> bool

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

Source

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

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

Source

pub const fn region25(&self) -> bool

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

Source

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

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

Source

pub const fn region26(&self) -> bool

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

Source

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

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

Source

pub const fn region27(&self) -> bool

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

Source

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

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

Source

pub const fn region28(&self) -> bool

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

Source

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

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

Source

pub const fn region29(&self) -> bool

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

Source

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

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

Source

pub const fn region30(&self) -> bool

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

Source

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

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

Source

pub const fn region31(&self) -> bool

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

Source

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

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

Trait Implementations§

Source§

impl Clone for Config0

Source§

fn clone(&self) -> Config0

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 Config0

Source§

fn default() -> Config0

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

impl PartialEq for Config0

Source§

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

Source§

impl Eq for Config0

Source§

impl StructuralPartialEq for Config0

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.