Struct hpm5361_pac::MMC1
source · pub struct MMC1 { /* private fields */ }
Expand description
MMC1
Implementations§
source§impl MMC1
impl MMC1
sourcepub const PTR: *const RegisterBlock = {0xf0314000 as *const mmc0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xf0314000 as *const mmc0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn sysclk_freq(&self) -> &SYSCLK_FREQ
pub fn sysclk_freq(&self) -> &SYSCLK_FREQ
0x0c - System Clock Frequency Register
sourcepub fn sysclk_period(&self) -> &SYSCLK_PERIOD
pub fn sysclk_period(&self) -> &SYSCLK_PERIOD
0x10 - System Clock Period Register
sourcepub fn oosync_theta_thr(&self) -> &OOSYNC_THETA_THR
pub fn oosync_theta_thr(&self) -> &OOSYNC_THETA_THR
0x14 - Position Out-Of-Sync Threshold Regster
sourcepub fn discrete_cfg0(&self) -> &DISCRETE_CFG0
pub fn discrete_cfg0(&self) -> &DISCRETE_CFG0
0x18 - Discrete Mode Configuration 0 Register
sourcepub fn discrete_cfg1(&self) -> &DISCRETE_CFG1
pub fn discrete_cfg1(&self) -> &DISCRETE_CFG1
0x1c - Discrete Mode Configuration 1 Register
sourcepub fn ini_pos_time(&self) -> &INI_POS_TIME
pub fn ini_pos_time(&self) -> &INI_POS_TIME
0x24 - The destined timestamp register for position initialization
sourcepub fn ini_pos(&self) -> &INI_POS
pub fn ini_pos(&self) -> &INI_POS
0x28 - The destined position register for position initialization
sourcepub fn ini_rev(&self) -> &INI_REV
pub fn ini_rev(&self) -> &INI_REV
0x2c - The destined revolution register for position initialization
sourcepub fn ini_speed(&self) -> &INI_SPEED
pub fn ini_speed(&self) -> &INI_SPEED
0x30 - The destined speed register for position initialization
sourcepub fn ini_accel(&self) -> &INI_ACCEL
pub fn ini_accel(&self) -> &INI_ACCEL
0x34 - The destined accelerator register for position initialization
sourcepub fn ini_coef_time(&self) -> &INI_COEF_TIME
pub fn ini_coef_time(&self) -> &INI_COEF_TIME
0x38 - The destined timestamp register for coefficients initialization
sourcepub fn ini_pcoef(&self) -> &INI_PCOEF
pub fn ini_pcoef(&self) -> &INI_PCOEF
0x3c - The destined coefficient P register for coefficients initialization
sourcepub fn ini_icoef(&self) -> &INI_ICOEF
pub fn ini_icoef(&self) -> &INI_ICOEF
0x40 - The destined coefficient I register for coefficients initialization
sourcepub fn ini_acoef(&self) -> &INI_ACOEF
pub fn ini_acoef(&self) -> &INI_ACOEF
0x44 - The destined coefficient A register for coefficients initialization
sourcepub fn estm_speed(&self) -> &ESTM_SPEED
pub fn estm_speed(&self) -> &ESTM_SPEED
0x54 - The speed register for the internal estimation
sourcepub fn estm_accel(&self) -> &ESTM_ACCEL
pub fn estm_accel(&self) -> &ESTM_ACCEL
0x58 - The accelerator register for theinternal estimation
sourcepub fn cur_pcoef(&self) -> &CUR_PCOEF
pub fn cur_pcoef(&self) -> &CUR_PCOEF
0x5c - The coefficient P register for the internal estimation
sourcepub fn cur_icoef(&self) -> &CUR_ICOEF
pub fn cur_icoef(&self) -> &CUR_ICOEF
0x60 - The coefficient I register for the internal estimation
sourcepub fn cur_acoef(&self) -> &CUR_ACOEF
pub fn cur_acoef(&self) -> &CUR_ACOEF
0x64 - The coefficient A register for the internal estimation
sourcepub fn ini_delta_pos_time(&self) -> &INI_DELTA_POS_TIME
pub fn ini_delta_pos_time(&self) -> &INI_DELTA_POS_TIME
0x68 - The destined timestamp register for delta position initialization
sourcepub fn ini_delta_pos(&self) -> &INI_DELTA_POS
pub fn ini_delta_pos(&self) -> &INI_DELTA_POS
0x6c - The destined delta position register for delta position initialization
sourcepub fn ini_delta_rev(&self) -> &INI_DELTA_REV
pub fn ini_delta_rev(&self) -> &INI_DELTA_REV
0x70 - The destined delta revolution register for delta position initialization
sourcepub fn ini_delta_speed(&self) -> &INI_DELTA_SPEED
pub fn ini_delta_speed(&self) -> &INI_DELTA_SPEED
0x74 - The destined delta speed register for delta position initialization
sourcepub fn ini_delta_accel(&self) -> &INI_DELTA_ACCEL
pub fn ini_delta_accel(&self) -> &INI_DELTA_ACCEL
0x78 - The destined delta accelerator register for delta position initialization
sourcepub fn pos_trg_cfg(&self) -> &POS_TRG_CFG
pub fn pos_trg_cfg(&self) -> &POS_TRG_CFG
0x80 - Tracking Configuration pos trigger cfg
sourcepub fn pos_trg_pos_thr(&self) -> &POS_TRG_POS_THR
pub fn pos_trg_pos_thr(&self) -> &POS_TRG_POS_THR
0x84 - Tracking Configuration position threshold
sourcepub fn pos_trg_rev_thr(&self) -> &POS_TRG_REV_THR
pub fn pos_trg_rev_thr(&self) -> &POS_TRG_REV_THR
0x88 - Tracking Configuration revolution threshold
sourcepub fn speed_trg_cfg(&self) -> &SPEED_TRG_CFG
pub fn speed_trg_cfg(&self) -> &SPEED_TRG_CFG
0x8c - Tracking Configuration speed trigger cfg
sourcepub fn speed_trg_thr(&self) -> &SPEED_TRG_THR
pub fn speed_trg_thr(&self) -> &SPEED_TRG_THR
0x90 - Tracking Configuration speed threshold
sourcepub fn coef_trg_cfg(&self, n: usize) -> &COEF_TRG_CFG
pub fn coef_trg_cfg(&self, n: usize) -> &COEF_TRG_CFG
0xa0..0xdc - no description available
sourcepub fn coef_trg_cfg_iter(&self) -> impl Iterator<Item = &COEF_TRG_CFG>
pub fn coef_trg_cfg_iter(&self) -> impl Iterator<Item = &COEF_TRG_CFG>
Iterator for array of: 0xa0..0xdc - no description available
sourcepub fn br_iter(&self) -> impl Iterator<Item = &BR>
pub fn br_iter(&self) -> impl Iterator<Item = &BR>
Iterator for array of: 0x100..0x300 - no description available
sourcepub fn bk0_timestamp(&self) -> &BK0_TIMESTAMP
pub fn bk0_timestamp(&self) -> &BK0_TIMESTAMP
0x300 - Monitor of the just received input timestamp for tracing logic
sourcepub fn bk0_position(&self) -> &BK0_POSITION
pub fn bk0_position(&self) -> &BK0_POSITION
0x304 - Monitor of the just received input position for tracing logic
sourcepub fn bk0_revolution(&self) -> &BK0_REVOLUTION
pub fn bk0_revolution(&self) -> &BK0_REVOLUTION
0x308 - Monitor of the just received input revolution for tracing logic
sourcepub fn bk0_speed(&self) -> &BK0_SPEED
pub fn bk0_speed(&self) -> &BK0_SPEED
0x30c - Monitor of the just received input speed for tracing logic
sourcepub fn bk0_accelerator(&self) -> &BK0_ACCELERATOR
pub fn bk0_accelerator(&self) -> &BK0_ACCELERATOR
0x310 - Monitor of the just received input acceleration for tracing logic
sourcepub fn bk1_timestamp(&self) -> &BK1_TIMESTAMP
pub fn bk1_timestamp(&self) -> &BK1_TIMESTAMP
0x320 - Monitor of the previous received input timestamp for tracing logic
sourcepub fn bk1_position(&self) -> &BK1_POSITION
pub fn bk1_position(&self) -> &BK1_POSITION
0x324 - Monitor of the previous received input position for tracing logic
sourcepub fn bk1_revolution(&self) -> &BK1_REVOLUTION
pub fn bk1_revolution(&self) -> &BK1_REVOLUTION
0x328 - Monitor of the previous received input revolution for tracing logic
sourcepub fn bk1_speed(&self) -> &BK1_SPEED
pub fn bk1_speed(&self) -> &BK1_SPEED
0x32c - Monitor of the previous received input speed for tracing logic
sourcepub fn bk1_accelerator(&self) -> &BK1_ACCELERATOR
pub fn bk1_accelerator(&self) -> &BK1_ACCELERATOR
0x330 - Monitor of the previous received input acceleration for tracing logic