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 sm0cnt(&self) -> &Sm0cnt

0x00 - Counter Register

Source

pub const fn sm0init(&self) -> &Sm0init

0x02 - Initial Count Register

Source

pub const fn sm0ctrl2(&self) -> &Sm0ctrl2

0x04 - Control 2 Register

Source

pub const fn sm0ctrl(&self) -> &Sm0ctrl

0x06 - Control Register

Source

pub const fn sm0val0(&self) -> &Sm0val0

0x0a - Value Register 0

Source

pub const fn sm0val1(&self) -> &Sm0val1

0x0e - Value Register 1

Source

pub const fn sm0val2(&self) -> &Sm0val2

0x12 - Value Register 2

Source

pub const fn sm0val3(&self) -> &Sm0val3

0x16 - Value Register 3

Source

pub const fn sm0val4(&self) -> &Sm0val4

0x1a - Value Register 4

Source

pub const fn sm0val5(&self) -> &Sm0val5

0x1e - Value Register 5

Source

pub const fn sm0octrl(&self) -> &Sm0octrl

0x22 - Output Control Register

Source

pub const fn sm0sts(&self) -> &Sm0sts

0x24 - Status Register

Source

pub const fn sm0inten(&self) -> &Sm0inten

0x26 - Interrupt Enable Register

Source

pub const fn sm0dmaen(&self) -> &Sm0dmaen

0x28 - DMA Enable Register

Source

pub const fn sm0tctrl(&self) -> &Sm0tctrl

0x2a - Output Trigger Control Register

Source

pub const fn sm0dismap0(&self) -> &Sm0dismap0

0x2c - Fault Disable Mapping Register 0

Source

pub const fn sm0dtcnt0(&self) -> &Sm0dtcnt0

0x30 - Deadtime Count Register 0

Source

pub const fn sm0dtcnt1(&self) -> &Sm0dtcnt1

0x32 - Deadtime Count Register 1

Source

pub const fn sm0captctrlx(&self) -> &Sm0captctrlx

0x3c - Capture Control X Register

Source

pub const fn sm0captcompx(&self) -> &Sm0captcompx

0x3e - Capture Compare X Register

Source

pub const fn sm0cval0(&self) -> &Sm0cval0

0x40 - Capture Value 0 Register

Source

pub const fn sm0cval0cyc(&self) -> &Sm0cval0cyc

0x42 - Capture Value 0 Cycle Register

Source

pub const fn sm0cval1(&self) -> &Sm0cval1

0x44 - Capture Value 1 Register

Source

pub const fn sm0cval1cyc(&self) -> &Sm0cval1cyc

0x46 - Capture Value 1 Cycle Register

Source

pub const fn sm0captfiltx(&self) -> &Sm0captfiltx

0x5e - Capture PWM_X Input Filter Register

Source

pub const fn sm1cnt(&self) -> &Sm1cnt

0x60 - Counter Register

Source

pub const fn sm1init(&self) -> &Sm1init

0x62 - Initial Count Register

Source

pub const fn sm1ctrl2(&self) -> &Sm1ctrl2

0x64 - Control 2 Register

Source

pub const fn sm1ctrl(&self) -> &Sm1ctrl

0x66 - Control Register

Source

pub const fn sm1val0(&self) -> &Sm1val0

0x6a - Value Register 0

Source

pub const fn sm1val1(&self) -> &Sm1val1

0x6e - Value Register 1

Source

pub const fn sm1val2(&self) -> &Sm1val2

0x72 - Value Register 2

Source

pub const fn sm1val3(&self) -> &Sm1val3

0x76 - Value Register 3

Source

pub const fn sm1val4(&self) -> &Sm1val4

0x7a - Value Register 4

Source

pub const fn sm1val5(&self) -> &Sm1val5

0x7e - Value Register 5

Source

pub const fn sm1octrl(&self) -> &Sm1octrl

0x82 - Output Control Register

Source

pub const fn sm1sts(&self) -> &Sm1sts

0x84 - Status Register

Source

pub const fn sm1inten(&self) -> &Sm1inten

0x86 - Interrupt Enable Register

Source

pub const fn sm1dmaen(&self) -> &Sm1dmaen

0x88 - DMA Enable Register

Source

