#[repr(C)]
pub struct TC_CHANNEL { pub ccr: CCR, pub smmr: SMMR, pub rab: RAB, pub cv: CV, pub ra: RA, pub rb: RB, pub rc: RC, pub sr: SR, pub ier: IER, pub idr: IDR, pub imr: IMR, pub emr: EMR, /* private fields */ }
Expand description

Register block

Fields§

§ccr: CCR

0x00 - Channel Control Register (channel = 0)

§smmr: SMMR

0x08 - Stepper Motor Mode Register (channel = 0)

§rab: RAB

0x0c - Register AB (channel = 0)

§cv: CV

0x10 - Counter Value (channel = 0)

§ra: RA

0x14 - Register A (channel = 0)

§rb: RB

0x18 - Register B (channel = 0)

§rc: RC

0x1c - Register C (channel = 0)

§sr: SR

0x20 - Status Register (channel = 0)

§ier: IER

0x24 - Interrupt Enable Register (channel = 0)

§idr: IDR

0x28 - Interrupt Disable Register (channel = 0)

§imr: IMR

0x2c - Interrupt Mask Register (channel = 0)

§emr: EMR

0x30 - Extended Mode Register (channel = 0)

Implementations§

source§

impl TC_CHANNEL

source

pub const fn cmr_waveform_mode(&self) -> &CMR_WAVEFORM_MODE

0x04 - Channel Mode Register (channel = 0)

source

pub const fn cmr_capture_mode(&self) -> &CMR_CAPTURE_MODE

0x04 - Channel Mode Register (channel = 0)

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.