#[repr(C)]
pub struct RegisterBlock {
Show 18 fields pub ctlr1: CTLR1, pub ctlr2: CTLR2, pub smcfgr: SMCFGR, pub dmaintenr: DMAINTENR, pub intfr: INTFR, pub swevgr: SWEVGR, pub ccer: CCER, pub cnt: CNT, pub psc: PSC, pub atrlr: ATRLR, pub rptcr: RPTCR, pub ch1cvr: CH1CVR, pub ch2cvr: CH2CVR, pub ch3cvr: CH3CVR, pub ch4cvr: CH4CVR, pub bdtr: BDTR, pub dmacfgr: DMACFGR, pub dmaadr: DMAADR, /* private fields */
}
Expand description

Register block

Fields§

§ctlr1: CTLR1

0x00 - control register 1

§ctlr2: CTLR2

0x04 - control register 2

§smcfgr: SMCFGR

0x08 - slave mode control register

§dmaintenr: DMAINTENR

0x0c - DMA/Interrupt enable register

§intfr: INTFR

0x10 - status register

§swevgr: SWEVGR

0x14 - event generation register

§ccer: CCER

0x20 - capture/compare enable register

§cnt: CNT

0x24 - counter

§psc: PSC

0x28 - prescaler

§atrlr: ATRLR

0x2c - auto-reload register

§rptcr: RPTCR

0x30 - repetition counter register

§ch1cvr: CH1CVR

0x34 - capture/compare register 1

§ch2cvr: CH2CVR

0x38 - capture/compare register 2

§ch3cvr: CH3CVR

0x3c - capture/compare register 3

§ch4cvr: CH4CVR

0x40 - capture/compare register 4

§bdtr: BDTR

0x44 - break and dead-time register

§dmacfgr: DMACFGR

0x48 - DMA control register

§dmaadr: DMAADR

0x4c - DMA address for full transfer

Implementations§

source§

impl RegisterBlock

source

pub const fn chctlr1_input(&self) -> &CHCTLR1_INPUT

0x18 - capture/compare mode register 1 (input mode)

source

pub const fn chctlr1_output(&self) -> &CHCTLR1_OUTPUT

0x18 - capture/compare mode register (output mode)

source

pub const fn chctlr2_input(&self) -> &CHCTLR2_INPUT

0x1c - capture/compare mode register 2 (input mode)

source

pub const fn chctlr2_output(&self) -> &CHCTLR2_OUTPUT

0x1c - capture/compare mode register (output mode)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.