Struct efm32pg1b_pac::Prs

source ·
pub struct Prs { /* private fields */ }
Expand description

PRS

Implementations§

source§

impl Prs

source

pub const PTR: *const RegisterBlock = {0x400e6000 as *const prs::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn swpulse(&self) -> &Swpulse

0x00 - Software Pulse Register

source

pub fn swlevel(&self) -> &Swlevel

0x04 - Software Level Register

source

pub fn routepen(&self) -> &Routepen

0x08 - I/O Routing Pin Enable Register

source

pub fn routeloc0(&self) -> &Routeloc0

0x10 - I/O Routing Location Register

source

pub fn routeloc1(&self) -> &Routeloc1

0x14 - I/O Routing Location Register

source

pub fn routeloc2(&self) -> &Routeloc2

0x18 - I/O Routing Location Register

source

pub fn ctrl(&self) -> &Ctrl

0x20 - Control Register

source

pub fn dmareq0(&self) -> &Dmareq0

0x24 - DMA Request 0 Register

source

pub fn dmareq1(&self) -> &Dmareq1

0x28 - DMA Request 1 Register

source

pub fn peek(&self) -> &Peek

0x30 - PRS Channel Values

source

pub fn ch0_ctrl(&self) -> &Ch0Ctrl

0x40 - Channel Control Register

source

pub fn ch1_ctrl(&self) -> &Ch1Ctrl

0x44 - Channel Control Register

source

pub fn ch2_ctrl(&self) -> &Ch2Ctrl

0x48 - Channel Control Register

source

pub fn ch3_ctrl(&self) -> &Ch3Ctrl

0x4c - Channel Control Register

source

pub fn ch4_ctrl(&self) -> &Ch4Ctrl

0x50 - Channel Control Register

source

pub fn ch5_ctrl(&self) -> &Ch5Ctrl

0x54 - Channel Control Register

source

pub fn ch6_ctrl(&self) -> &Ch6Ctrl

0x58 - Channel Control Register

source

pub fn ch7_ctrl(&self) -> &Ch7Ctrl

0x5c - Channel Control Register

source

pub fn ch8_ctrl(&self) -> &Ch8Ctrl

0x60 - Channel Control Register

source

pub fn ch9_ctrl(&self) -> &Ch9Ctrl

0x64 - Channel Control Register

source

pub fn ch10_ctrl(&self) -> &Ch10Ctrl

0x68 - Channel Control Register

source

pub fn ch11_ctrl(&self) -> &Ch11Ctrl

0x6c - Channel Control Register

Trait Implementations§

source§

impl Debug for Prs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Prs

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Prs

Auto Trait Implementations§

§

impl Freeze for Prs

§

impl RefUnwindSafe for Prs

§

impl !Sync for Prs

§

impl Unpin for Prs

§

impl UnwindSafe for Prs

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.