pub const fn sm1tctrl(&self) -> &Sm1tctrl

0x8a - Output Trigger Control Register

Source

pub const fn sm1dismap0(&self) -> &Sm1dismap0

0x8c - Fault Disable Mapping Register 0

Source

pub const fn sm1dtcnt0(&self) -> &Sm1dtcnt0

0x90 - Deadtime Count Register 0

Source

pub const fn sm1dtcnt1(&self) -> &Sm1dtcnt1

0x92 - Deadtime Count Register 1

Source

pub const fn sm1captctrlx(&self) -> &Sm1captctrlx

0x9c - Capture Control X Register

Source

pub const fn sm1captcompx(&self) -> &Sm1captcompx

0x9e - Capture Compare X Register

Source

pub const fn sm1cval0(&self) -> &Sm1cval0

0xa0 - Capture Value 0 Register

Source

pub const fn sm1cval0cyc(&self) -> &Sm1cval0cyc

0xa2 - Capture Value 0 Cycle Register

Source

pub const fn sm1cval1(&self) -> &Sm1cval1

0xa4 - Capture Value 1 Register

Source

pub const fn sm1cval1cyc(&self) -> &Sm1cval1cyc

0xa6 - Capture Value 1 Cycle Register

Source

pub const fn sm1phasedly(&self) -> &Sm1phasedly

0xb8 - Phase Delay Register

Source

pub const fn sm1captfiltx(&self) -> &Sm1captfiltx

0xbe - Capture PWM_X Input Filter Register

Source

pub const fn sm2cnt(&self) -> &Sm2cnt

0xc0 - Counter Register

Source

pub const fn sm2init(&self) -> &Sm2init

0xc2 - Initial Count Register

Source

pub const fn sm2ctrl2(&self) -> &Sm2ctrl2

0xc4 - Control 2 Register

Source

pub const fn sm2ctrl(&self) -> &Sm2ctrl

0xc6 - Control Register

Source

pub const fn sm2val0(&self) -> &Sm2val0

0xca - Value Register 0

Source

pub const fn sm2val1(&self) -> &Sm2val1

0xce - Value Register 1

Source

pub const fn sm2val2(&self) -> &Sm2val2

0xd2 - Value Register 2

Source

pub const fn sm2val3(&self) -> &Sm2val3

0xd6 - Value Register 3

Source

pub const fn sm2val4(&self) -> &Sm2val4

0xda - Value Register 4

Source

pub const fn sm2val5(&self) -> &Sm2val5

0xde - Value Register 5

Source

pub const fn sm2octrl(&self) -> &Sm2octrl

0xe2 - Output Control Register

Source

pub const fn sm2sts(&self) -> &Sm2sts

0xe4 - Status Register

Source

pub const fn sm2inten(&self) -> &Sm2inten

0xe6 - Interrupt Enable Register

Source

pub const fn sm2dmaen(&self) -> &Sm2dmaen

0xe8 - DMA Enable Register

Source

pub const fn sm2tctrl(&self) -> &Sm2tctrl

0xea - Output Trigger Control Register

Source

pub const fn sm2dismap0(&self) -> &Sm2dismap0

0xec - Fault Disable Mapping Register 0

Source

pub const fn sm2dtcnt0(&self) -> &Sm2dtcnt0

0xf0 - Deadtime Count Register 0

Source

pub const fn sm2dtcnt1(&self) -> &Sm2dtcnt1

0xf2 - Deadtime Count Register 1

Source

pub const fn sm2captctrlx(&self) -> &Sm2captctrlx

0xfc - Capture Control X Register

Source

pub const fn sm2captcompx(&self) -> &Sm2captcompx

0xfe - Capture Compare X Register

Source

pub const fn sm2cval0(&self) -> &Sm2cval0

0x100 - Capture Value 0 Register

Source

pub const fn sm2cval0cyc(&self) -> &Sm2cval0cyc

0x102 - Capture Value 0 Cycle Register

Source

pub const fn sm2cval1(&self) -> &Sm2cval1

0x104 - Capture Value 1 Register

Source

pub const fn sm2cval1cyc(&self) -> &Sm2cval1cyc

0x106 - Capture Value 1 Cycle Register

Source

