Struct atsame51j::tcc0::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 17 fields pub ctrla: CTRLA, pub ctrlbclr: CTRLBCLR, pub ctrlbset: CTRLBSET, pub syncbusy: SYNCBUSY, pub fctrla: FCTRLA, pub fctrlb: FCTRLB, pub wexctrl: WEXCTRL, pub drvctrl: DRVCTRL, pub dbgctrl: DBGCTRL, pub evctrl: EVCTRL, pub intenclr: INTENCLR, pub intenset: INTENSET, pub intflag: INTFLAG, pub status: STATUS, pub patt: PATT, pub wave: WAVE, pub pattbuf: PATTBUF, /* private fields */
}
Expand description

Register block

Fields§

§ctrla: CTRLA

0x00 - Control A

§ctrlbclr: CTRLBCLR

0x04 - Control B Clear

§ctrlbset: CTRLBSET

0x05 - Control B Set

§syncbusy: SYNCBUSY

0x08 - Synchronization Busy

§fctrla: FCTRLA

0x0c - Recoverable Fault A Configuration

§fctrlb: FCTRLB

0x10 - Recoverable Fault B Configuration

§wexctrl: WEXCTRL

0x14 - Waveform Extension Configuration

§drvctrl: DRVCTRL

0x18 - Driver Control

§dbgctrl: DBGCTRL

0x1e - Debug Control

§evctrl: EVCTRL

0x20 - Event Control

§intenclr: INTENCLR

0x24 - Interrupt Enable Clear

§intenset: INTENSET

0x28 - Interrupt Enable Set

§intflag: INTFLAG

0x2c - Interrupt Flag Status and Clear

§status: STATUS

0x30 - Status

§patt: PATT

0x38 - Pattern

§wave: WAVE

0x3c - Waveform Control

§pattbuf: PATTBUF

0x64 - Pattern Buffer

Implementations§

source§

impl RegisterBlock

source

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

0x34 - Count

source

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

0x34 - Count

source

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

0x34 - Count

source

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

0x34 - Count

source

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

0x40 - Period

source

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

0x40 - Period

source

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

0x40 - Period

source

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

0x40 - Period

source

pub const fn cc_dith6_mode(&self) -> &[CC_DITH6_MODE; 6]

0x44..0x5c - Compare and Capture

source

pub const fn cc_dith5_mode(&self) -> &[CC_DITH5_MODE; 6]

0x44..0x5c - Compare and Capture

source

pub const fn cc_dith4_mode(&self) -> &[CC_DITH4_MODE; 6]

0x44..0x5c - Compare and Capture

source

pub const fn cc(&self) -> &[CC; 6]

0x44..0x5c - Compare and Capture

source

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

0x6c - Period Buffer

source

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

0x6c - Period Buffer

source

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

0x6c - Period Buffer

source

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

0x6c - Period Buffer

source

pub const fn ccbuf_dith6_mode(&self) -> &[CCBUF_DITH6_MODE; 6]

0x70..0x88 - Compare and Capture Buffer

source

pub const fn ccbuf_dith5_mode(&self) -> &[CCBUF_DITH5_MODE; 6]

0x70..0x88 - Compare and Capture Buffer

source

pub const fn ccbuf_dith4_mode(&self) -> &[CCBUF_DITH4_MODE; 6]

0x70..0x88 - Compare and Capture Buffer

source

pub const fn ccbuf(&self) -> &[CCBUF; 6]

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

§

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.