Struct xmc4500::Ppb

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

Cortex-M4 Private Peripheral Block

Implementations§

source§

impl Ppb

source

pub const PTR: *const RegisterBlock = {0xe000e000 as *const ppb::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 actlr(&self) -> &Actlr

0x08 - Auxiliary Control Register

source

pub fn syst_csr(&self) -> &SystCsr

0x10 - SysTick Control and Status Register

source

pub fn syst_rvr(&self) -> &SystRvr

0x14 - SysTick Reload Value Register

source

pub fn syst_cvr(&self) -> &SystCvr

0x18 - SysTick Current Value Register

source

pub fn syst_calib(&self) -> &SystCalib

0x1c - SysTick Calibration Value Register r

source

pub fn nvic_iser0(&self) -> &NvicIser0

0x100 - Interrupt Set-enable Register 0

source

pub fn nvic_iser1(&self) -> &NvicIser1

0x104 - Interrupt Set-enable Register 1

source

pub fn nvic_iser2(&self) -> &NvicIser2

0x108 - Interrupt Set-enable Register 2

source

pub fn nvic_iser3(&self) -> &NvicIser3

0x10c - Interrupt Set-enable Register 3

source

pub fn nvic_icer0(&self) -> &NvicIcer0

0x180 - Interrupt Clear-enable Register 0

source

pub fn nvic_icer1(&self) -> &NvicIcer1

0x184 - Interrupt Clear-enable Register 1

source

pub fn nvic_icer2(&self) -> &NvicIcer2

0x188 - Interrupt Clear-enable Register 2

source

pub fn nvic_icer3(&self) -> &NvicIcer3

0x18c - Interrupt Clear-enable Register 3

source

pub fn nvic_ispr0(&self) -> &NvicIspr0

0x200 - Interrupt Set-pending Register 0

source

pub fn nvic_ispr1(&self) -> &NvicIspr1

0x204 - Interrupt Set-pending Register 1

source

pub fn nvic_ispr2(&self) -> &NvicIspr2

0x208 - Interrupt Set-pending Register 2

source

pub fn nvic_ispr3(&self) -> &NvicIspr3

0x20c - Interrupt Set-pending Register 3

source

pub fn nvic_icpr0(&self) -> &NvicIcpr0

0x280 - Interrupt Clear-pending Register 0

source

pub fn nvic_icpr1(&self) -> &NvicIcpr1

0x284 - Interrupt Clear-pending Register 1

source

pub fn nvic_icpr2(&self) -> &NvicIcpr2

0x288 - Interrupt Clear-pending Register 2

source

pub fn nvic_icpr3(&self) -> &NvicIcpr3

0x28c - Interrupt Clear-pending Register 3

source

pub fn nvic_iabr0(&self) -> &NvicIabr0

0x300 - Interrupt Active Bit Register 0

source

pub fn nvic_iabr1(&self) -> &NvicIabr1

0x304 - Interrupt Active Bit Register 1

source

pub fn nvic_iabr2(&self) -> &NvicIabr2

0x308 - Interrupt Active Bit Register 2

source

pub fn nvic_iabr3(&self) -> &NvicIabr3

0x30c - Interrupt Active Bit Register 3

source

pub fn nvic_ipr0(&self) -> &NvicIpr0

0x400 - Interrupt Priority Register 0

source

pub fn nvic_ipr1(&self) -> &NvicIpr1

0x404 - Interrupt Priority Register 1

source

pub fn nvic_ipr2(&self) -> &NvicIpr2

0x408 - Interrupt Priority Register 2

source

pub fn nvic_ipr3(&self) -> &NvicIpr3

0x40c - Interrupt Priority Register 3

source

pub fn nvic_ipr4(&self) -> &NvicIpr4

0x410 - Interrupt Priority Register 4

source

pub fn nvic_ipr5(&self) -> &NvicIpr5

0x414 - Interrupt Priority Register 5

source

pub fn nvic_ipr6(&self) -> &NvicIpr6

0x418 - Interrupt Priority Register 6

source

pub fn nvic_ipr7(&self) -> &NvicIpr7

0x41c - Interrupt Priority Register 7

source

pub fn nvic_ipr8(&self) -> &NvicIpr8

0x420 - Interrupt Priority Register 8

source

pub fn nvic_ipr9(&self) -> &NvicIpr9

0x424 - Interrupt Priority Register 9

source

pub fn nvic_ipr10(&self) -> &NvicIpr10

0x428 - Interrupt Priority Register 10

source

pub fn nvic_ipr11(&self) -> &NvicIpr11

0x42c - Interrupt Priority Register 11

source

pub fn nvic_ipr12(&self) -> &NvicIpr12

0x430 - Interrupt Priority Register 12

source

pub fn nvic_ipr13(&self) -> &NvicIpr13

0x434 - Interrupt Priority Register 13

source

pub fn nvic_ipr14(&self) -> &NvicIpr14

0x438 - Interrupt Priority Register 14

source

pub fn nvic_ipr15(&self) -> &NvicIpr15

0x43c - Interrupt Priority Register 15

source

pub fn nvic_ipr16(&self) -> &NvicIpr16

0x440 - Interrupt Priority Register 16

source

pub fn nvic_ipr17(&self) -> &NvicIpr17

0x444 - Interrupt Priority Register 17

source

pub fn nvic_ipr18(&self) -> &NvicIpr18

0x448 - Interrupt Priority Register 18

source

pub fn nvic_ipr19(&self) -> &NvicIpr19

0x44c - Interrupt Priority Register 19

source

pub fn nvic_ipr20(&self) -> &NvicIpr20

0x450 - Interrupt Priority Register 20

source

pub fn nvic_ipr21(&self) -> &NvicIpr21

0x454 - Interrupt Priority Register 21

source

pub fn nvic_ipr22(&self) -> &NvicIpr22

0x458 - Interrupt Priority Register 22

source

pub fn nvic_ipr23(&self) -> &NvicIpr23

0x45c - Interrupt Priority Register 23

source

pub fn nvic_ipr24(&self) -> &NvicIpr24

0x460 - Interrupt Priority Register 24

source

pub fn nvic_ipr25(&self) -> &NvicIpr25

0x464 - Interrupt Priority Register 25

source

pub fn nvic_ipr26(&self) -> &NvicIpr26

0x468 - Interrupt Priority Register 26

source

pub fn nvic_ipr27(&self) -> &NvicIpr27

0x46c - Interrupt Priority Register 27

source

pub fn cpuid(&self) -> &Cpuid

0xd00 - CPUID Base Register

source

pub fn icsr(&self) -> &Icsr

0xd04 - Interrupt Control and State Register

source

pub fn vtor(&self) -> &Vtor

0xd08 - Vector Table Offset Register

source

pub fn aircr(&self) -> &Aircr

0xd0c - Application Interrupt and Reset Control Register

source

pub fn scr(&self) -> &Scr

0xd10 - System Control Register

source

pub fn ccr(&self) -> &Ccr

0xd14 - Configuration and Control Register

source

pub fn shpr1(&self) -> &Shpr1

0xd18 - System Handler Priority Register 1

source

pub fn shpr2(&self) -> &Shpr2

0xd1c - System Handler Priority Register 2

source

pub fn shpr3(&self) -> &Shpr3

0xd20 - System Handler Priority Register 3

source

pub fn shcsr(&self) -> &Shcsr

0xd24 - System Handler Control and State Register

source

pub fn cfsr(&self) -> &Cfsr

0xd28 - Configurable Fault Status Register

source

pub fn hfsr(&self) -> &Hfsr

0xd2c - HardFault Status Register

source

pub fn mmfar(&self) -> &Mmfar

0xd34 - MemManage Fault Address Register

source

pub fn bfar(&self) -> &Bfar

0xd38 - BusFault Address Register

source

pub fn afsr(&self) -> &Afsr

0xd3c - Auxiliary Fault Status Register

source

pub fn cpacr(&self) -> &Cpacr

0xd88 - Coprocessor Access Control Register

source

pub fn mpu_type(&self) -> &MpuType

0xd90 - MPU Type Register

source

pub fn mpu_ctrl(&self) -> &MpuCtrl

0xd94 - MPU Control Register

source

pub fn mpu_rnr(&self) -> &MpuRnr

0xd98 - MPU Region Number Register

source

pub fn mpu_rbar(&self) -> &MpuRbar

0xd9c - MPU Region Base Address Register

source

pub fn mpu_rasr(&self) -> &MpuRasr

0xda0 - MPU Region Attribute and Size Register

source

pub fn mpu_rbar_a1(&self) -> &MpuRbarA1

0xda4 - MPU Region Base Address Register A1

source

pub fn mpu_rasr_a1(&self) -> &MpuRasrA1

0xda8 - MPU Region Attribute and Size Register A1

source

pub fn mpu_rbar_a2(&self) -> &MpuRbarA2

0xdac - MPU Region Base Address Register A2

source

pub fn mpu_rasr_a2(&self) -> &MpuRasrA2

0xdb0 - MPU Region Attribute and Size Register A2

source

pub fn mpu_rbar_a3(&self) -> &MpuRbarA3

0xdb4 - MPU Region Base Address Register A3

source

pub fn mpu_rasr_a3(&self) -> &MpuRasrA3

0xdb8 - MPU Region Attribute and Size Register A3

source

pub fn stir(&self) -> &Stir

0xf00 - Software Trigger Interrupt Register

source

pub fn fpccr(&self) -> &Fpccr

0xf34 - Floating-point Context Control Register

source

pub fn fpcar(&self) -> &Fpcar

0xf38 - Floating-point Context Address Register

source

pub fn fpdscr(&self) -> &Fpdscr

0xf3c - Floating-point Default Status Control Register

Trait Implementations§

source§

impl Debug for Ppb

source§

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

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

impl Deref for Ppb

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for Ppb

Auto Trait Implementations§

§

impl RefUnwindSafe for Ppb

§

impl !Sync for Ppb

§

impl Unpin for Ppb

§

impl UnwindSafe for Ppb

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.