pub const fn sm2phasedly(&self) -> &Sm2phasedly

0x118 - Phase Delay Register

Source

pub const fn sm2captfiltx(&self) -> &Sm2captfiltx

0x11e - Capture PWM_X Input Filter Register

Source

pub const fn sm3cnt(&self) -> &Sm3cnt

0x120 - Counter Register

Source

pub const fn sm3init(&self) -> &Sm3init

0x122 - Initial Count Register

Source

pub const fn sm3ctrl2(&self) -> &Sm3ctrl2

0x124 - Control 2 Register

Source

pub const fn sm3ctrl(&self) -> &Sm3ctrl

0x126 - Control Register

Source

pub const fn sm3val0(&self) -> &Sm3val0

0x12a - Value Register 0

Source

pub const fn sm3val1(&self) -> &Sm3val1

0x12e - Value Register 1

Source

pub const fn sm3val2(&self) -> &Sm3val2

0x132 - Value Register 2

Source

pub const fn sm3val3(&self) -> &Sm3val3

0x136 - Value Register 3

Source

pub const fn sm3val4(&self) -> &Sm3val4

0x13a - Value Register 4

Source

pub const fn sm3val5(&self) -> &Sm3val5

0x13e - Value Register 5

Source

pub const fn sm3octrl(&self) -> &Sm3octrl

0x142 - Output Control Register

Source

pub const fn sm3sts(&self) -> &Sm3sts

0x144 - Status Register

Source

pub const fn sm3inten(&self) -> &Sm3inten

0x146 - Interrupt Enable Register

Source

pub const fn sm3dmaen(&self) -> &Sm3dmaen

0x148 - DMA Enable Register

Source

pub const fn sm3tctrl(&self) -> &Sm3tctrl

0x14a - Output Trigger Control Register

Source

pub const fn sm3dismap0(&self) -> &Sm3dismap0

0x14c - Fault Disable Mapping Register 0

Source

pub const fn sm3dtcnt0(&self) -> &Sm3dtcnt0

0x150 - Deadtime Count Register 0

Source

pub const fn sm3dtcnt1(&self) -> &Sm3dtcnt1

0x152 - Deadtime Count Register 1

Source

pub const fn sm3captctrlx(&self) -> &Sm3captctrlx

0x15c - Capture Control X Register

Source

pub const fn sm3captcompx(&self) -> &Sm3captcompx

0x15e - Capture Compare X Register

Source

pub const fn sm3cval0(&self) -> &Sm3cval0

0x160 - Capture Value 0 Register

Source

pub const fn sm3cval0cyc(&self) -> &Sm3cval0cyc

0x162 - Capture Value 0 Cycle Register

Source

pub const fn sm3cval1(&self) -> &Sm3cval1

0x164 - Capture Value 1 Register

Source

pub const fn sm3cval1cyc(&self) -> &Sm3cval1cyc

0x166 - Capture Value 1 Cycle Register

Source

pub const fn sm3phasedly(&self) -> &Sm3phasedly

0x178 - Phase Delay Register

Source

pub const fn sm3captfiltx(&self) -> &Sm3captfiltx

0x17e - Capture PWM_X Input Filter Register

Source

pub const fn outen(&self) -> &Outen

0x180 - Output Enable Register

Source

pub const fn mask(&self) -> &Mask

0x182 - Mask Register

Source

pub const fn swcout(&self) -> &Swcout

0x184 - Software Controlled Output Register

Source

pub const fn dtsrcsel(&self) -> &Dtsrcsel

0x186 - PWM Source Select Register

Source

pub const fn mctrl(&self) -> &Mctrl

0x188 - Master Control Register

Source

pub const fn mctrl2(&self) -> &Mctrl2

0x18a - Master Control 2 Register

Source

pub const fn fctrl0(&self) -> &Fctrl0

0x18c - Fault Control Register

Source

pub const fn fsts0(&self) -> &Fsts0

0x18e - Fault Status Register

Source

pub const fn ffilt0(&self) -> &Ffilt0

0x190 - Fault Filter Register

Source

pub const fn ftst0(&self) -> &Ftst0

0x192 - Fault Test Register

Source

pub const fn fctrl20(&self) -> &Fctrl20

0x194 - Fault Control 2 Register

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.