#[repr(C)]
pub struct RegisterBlock {
Show 28 fields pub mr: MR, pub ena: ENA, pub dis: DIS, pub sr: SR, pub ier: IER, pub idr: IDR, pub imr: IMR, pub isr: ISR, pub cmr0: CMR0, pub cdty0: CDTY0, pub cprd0: CPRD0, pub ccnt0: CCNT0, pub cupd0: CUPD0, pub cmr1: CMR1, pub cdty1: CDTY1, pub cprd1: CPRD1, pub ccnt1: CCNT1, pub cupd1: CUPD1, pub cmr2: CMR2, pub cdty2: CDTY2, pub cprd2: CPRD2, pub ccnt2: CCNT2, pub cupd2: CUPD2, pub cmr3: CMR3, pub cdty3: CDTY3, pub cprd3: CPRD3, pub ccnt3: CCNT3, pub cupd3: CUPD3, /* private fields */
}
Expand description

Register block

Fields§

§mr: MR

0x00 - PWM Mode Register

§ena: ENA

0x04 - PWM Enable Register

§dis: DIS

0x08 - PWM Disable Register

§sr: SR

0x0c - PWM Status Register

§ier: IER

0x10 - PWM Interrupt Enable Register

§idr: IDR

0x14 - PWM Interrupt Disable Register

§imr: IMR

0x18 - PWM Interrupt Mask Register

§isr: ISR

0x1c - PWM Interrupt Status Register

§cmr0: CMR0

0x200 - PWM Channel Mode Register (ch_num = 0)

§cdty0: CDTY0

0x204 - PWM Channel Duty Cycle Register (ch_num = 0)

§cprd0: CPRD0

0x208 - PWM Channel Period Register (ch_num = 0)

§ccnt0: CCNT0

0x20c - PWM Channel Counter Register (ch_num = 0)

§cupd0: CUPD0

0x210 - PWM Channel Update Register (ch_num = 0)

§cmr1: CMR1

0x220 - PWM Channel Mode Register (ch_num = 1)

§cdty1: CDTY1

0x224 - PWM Channel Duty Cycle Register (ch_num = 1)

§cprd1: CPRD1

0x228 - PWM Channel Period Register (ch_num = 1)

§ccnt1: CCNT1

0x22c - PWM Channel Counter Register (ch_num = 1)

§cupd1: CUPD1

0x230 - PWM Channel Update Register (ch_num = 1)

§cmr2: CMR2

0x240 - PWM Channel Mode Register (ch_num = 2)

§cdty2: CDTY2

0x244 - PWM Channel Duty Cycle Register (ch_num = 2)

§cprd2: CPRD2

0x248 - PWM Channel Period Register (ch_num = 2)

§ccnt2: CCNT2

0x24c - PWM Channel Counter Register (ch_num = 2)

§cupd2: CUPD2

0x250 - PWM Channel Update Register (ch_num = 2)

§cmr3: CMR3

0x260 - PWM Channel Mode Register (ch_num = 3)

§cdty3: CDTY3

0x264 - PWM Channel Duty Cycle Register (ch_num = 3)

§cprd3: CPRD3

0x268 - PWM Channel Period Register (ch_num = 3)

§ccnt3: CCNT3

0x26c - PWM Channel Counter Register (ch_num = 3)

§cupd3: CUPD3

0x270 - PWM Channel Update Register (ch_num = 3)

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.