Struct hpm5361_pac::QEI0

source ·
pub struct QEI0 { /* private fields */ }
Expand description

QEI0

Implementations§

source§

impl QEI0

source

pub const PTR: *const RegisterBlock = {0xf0300000 as *const qei0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn cr(&self) -> &CR

0x00 - Control register

source

pub fn phcfg(&self) -> &PHCFG

0x04 - Phase configure register

source

pub fn wdgcfg(&self) -> &WDGCFG

0x08 - Watchdog configure register

source

pub fn phidx(&self) -> &PHIDX

0x0c - Phase index register

source

pub fn trgoen(&self) -> &TRGOEN

0x10 - Tigger output enable register

source

pub fn readen(&self) -> &READEN

0x14 - Read event enable register

source

pub fn zcmp(&self) -> &ZCMP

0x18 - Z comparator

source

pub fn phcmp(&self) -> &PHCMP

0x1c - Phase comparator

source

pub fn spdcmp(&self) -> &SPDCMP

0x20 - Speed comparator

source

pub fn dmaen(&self) -> &DMAEN

0x24 - DMA request enable register

source

pub fn sr(&self) -> &SR

0x28 - Status register

source

pub fn irqen(&self) -> &IRQEN

0x2c - Interrupt request register

source

pub fn count(&self, n: usize) -> &COUNT

0x30..0x70 - no description available

source

pub fn count_iter(&self) -> impl Iterator<Item = &COUNT>

Iterator for array of: 0x30..0x70 - no description available

source

pub fn countcurrent(&self) -> &COUNT

0x30..0x40 - no description available

source

pub fn countread(&self) -> &COUNT

0x40..0x50 - no description available

source

pub fn countsnap0(&self) -> &COUNT

0x50..0x60 - no description available

source

pub fn countsnap1(&self) -> &COUNT

0x60..0x70 - no description available

source

pub fn zcmp2(&self) -> &ZCMP2

0x80 - Z comparator

source

pub fn phcmp2(&self) -> &PHCMP2

0x84 - Phase comparator

source

pub fn spdcmp2(&self) -> &SPDCMP2

0x88 - Speed comparator

source

pub fn match_cfg(&self) -> &MATCH_CFG

0x8c - No description avaiable

source

pub fn filt_cfg(&self, n: usize) -> &FILT_CFG

0x90..0xa8 - no description available

source

pub fn filt_cfg_iter(&self) -> impl Iterator<Item = &FILT_CFG>

Iterator for array of: 0x90..0xa8 - no description available

source

pub fn filt_cfgfilt_cfg_a(&self) -> &FILT_CFG

0x90 - no description available

source

pub fn filt_cfgfilt_cfg_b(&self) -> &FILT_CFG

0x94 - no description available

source

pub fn filt_cfgfilt_cfg_z(&self) -> &FILT_CFG

0x98 - no description available

source

pub fn filt_cfgfilt_cfg_h(&self) -> &FILT_CFG

0x9c - no description available

source

pub fn filt_cfgfilt_cfg_h2(&self) -> &FILT_CFG

0xa0 - no description available

source

pub fn filt_cfgfilt_cfg_f(&self) -> &FILT_CFG

0xa4 - no description available

source

pub fn qei_cfg(&self) -> &QEI_CFG

0x100 - qei config register

source

pub fn pulse0_num(&self) -> &PULSE0_NUM

0x110 - pulse0_num

source

pub fn pulse1_num(&self) -> &PULSE1_NUM

0x114 - pulse1_num

source

pub fn cycle0_cnt(&self) -> &CYCLE0_CNT

0x118 - cycle0_cnt

source

pub fn cycle0pulse_cnt(&self) -> &CYCLE0PULSE_CNT

0x11c - cycle0pulse_cnt

source

pub fn cycle1_cnt(&self) -> &CYCLE1_CNT

0x120 - cycle1_cnt

source

pub fn cycle1pulse_cnt(&self) -> &CYCLE1PULSE_CNT

0x124 - cycle1pulse_cnt

source

pub fn cycle0_snap0(&self) -> &CYCLE0_SNAP0

0x128 - cycle0_snap0

source

pub fn cycle0_snap1(&self) -> &CYCLE0_SNAP1

0x12c - cycle0_snap1

source

pub fn cycle1_snap0(&self) -> &CYCLE1_SNAP0

0x130 - cycle1_snap0

source

pub fn cycle1_snap1(&self) -> &CYCLE1_SNAP1

0x134 - cycle1_snap1

source

pub fn cycle0_num(&self) -> &CYCLE0_NUM

0x140 - cycle0_num

source

pub fn cycle1_num(&self) -> &CYCLE1_NUM

0x144 - cycle1_num

source

pub fn pulse0_cnt(&self) -> &PULSE0_CNT

0x148 - pulse0_cnt

source

pub fn pulse0cycle_cnt(&self) -> &PULSE0CYCLE_CNT

0x14c - pulse0cycle_cnt

source

pub fn pulse1_cnt(&self) -> &PULSE1_CNT

0x150 - pulse1_cnt

source

pub fn pulse1cycle_cnt(&self) -> &PULSE1CYCLE_CNT

0x154 - pulse1cycle_cnt

source

pub fn pulse0_snap0(&self) -> &PULSE0_SNAP0

0x158 - pulse0_snap0

source

pub fn pulse0cycle_snap0(&self) -> &PULSE0CYCLE_SNAP0

0x15c - pulse0cycle_snap0

source

pub fn pulse0_snap1(&self) -> &PULSE0_SNAP1

0x160 - pulse0_snap1

source

pub fn pulse0cycle_snap1(&self) -> &PULSE0CYCLE_SNAP1

0x164 - pulse0cycle_snap1

source

pub fn pulse1_snap0(&self) -> &PULSE1_SNAP0

0x168 - pulse1_snap0

source

pub fn pulse1cycle_snap0(&self) -> &PULSE1CYCLE_SNAP0

0x16c - pulse1cycle_snap0

source

pub fn pulse1_snap1(&self) -> &PULSE1_SNAP1

0x170 - pulse1_snap1

source

pub fn pulse1cycle_snap1(&self) -> &PULSE1CYCLE_SNAP1

0x174 - pulse1cycle_snap1

source

pub fn adcx_cfg0(&self) -> &ADCX_CFG0

0x200 - adcx_cfg0

source

pub fn adcx_cfg1(&self) -> &ADCX_CFG1

0x204 - adcx_cfg1

source

pub fn adcx_cfg2(&self) -> &ADCX_CFG2

0x208 - adcx_cfg2

source

pub fn adcy_cfg0(&self) -> &ADCY_CFG0

0x210 - adcy_cfg0

source

pub fn adcy_cfg1(&self) -> &ADCY_CFG1

0x214 - adcy_cfg1

source

pub fn adcy_cfg2(&self) -> &ADCY_CFG2

0x218 - adcy_cfg2

source

pub fn cal_cfg(&self) -> &CAL_CFG

0x220 - cal_cfg

source

pub fn phase_param(&self) -> &PHASE_PARAM

0x230 - phase_param

source

pub fn angle_adj(&self) -> &ANGLE_ADJ

0x234 - angle_adj

source

pub fn pos_threshold(&self) -> &POS_THRESHOLD

0x238 - pos_threshold

source

pub fn uvw_pos(&self, n: usize) -> &UVW_POS

0x240..0x258 - no description available

source

pub fn uvw_pos_iter(&self) -> impl Iterator<Item = &UVW_POS>

Iterator for array of: 0x240..0x258 - no description available

source

pub fn uvw_posuvw_pos0(&self) -> &UVW_POS

0x240 - no description available

source

pub fn uvw_posuvw_pos1(&self) -> &UVW_POS

0x244 - no description available

source

pub fn uvw_posuvw_pos2(&self) -> &UVW_POS

0x248 - no description available

source

pub fn uvw_posuvw_pos3(&self) -> &UVW_POS

0x24c - no description available

source

pub fn uvw_posuvw_pos4(&self) -> &UVW_POS

0x250 - no description available

source

pub fn uvw_posuvw_pos5(&self) -> &UVW_POS

0x254 - no description available

source

pub fn uvw_pos_cfg(&self, n: usize) -> &UVW_POS_CFG

0x258..0x270 - no description available

source

pub fn uvw_pos_cfg_iter(&self) -> impl Iterator<Item = &UVW_POS_CFG>

Iterator for array of: 0x258..0x270 - no description available

source

pub fn uvw_pos_cfguvw_pos0_cfg(&self) -> &UVW_POS_CFG

0x258 - no description available

source

pub fn uvw_pos_cfguvw_pos1_cfg(&self) -> &UVW_POS_CFG

0x25c - no description available

source

pub fn uvw_pos_cfguvw_pos2_cfg(&self) -> &UVW_POS_CFG

0x260 - no description available

source

pub fn uvw_pos_cfguvw_pos3_cfg(&self) -> &UVW_POS_CFG

0x264 - no description available

source

pub fn uvw_pos_cfguvw_pos4_cfg(&self) -> &UVW_POS_CFG

0x268 - no description available

source

pub fn uvw_pos_cfguvw_pos5_cfg(&self) -> &UVW_POS_CFG

0x26c - no description available

source

pub fn phase_cnt(&self) -> &PHASE_CNT

0x280 - phase_cnt

source

pub fn phase_update(&self) -> &PHASE_UPDATE

0x284 - phase_update

source

pub fn position(&self) -> &POSITION

0x288 - position

source

pub fn position_update(&self) -> &POSITION_UPDATE

0x28c - position_update

source

pub fn angle(&self) -> &ANGLE

0x290 - No description avaiable

source

pub fn pos_timeout(&self) -> &POS_TIMEOUT

0x294 - pos_timeout

Trait Implementations§

source§

impl Debug for QEI0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for QEI0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for QEI0

Auto Trait Implementations§

§

impl RefUnwindSafe for QEI0

§

impl !Sync for QEI0

§

impl Unpin for QEI0

§

impl UnwindSafe for QEI0

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.