Struct hpm5361_pac::PWM0

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

PWM0

Implementations§

source§

impl PWM0

source

pub const PTR: *const RegisterBlock = {0xf0318000 as *const pwm0::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 unlk(&self) -> &UNLK

0x00 - Shadow registers unlock register

source

pub fn sta(&self) -> &STA

0x04 - Counter start register

source

pub fn rld(&self) -> &RLD

0x08 - Counter reload register

source

pub fn cmp(&self, n: usize) -> &CMP

0x0c..0x6c - no description available

source

pub fn cmp_iter(&self) -> impl Iterator<Item = &CMP>

Iterator for array of: 0x0c..0x6c - no description available

source

pub fn frcmd(&self) -> &FRCMD

0x78 - Force output mode register

source

pub fn shlk(&self) -> &SHLK

0x7c - Shadow registers lock register

source

pub fn chcfg(&self, n: usize) -> &CHCFG

0x80..0xe0 - no description available

source

pub fn chcfg_iter(&self) -> impl Iterator<Item = &CHCFG>

Iterator for array of: 0x80..0xe0 - no description available

source

pub fn gcr(&self) -> &GCR

0xf0 - Global control register

source

pub fn shcr(&self) -> &SHCR

0xf4 - Shadow register control register

source

pub fn cappos(&self, n: usize) -> &CAPPOS

0x100..0x160 - no description available

source

pub fn cappos_iter(&self) -> impl Iterator<Item = &CAPPOS>

Iterator for array of: 0x100..0x160 - no description available

source

pub fn cnt(&self) -> &CNT

0x170 - Counter

source

pub fn capneg(&self, n: usize) -> &CAPNEG

0x180..0x1e0 - no description available

source

pub fn capneg_iter(&self) -> impl Iterator<Item = &CAPNEG>

Iterator for array of: 0x180..0x1e0 - no description available

source

pub fn cntcopy(&self) -> &CNTCOPY

0x1f0 - Counter copy

source

pub fn pwmcfg(&self, n: usize) -> &PWMCFG

0x200..0x220 - no description available

source

pub fn pwmcfg_iter(&self) -> impl Iterator<Item = &PWMCFG>

Iterator for array of: 0x200..0x220 - no description available

source

pub fn sr(&self) -> &SR

0x220 - Status register

source

pub fn irqen(&self) -> &IRQEN

0x224 - Interrupt request enable register

source

pub fn dmaen(&self) -> &DMAEN

0x22c - DMA request enable register

source

pub fn cmpcfg(&self, n: usize) -> &CMPCFG

0x230..0x290 - no description available

source

pub fn cmpcfg_iter(&self) -> impl Iterator<Item = &CMPCFG>

Iterator for array of: 0x230..0x290 - no description available

source

pub fn cmpcfgcmpcfg0(&self) -> &CMPCFG

0x230 - no description available

source

pub fn cmpcfg1(&self) -> &CMPCFG

0x234 - no description available

source

pub fn cmpcfg2(&self) -> &CMPCFG

0x238 - no description available

source

pub fn cmpcfg3(&self) -> &CMPCFG

0x23c - no description available

source

pub fn cmpcfg4(&self) -> &CMPCFG

0x240 - no description available

source

pub fn cmpcfg5(&self) -> &CMPCFG

0x244 - no description available

source

pub fn cmpcfg6(&self) -> &CMPCFG

0x248 - no description available

source

pub fn cmpcfg7(&self) -> &CMPCFG

0x24c - no description available

source

pub fn cmpcfg8(&self) -> &CMPCFG

0x250 - no description available

source

pub fn cmpcfg9(&self) -> &CMPCFG

0x254 - no description available

source

pub fn cmpcfg10(&self) -> &CMPCFG

0x258 - no description available

source

pub fn cmpcfg11(&self) -> &CMPCFG

0x25c - no description available

source

pub fn cmpcfg12(&self) -> &CMPCFG

0x260 - no description available

source

pub fn cmpcfg13(&self) -> &CMPCFG

0x264 - no description available

source

pub fn cmpcfg14(&self) -> &CMPCFG

0x268 - no description available

source

pub fn cmpcfg15(&self) -> &CMPCFG

0x26c - no description available

source

pub fn cmpcfg16(&self) -> &CMPCFG

0x270 - no description available

source

pub fn cmpcfg17(&self) -> &CMPCFG

0x274 - no description available

source

pub fn cmpcfg18(&self) -> &CMPCFG

0x278 - no description available

source

pub fn cmpcfg19(&self) -> &CMPCFG

0x27c - no description available

source

pub fn cmpcfg20(&self) -> &CMPCFG

0x280 - no description available

source

pub fn cmpcfg21(&self) -> &CMPCFG

0x284 - no description available

source

pub fn cmpcfg22(&self) -> &CMPCFG

0x288 - no description available

source

pub fn cmpcfg23(&self) -> &CMPCFG

0x28c - no description available

Trait Implementations§

source§

impl Debug for PWM0

source§

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

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

impl Deref for PWM0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for PWM0

Auto Trait Implementations§

§

impl RefUnwindSafe for PWM0

§

impl !Sync for PWM0

§

impl Unpin for PWM0

§

impl UnwindSafe for PWM0

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.