nrf-pac

Crates

git

Versions

nrf51

Flavors

nrf_pac::mpu::regs

Struct Perr0

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

Configuration of peripherals in mpu regions.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Perr0

Source

pub const fn power_clock(&self) -> PowerClock

POWER_CLOCK region configuration.

Source

pub fn set_power_clock(&mut self, val: PowerClock)

POWER_CLOCK region configuration.

Source

pub const fn radio(&self) -> Radio

RADIO region configuration.

Source

pub fn set_radio(&mut self, val: Radio)

RADIO region configuration.

Source

pub const fn uart0(&self) -> Uart0

UART0 region configuration.

Source

pub fn set_uart0(&mut self, val: Uart0)

UART0 region configuration.

Source

pub const fn spi0_twi0(&self) -> Spi0Twi0

SPI0 and TWI0 region configuration.

Source

pub fn set_spi0_twi0(&mut self, val: Spi0Twi0)

SPI0 and TWI0 region configuration.

Source

pub const fn spi1_twi1(&self) -> Spi1Twi1

SPI1 and TWI1 region configuration.

Source

pub fn set_spi1_twi1(&mut self, val: Spi1Twi1)

SPI1 and TWI1 region configuration.

Source

pub const fn gpiote(&self) -> Gpiote

GPIOTE region configuration.

Source

pub fn set_gpiote(&mut self, val: Gpiote)

GPIOTE region configuration.

Source

pub const fn adc(&self) -> Adc

ADC region configuration.

Source

pub fn set_adc(&mut self, val: Adc)

ADC region configuration.

Source

pub const fn timer0(&self) -> Timer0

TIMER0 region configuration.

Source

pub fn set_timer0(&mut self, val: Timer0)

TIMER0 region configuration.

Source

pub const fn timer1(&self) -> Timer1

TIMER1 region configuration.

Source

pub fn set_timer1(&mut self, val: Timer1)

TIMER1 region configuration.

Source

pub const fn timer2(&self) -> Timer2

TIMER2 region configuration.

Source

pub fn set_timer2(&mut self, val: Timer2)

TIMER2 region configuration.

Source

pub const fn rtc0(&self) -> Rtc0

RTC0 region configuration.

Source

pub fn set_rtc0(&mut self, val: Rtc0)

RTC0 region configuration.

Source

pub const fn temp(&self) -> Temp

TEMP region configuration.

Source

pub fn set_temp(&mut self, val: Temp)

TEMP region configuration.

Source

pub const fn rng(&self) -> Rng

RNG region configuration.

Source

pub fn set_rng(&mut self, val: Rng)

RNG region configuration.

Source

pub const fn ecb(&self) -> Ecb

ECB region configuration.

Source

pub fn set_ecb(&mut self, val: Ecb)

ECB region configuration.

Source

pub const fn ccm_aar(&self) -> CcmAar

CCM and AAR region configuration.

Source

pub fn set_ccm_aar(&mut self, val: CcmAar)

CCM and AAR region configuration.

Source

pub const fn wdt(&self) -> Wdt

WDT region configuration.

Source

pub fn set_wdt(&mut self, val: Wdt)

WDT region configuration.

Source

pub const fn rtc1(&self) -> Rtc1

RTC1 region configuration.

Source

pub fn set_rtc1(&mut self, val: Rtc1)

RTC1 region configuration.

Source

pub const fn qdec(&self) -> Qdec

QDEC region configuration.

Source

pub fn set_qdec(&mut self, val: Qdec)

QDEC region configuration.

Source

pub const fn lpcomp(&self) -> Lpcomp

LPCOMP region configuration.

Source

pub fn set_lpcomp(&mut self, val: Lpcomp)

LPCOMP region configuration.

Source

pub const fn nvmc(&self) -> Nvmc

NVMC region configuration.

Source

pub fn set_nvmc(&mut self, val: Nvmc)

NVMC region configuration.

Source

pub const fn ppi(&self) -> Ppi

PPI region configuration.

Source

pub fn set_ppi(&mut self, val: Ppi)

PPI region configuration.

Trait Implementations§

Source§

impl Clone for Perr0

Source§

fn clone(&self) -> Perr0

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 Perr0

Source§

fn default() -> Perr0

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

impl PartialEq for Perr0

Source§

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

Source§

impl Eq for Perr0

Source§

impl StructuralPartialEq for Perr0

Auto Trait Implementations§

§

impl Freeze for Perr0

§

impl RefUnwindSafe for Perr0

§

impl Send for Perr0

§

impl Sync for Perr0

§

impl Unpin for Perr0

§

impl UnwindSafe for Perr0

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.