Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn ctrla(&self) -> &Ctrla

0x00 - Control A

Source

pub const fn ctrlbclr(&self) -> &Ctrlbclr

0x04 - Control B Clear

Source

pub const fn ctrlbset(&self) -> &Ctrlbset

0x05 - Control B Set

Source

pub const fn syncbusy(&self) -> &Syncbusy

0x08 - Synchronization Busy

Source

pub const fn fctrla(&self) -> &Fctrla

0x0c - Recoverable Fault A Configuration

Source

pub const fn fctrlb(&self) -> &Fctrlb

0x10 - Recoverable Fault B Configuration

Source

pub const fn wexctrl(&self) -> &Wexctrl

0x14 - Waveform Extension Configuration

Source

pub const fn drvctrl(&self) -> &Drvctrl

0x18 - Driver Control

Source

pub const fn dbgctrl(&self) -> &Dbgctrl

0x1e - Debug Control

Source

pub const fn evctrl(&self) -> &Evctrl

0x20 - Event Control

Source

pub const fn intenclr(&self) -> &Intenclr

0x24 - Interrupt Enable Clear

Source

pub const fn intenset(&self) -> &Intenset

0x28 - Interrupt Enable Set

Source

pub const fn intflag(&self) -> &Intflag

0x2c - Interrupt Flag Status and Clear

Source

pub const fn status(&self) -> &Status

0x30 - Status

Source

pub const fn count_dith6_mode(&self) -> &CountDith6Mode

0x34 - Count

Source

pub const fn count_dith5_mode(&self) -> &CountDith5Mode

0x34 - Count

Source

pub const fn count_dith4_mode(&self) -> &CountDith4Mode

0x34 - Count

Source

pub const fn count(&self) -> &Count

0x34 - Count

Source

pub const fn patt(&self) -> &Patt

0x38 - Pattern

Source

pub const fn wave(&self) -> &Wave

0x3c - Waveform Control

Source

pub const fn per_dith6_mode(&self) -> &PerDith6Mode

0x40 - Period

Source

pub const fn per_dith5_mode(&self) -> &PerDith5Mode

0x40 - Period

Source

pub const fn per_dith4_mode(&self) -> &PerDith4Mode

0x40 - Period

Source

pub const fn per(&self) -> &Per

0x40 - Period

Source

pub const fn cc_dith6_mode(&self, n: usize) -> &CcDith6Mode

0x44..0x5c - Compare and Capture

Source

pub fn cc_dith6_mode_iter(&self) -> impl Iterator<Item = &CcDith6Mode>

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

Source

pub const fn cc_dith5_mode(&self, n: usize) -> &CcDith5Mode

0x44..0x5c - Compare and Capture

Source

pub fn cc_dith5_mode_iter(&self) -> impl Iterator<Item = &CcDith5Mode>

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

Source

pub const fn cc_dith4_mode(&self, n: usize) -> &CcDith4Mode

0x44..0x5c - Compare and Capture

Source

pub fn cc_dith4_mode_iter(&self) -> impl Iterator<Item = &CcDith4Mode>

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

Source

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

0x44..0x5c - Compare and Capture

Source

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

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

Source

pub const fn pattbuf(&self) -> &Pattbuf

0x64 - Pattern Buffer

Source

pub const fn perbuf_dith6_mode(&self) -> &PerbufDith6Mode

0x6c - Period Buffer

Source

pub const fn perbuf_dith5_mode(&self) -> &PerbufDith5Mode

0x6c - Period Buffer

Source

pub const fn perbuf_dith4_mode(&self) -> &PerbufDith4Mode

0x6c - Period Buffer

Source

pub const fn perbuf(&self) -> &Perbuf

0x6c - Period Buffer

Source

pub const fn ccbuf_dith6_mode(&self, n: usize) -> &CcbufDith6Mode

0x70..0x88 - Compare and Capture Buffer

Source

pub fn ccbuf_dith6_mode_iter(&self) -> impl Iterator<Item = &CcbufDith6Mode>

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

Source

pub const fn ccbuf_dith5_mode(&self, n: usize) -> &CcbufDith5Mode

0x70..0x88 - Compare and Capture Buffer

Source

pub fn ccbuf_dith5_mode_iter(&self) -> impl Iterator<Item = &CcbufDith5Mode>

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

Source

pub const fn ccbuf_dith4_mode(&self, n: usize) -> &CcbufDith4Mode

0x70..0x88 - Compare and Capture Buffer

Source

pub fn ccbuf_dith4_mode_iter(&self) -> impl Iterator<Item = &CcbufDith4Mode>

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

Source

pub const fn ccbuf(&self, n: usize) -> &Ccbuf

0x70..0x88 - Compare and Capture Buffer

Source

pub fn ccbuf_iter(&self) -> impl Iterator<Item = &Ccbuf>

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

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<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.