atsamd11c

Struct Tcc0

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

Timer Counter Control

Implementations§

Source§

impl Tcc0

Source

pub const PTR: *const RegisterBlock = {0x42001400 as *const tcc0::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 ctrla(&self) -> &Ctrla

0x00 - Control A

Source

pub fn ctrlbclr(&self) -> &Ctrlbclr

0x04 - Control B Clear

Source

pub fn ctrlbset(&self) -> &Ctrlbset

0x05 - Control B Set

Source

pub fn syncbusy(&self) -> &Syncbusy

0x08 - Synchronization Busy

Source

pub fn fctrla(&self) -> &Fctrla

0x0c - Recoverable Fault A Configuration

Source

pub fn fctrlb(&self) -> &Fctrlb

0x10 - Recoverable Fault B Configuration

Source

pub fn wexctrl(&self) -> &Wexctrl

0x14 - Waveform Extension Configuration

Source

pub fn drvctrl(&self) -> &Drvctrl

0x18 - Driver Control

Source

pub fn dbgctrl(&self) -> &Dbgctrl

0x1e - Debug Control

Source

pub fn evctrl(&self) -> &Evctrl

0x20 - Event Control

Source

pub fn intenclr(&self) -> &Intenclr

0x24 - Interrupt Enable Clear

Source

pub fn intenset(&self) -> &Intenset

0x28 - Interrupt Enable Set

Source

pub fn intflag(&self) -> &Intflag

0x2c - Interrupt Flag Status and Clear

Source

pub fn status(&self) -> &Status

0x30 - Status

Source

pub fn count_dith6(&self) -> &CountDith6

0x34 - Count

Source

pub fn count_dith5(&self) -> &CountDith5

0x34 - Count

Source

pub fn count_dith4(&self) -> &CountDith4

0x34 - Count

Source

pub fn count(&self) -> &Count

0x34 - Count

Source

pub fn patt(&self) -> &Patt

0x38 - Pattern

Source

pub fn wave(&self) -> &Wave

0x3c - Waveform Control

Source

pub fn per_dith6(&self) -> &PerDith6

0x40 - Period

Source

pub fn per_dith5(&self) -> &PerDith5

0x40 - Period

Source

pub fn per_dith4(&self) -> &PerDith4

0x40 - Period

Source

pub fn per(&self) -> &Per

0x40 - Period

Source

pub fn cc_dith6(&self, n: usize) -> &CcDith6

0x44..0x54 - Compare and Capture

Source

pub fn cc_dith6_iter(&self) -> impl Iterator<Item = &CcDith6>

Iterator for array of: 0x44..0x54 - Compare and Capture

Source

pub fn cc0_dith6(&self) -> &CcDith6

0x44 - Compare and Capture

Source

pub fn cc1_dith6(&self) -> &CcDith6

0x48 - Compare and Capture

Source

pub fn cc2_dith6(&self) -> &CcDith6

0x4c - Compare and Capture

Source

pub fn cc3_dith6(&self) -> &CcDith6

0x50 - Compare and Capture

Source

pub fn cc_dith5(&self, n: usize) -> &CcDith5

0x44..0x54 - Compare and Capture

Source

pub fn cc_dith5_iter(&self) -> impl Iterator<Item = &CcDith5>

Iterator for array of: 0x44..0x54 - Compare and Capture

Source

pub fn cc0_dith5(&self) -> &CcDith5

0x44 - Compare and Capture

Source

pub fn cc1_dith5(&self) -> &CcDith5

0x48 - Compare and Capture

Source

pub fn cc2_dith5(&self) -> &CcDith5

0x4c - Compare and Capture

Source

pub fn cc3_dith5(&self) -> &CcDith5

0x50 - Compare and Capture

Source

pub fn cc_dith4(&self, n: usize) -> &CcDith4

0x44..0x54 - Compare and Capture

Source

pub fn cc_dith4_iter(&self) -> impl Iterator<Item = &CcDith4>

Iterator for array of: 0x44..0x54 - Compare and Capture

Source

pub fn cc0_dith4(&self) -> &CcDith4

0x44 - Compare and Capture

Source

pub fn cc1_dith4(&self) -> &CcDith4

0x48 - Compare and Capture

Source

pub fn cc2_dith4(&self) -> &CcDith4

0x4c - Compare and Capture

Source

pub fn cc3_dith4(&self) -> &CcDith4

0x50 - Compare and Capture

Source

pub fn cc(&self, n: usize) -> &Cc

0x44..0x54 - Compare and Capture

Source

pub fn cc_iter(&self) -> impl Iterator<Item = &Cc>

Iterator for array of: 0x44..0x54 - Compare and Capture

Source

pub fn pattb(&self) -> &Pattb

0x64 - Pattern Buffer

Source

pub fn waveb(&self) -> &Waveb

0x68 - Waveform Control Buffer

Source

pub fn perb_dith6(&self) -> &PerbDith6

0x6c - Period Buffer

Source

pub fn perb_dith5(&self) -> &PerbDith5

0x6c - Period Buffer

Source

pub fn perb_dith4(&self) -> &PerbDith4

0x6c - Period Buffer

Source

pub fn perb(&self) -> &Perb

0x6c - Period Buffer

Source

pub fn ccb_dith6(&self, n: usize) -> &CcbDith6

0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb_dith6_iter(&self) -> impl Iterator<Item = &CcbDith6>

Iterator for array of: 0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb0_dith6(&self) -> &CcbDith6

0x70 - Compare and Capture Buffer

Source

pub fn ccb1_dith6(&self) -> &CcbDith6

0x74 - Compare and Capture Buffer

Source

pub fn ccb2_dith6(&self) -> &CcbDith6

0x78 - Compare and Capture Buffer

Source

pub fn ccb3_dith6(&self) -> &CcbDith6

0x7c - Compare and Capture Buffer

Source

pub fn ccb_dith5(&self, n: usize) -> &CcbDith5

0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb_dith5_iter(&self) -> impl Iterator<Item = &CcbDith5>

Iterator for array of: 0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb0_dith5(&self) -> &CcbDith5

0x70 - Compare and Capture Buffer

Source

pub fn ccb1_dith5(&self) -> &CcbDith5

0x74 - Compare and Capture Buffer

Source

pub fn ccb2_dith5(&self) -> &CcbDith5

0x78 - Compare and Capture Buffer

Source

pub fn ccb3_dith5(&self) -> &CcbDith5

0x7c - Compare and Capture Buffer

Source

pub fn ccb_dith4(&self, n: usize) -> &CcbDith4

0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb_dith4_iter(&self) -> impl Iterator<Item = &CcbDith4>

Iterator for array of: 0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb0_dith4(&self) -> &CcbDith4

0x70 - Compare and Capture Buffer

Source

pub fn ccb1_dith4(&self) -> &CcbDith4

0x74 - Compare and Capture Buffer

Source

pub fn ccb2_dith4(&self) -> &CcbDith4

0x78 - Compare and Capture Buffer

Source

pub fn ccb3_dith4(&self) -> &CcbDith4

0x7c - Compare and Capture Buffer

Source

pub fn ccb(&self, n: usize) -> &Ccb

0x70..0x80 - Compare and Capture Buffer

Source

pub fn ccb_iter(&self) -> impl Iterator<Item = &Ccb>

Iterator for array of: 0x70..0x80 - Compare and Capture Buffer

Trait Implementations§

Source§

impl Debug for Tcc0

Source§

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

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

impl Deref for Tcc0

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for Tcc0

Auto Trait Implementations§

§

impl Freeze for Tcc0

§

impl RefUnwindSafe for Tcc0

§

impl !Sync for Tcc0

§

impl Unpin for Tcc0

§

impl UnwindSafe for Tcc0

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.