Struct PDS

Source
pub struct PDS { /* private fields */ }
Expand description

Power-Down Sleep control

Implementations§

Source§

impl PDS

Source

pub const PTR: *const RegisterBlock = {0x2000e000 as *const pds::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 pds_ctl(&self) -> &PDS_CTL

0x00 - PDS_CTL.

Source

pub fn pds_time1(&self) -> &PDS_TIME1

0x04 - PDS_TIME1.

Source

pub fn pds_int(&self) -> &PDS_INT

0x0c - PDS_INT.

Source

pub fn pds_ctl2(&self) -> &PDS_CTL2

0x10 - PDS_CTL2.

Source

pub fn pds_ctl3(&self) -> &PDS_CTL3

0x14 - PDS_CTL3.

Source

pub fn pds_ctl4(&self) -> &PDS_CTL4

0x18 - PDS_CTL4.

Source

pub fn pds_stat(&self) -> &PDS_STAT

0x1c - pds_stat.

Source

pub fn pds_ram1(&self) -> &PDS_RAM1

0x20 - pds_ram1.

Source

pub fn pds_ctl5(&self) -> &PDS_CTL5

0x24 - PDS_CTL5.

Source

pub fn pds_ram2(&self) -> &PDS_RAM2

0x28 - PDS_RAM2.

Source

pub fn pds_gpio_i_set(&self) -> &PDS_GPIO_I_SET

0x30 - pds_gpio_i_set.

Source

pub fn pds_gpio_pd_set(&self) -> &PDS_GPIO_PD_SET

0x34 - pds_gpio_pd_set.

Source

pub fn pds_gpio_int(&self) -> &PDS_GPIO_INT

0x40 - pds_gpio_int.

Source

pub fn pds_gpio_stat(&self) -> &PDS_GPIO_STAT

0x44 - pds_gpio_stat.

Source

pub fn pds_ram3(&self) -> &PDS_RAM3

0x48 - PDS_RAM3.

Source

pub fn pds_ram4(&self) -> &PDS_RAM4

0x4c - PDS_RAM4.

Source

pub fn cpu_core_cfg1(&self) -> &CPU_CORE_CFG1

0x114 - cpu_core_cfg1.

Source

pub fn cpu_core_cfg14(&self) -> &CPU_CORE_CFG14

0x148 - cpu_core_cfg14.

Source

pub fn rc32m_ctrl0(&self) -> &RC32M_CTRL0

0x300 - rc32m_ctrl0.

Source

pub fn rc32m_ctrl1(&self) -> &RC32M_CTRL1

0x304 - rc32m_ctrl1.

Source

pub fn rc32m_ctrl2(&self) -> &RC32M_CTRL2

0x308 - rc32m_ctrl2.

Source

pub fn pu_rst_clkpll(&self) -> &PU_RST_CLKPLL

0x400 - pu_rst_clkpll.

Source

pub fn usb_ctl(&self) -> &USB_CTL

0x500 - usb_ctl.

Source

pub fn usb_phy_ctrl(&self) -> &USB_PHY_CTRL

0x504 - usb_phy_ctrl.

Trait Implementations§

Source§

impl Debug for PDS

Source§

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

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

impl Deref for PDS

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for PDS

Auto Trait Implementations§

§

impl Freeze for PDS

§

impl RefUnwindSafe for PDS

§

impl !Sync for PDS

§

impl Unpin for PDS

§

impl UnwindSafe for PDS

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.