Struct hpm5361_pac::MMC0

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

MMC0

Implementations§

source§

impl MMC0

source

pub const PTR: *const RegisterBlock = {0xf0310000 as *const mmc0::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 sta(&self) -> &STA

0x04 - Status Register

source

pub fn int_en(&self) -> &INT_EN

0x08 - Interrupt Enable Register

source

pub fn sysclk_freq(&self) -> &SYSCLK_FREQ

0x0c - System Clock Frequency Register

source

pub fn sysclk_period(&self) -> &SYSCLK_PERIOD

0x10 - System Clock Period Register

source

pub fn oosync_theta_thr(&self) -> &OOSYNC_THETA_THR

0x14 - Position Out-Of-Sync Threshold Regster

source

pub fn discrete_cfg0(&self) -> &DISCRETE_CFG0

0x18 - Discrete Mode Configuration 0 Register

source

pub fn discrete_cfg1(&self) -> &DISCRETE_CFG1

0x1c - Discrete Mode Configuration 1 Register

source

pub fn cont_cfg0(&self) -> &CONT_CFG0

0x20 - Continuous Mode Configuration 0 Register

source

pub fn ini_pos_time(&self) -> &INI_POS_TIME

0x24 - The destined timestamp register for position initialization

source

pub fn ini_pos(&self) -> &INI_POS

0x28 - The destined position register for position initialization

source

pub fn ini_rev(&self) -> &INI_REV

0x2c - The destined revolution register for position initialization

source

pub fn ini_speed(&self) -> &INI_SPEED

0x30 - The destined speed register for position initialization

source

pub fn ini_accel(&self) -> &INI_ACCEL

0x34 - The destined accelerator register for position initialization

source

pub fn ini_coef_time(&self) -> &INI_COEF_TIME

0x38 - The destined timestamp register for coefficients initialization

source

pub fn ini_pcoef(&self) -> &INI_PCOEF

0x3c - The destined coefficient P register for coefficients initialization

source

pub fn ini_icoef(&self) -> &INI_ICOEF

0x40 - The destined coefficient I register for coefficients initialization

source

pub fn ini_acoef(&self) -> &INI_ACOEF

0x44 - The destined coefficient A register for coefficients initialization

source

pub fn estm_tim(&self) -> &ESTM_TIM

0x48 - The timestamp register for internal estimation

source

pub fn estm_pos(&self) -> &ESTM_POS

0x4c - The position register for the internal estimation

source

pub fn estm_rev(&self) -> &ESTM_REV

0x50 - The revolution register for the internal estimation

source

pub fn estm_speed(&self) -> &ESTM_SPEED

0x54 - The speed register for the internal estimation

source

pub fn estm_accel(&self) -> &ESTM_ACCEL

0x58 - The accelerator register for theinternal estimation

source

pub fn cur_pcoef(&self) -> &CUR_PCOEF

0x5c - The coefficient P register for the internal estimation

source

pub fn cur_icoef(&self) -> &CUR_ICOEF

0x60 - The coefficient I register for the internal estimation

source

pub fn cur_acoef(&self) -> &CUR_ACOEF

0x64 - The coefficient A register for the internal estimation

source

pub fn ini_delta_pos_time(&self) -> &INI_DELTA_POS_TIME

0x68 - The destined timestamp register for delta position initialization

source

pub fn ini_delta_pos(&self) -> &INI_DELTA_POS

0x6c - The destined delta position register for delta position initialization

source

pub fn ini_delta_rev(&self) -> &INI_DELTA_REV

0x70 - The destined delta revolution register for delta position initialization

source

pub fn ini_delta_speed(&self) -> &INI_DELTA_SPEED

0x74 - The destined delta speed register for delta position initialization

source

pub fn ini_delta_accel(&self) -> &INI_DELTA_ACCEL

0x78 - The destined delta accelerator register for delta position initialization

source

pub fn pos_trg_cfg(&self) -> &POS_TRG_CFG

0x80 - Tracking Configuration pos trigger cfg

source

pub fn pos_trg_pos_thr(&self) -> &POS_TRG_POS_THR

0x84 - Tracking Configuration position threshold

source

pub fn pos_trg_rev_thr(&self) -> &POS_TRG_REV_THR

0x88 - Tracking Configuration revolution threshold

source

pub fn speed_trg_cfg(&self) -> &SPEED_TRG_CFG

0x8c - Tracking Configuration speed trigger cfg

source

pub fn speed_trg_thr(&self) -> &SPEED_TRG_THR

0x90 - Tracking Configuration speed threshold

source

pub fn coef_trg_cfg(&self, n: usize) -> &COEF_TRG_CFG

0xa0..0xdc - no description available

source

pub fn coef_trg_cfg_iter(&self) -> impl Iterator<Item = &COEF_TRG_CFG>

Iterator for array of: 0xa0..0xdc - no description available

source

pub fn br(&self, n: usize) -> &BR

0x100..0x300 - no description available

source

pub fn br_iter(&self) -> impl Iterator<Item = &BR>

Iterator for array of: 0x100..0x300 - no description available

source

pub fn bk0_timestamp(&self) -> &BK0_TIMESTAMP

0x300 - Monitor of the just received input timestamp for tracing logic

source

pub fn bk0_position(&self) -> &BK0_POSITION

0x304 - Monitor of the just received input position for tracing logic

source

pub fn bk0_revolution(&self) -> &BK0_REVOLUTION

0x308 - Monitor of the just received input revolution for tracing logic

source

pub fn bk0_speed(&self) -> &BK0_SPEED

0x30c - Monitor of the just received input speed for tracing logic

source

pub fn bk0_accelerator(&self) -> &BK0_ACCELERATOR

0x310 - Monitor of the just received input acceleration for tracing logic

source

pub fn bk1_timestamp(&self) -> &BK1_TIMESTAMP

0x320 - Monitor of the previous received input timestamp for tracing logic

source

pub fn bk1_position(&self) -> &BK1_POSITION

0x324 - Monitor of the previous received input position for tracing logic

source

pub fn bk1_revolution(&self) -> &BK1_REVOLUTION

0x328 - Monitor of the previous received input revolution for tracing logic

source

pub fn bk1_speed(&self) -> &BK1_SPEED

0x32c - Monitor of the previous received input speed for tracing logic

source

pub fn bk1_accelerator(&self) -> &BK1_ACCELERATOR

0x330 - Monitor of the previous received input acceleration for tracing logic

Trait Implementations§

source§

impl Debug for MMC0

source§

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

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

impl Deref for MMC0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for MMC0

Auto Trait Implementations§

§

impl RefUnwindSafe for MMC0

§

impl !Sync for MMC0

§

impl Unpin for MMC0

§

impl UnwindSafe for MMC0

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.