xmc4300

Struct CCU80_CC81

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

Capture Compare Unit 8 - Unit 0

Implementations§

Source§

impl CCU80_CC81

Source

pub const PTR: *const RegisterBlock = {0x40020200 as *const ccu80_cc80::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 ins(&self) -> &INS

0x00 - Input Selector Configuration

Source

pub fn cmc(&self) -> &CMC

0x04 - Connection Matrix Control

Source

pub fn tcst(&self) -> &TCST

0x08 - Slice Timer Status

Source

pub fn tcset(&self) -> &TCSET

0x0c - Slice Timer Run Set

Source

pub fn tcclr(&self) -> &TCCLR

0x10 - Slice Timer Clear

Source

pub fn tc(&self) -> &TC

0x14 - Slice Timer Control

Source

pub fn psl(&self) -> &PSL

0x18 - Passive Level Config

Source

pub fn dit(&self) -> &DIT

0x1c - Dither Config

Source

pub fn dits(&self) -> &DITS

0x20 - Dither Shadow Register

Source

pub fn psc(&self) -> &PSC

0x24 - Prescaler Control

Source

pub fn fpc(&self) -> &FPC

0x28 - Floating Prescaler Control

Source

pub fn fpcs(&self) -> &FPCS

0x2c - Floating Prescaler Shadow

Source

pub fn pr(&self) -> &PR

0x30 - Timer Period Value

Source

pub fn prs(&self) -> &PRS

0x34 - Timer Shadow Period Value

Source

pub fn cr1(&self) -> &CR1

0x38 - Channel 1 Compare Value

Source

pub fn cr1s(&self) -> &CR1S

0x3c - Channel 1 Compare Shadow Value

Source

pub fn cr2(&self) -> &CR2

0x40 - Channel 2 Compare Value

Source

pub fn cr2s(&self) -> &CR2S

0x44 - Channel 2 Compare Shadow Value

Source

pub fn chc(&self) -> &CHC

0x48 - Channel Control

Source

pub fn dtc(&self) -> &DTC

0x4c - Dead Time Control

Source

pub fn dc1r(&self) -> &DC1R

0x50 - Channel 1 Dead Time Values

Source

pub fn dc2r(&self) -> &DC2R

0x54 - Channel 2 Dead Time Values

Source

pub fn timer(&self) -> &TIMER

0x70 - Timer Value

Source

pub fn c0v(&self) -> &C0V

0x74 - Capture Register 0

Source

pub fn c1v(&self) -> &C1V

0x78 - Capture Register 1

Source

pub fn c2v(&self) -> &C2V

0x7c - Capture Register 2

Source

pub fn c3v(&self) -> &C3V

0x80 - Capture Register 3

Source

pub fn ints(&self) -> &INTS

0xa0 - Interrupt Status

Source

pub fn inte(&self) -> &INTE

0xa4 - Interrupt Enable Control

Source

pub fn srs(&self) -> &SRS

0xa8 - Service Request Selector

Source

pub fn sws(&self) -> &SWS

0xac - Interrupt Status Set

Source

pub fn swr(&self) -> &SWR

0xb0 - Interrupt Status Clear

Source

pub fn stc(&self) -> &STC

0xb4 - Shadow transfer control

Source

pub fn ecrd0(&self) -> &ECRD0

0xb8 - Extended Read Back 0

Source

pub fn ecrd1(&self) -> &ECRD1

0xbc - Extended Read Back 1

Trait Implementations§

Source§

impl Debug for CCU80_CC81

Source§

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

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

impl Deref for CCU80_CC81

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for CCU80_CC81

Auto Trait Implementations§

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.