Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn mr(&self) -> &Mr

0x00 - PWM Mode Register

Source

pub const fn ena(&self) -> &Ena

0x04 - PWM Enable Register

Source

pub const fn dis(&self) -> &Dis

0x08 - PWM Disable Register

Source

pub const fn sr(&self) -> &Sr

0x0c - PWM Status Register

Source

pub const fn ier(&self) -> &Ier

0x10 - PWM Interrupt Enable Register

Source

pub const fn idr(&self) -> &Idr

0x14 - PWM Interrupt Disable Register

Source

pub const fn imr(&self) -> &Imr

0x18 - PWM Interrupt Mask Register

Source

pub const fn isr(&self) -> &Isr

0x1c - PWM Interrupt Status Register

Source

pub const fn cmr0(&self) -> &Cmr0

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

Source

pub const fn cdty0(&self) -> &Cdty0

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

Source

pub const fn cprd0(&self) -> &Cprd0

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

Source

pub const fn ccnt0(&self) -> &Ccnt0

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

Source

pub const fn cupd0(&self) -> &Cupd0

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

Source

pub const fn cmr1(&self) -> &Cmr1

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

Source

pub const fn cdty1(&self) -> &Cdty1

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

Source

pub const fn cprd1(&self) -> &Cprd1

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

Source

pub const fn ccnt1(&self) -> &Ccnt1

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

Source

pub const fn cupd1(&self) -> &Cupd1

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

Source

pub const fn cmr2(&self) -> &Cmr2

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

Source

pub const fn cdty2(&self) -> &Cdty2

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

Source

pub const fn cprd2(&self) -> &Cprd2

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

Source

pub const fn ccnt2(&self) -> &Ccnt2

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

Source

pub const fn cupd2(&self) -> &Cupd2

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

Source

pub const fn cmr3(&self) -> &Cmr3

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

Source

pub const fn cdty3(&self) -> &Cdty3

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

Source

pub const fn cprd3(&self) -> &Cprd3

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

Source

pub const fn ccnt3(&self) -> &Ccnt3

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

Source

pub const fn cupd3(&self) -> &Cupd3

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

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.