Struct hpm5361_pac::RDC

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

RDC

Implementations§

source§

impl RDC

source

pub const PTR: *const RegisterBlock = {0xf0320000 as *const rdc::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 rdc_ctl(&self) -> &RDC_CTL

0x00 - rdc control

source

pub fn acc_i(&self) -> &ACC_I

0x04 - accumulate result of i_channel

source

pub fn acc_q(&self) -> &ACC_Q

0x08 - accumulate result of q_channel

source

pub fn in_ctl(&self) -> &IN_CTL

0x0c - input channel selection

source

pub fn out_ctl(&self) -> &OUT_CTL

0x10 - output channel selection

source

pub fn exc_timming(&self) -> &EXC_TIMMING

0x34 - excitation signal timming setting

source

pub fn exc_scaling(&self) -> &EXC_SCALING

0x38 - amplitude scaling for excitation

source

pub fn exc_offset(&self) -> &EXC_OFFSET

0x3c - amplitude offset setting

source

pub fn pwm_scaling(&self) -> &PWM_SCALING

0x40 - amplitude scaling for excitation

source

pub fn pwm_offset(&self) -> &PWM_OFFSET

0x44 - amplitude offset setting

source

pub fn trig_out0_cfg(&self) -> &TRIG_OUT0_CFG

0x48 - Configuration for trigger out 0 in clock cycle

source

pub fn trig_out1_cfg(&self) -> &TRIG_OUT1_CFG

0x4c - Configuration for trigger out 1 in clock cycle

source

pub fn pwm_dz(&self) -> &PWM_DZ

0x50 - pwm dead zone control in clock cycle

source

pub fn sync_out_ctrl(&self) -> &SYNC_OUT_CTRL

0x54 - synchronize output signal control

source

pub fn exc_sync_dly(&self) -> &EXC_SYNC_DLY

0x58 - trigger in delay timming in soc bus cycle

source

pub fn max_i(&self) -> &MAX_I

0x70 - max value of i_channel

source

pub fn min_i(&self) -> &MIN_I

0x74 - min value of i_channel

source

pub fn max_q(&self) -> &MAX_Q

0x78 - max value of q_channel

source

pub fn min_q(&self) -> &MIN_Q

0x7c - min value of q_channel

source

pub fn thrs_i(&self) -> &THRS_I

0x80 - the offset setting for edge detection of the i_channel

source

pub fn thrs_q(&self) -> &THRS_Q

0x84 - the offset setting for edge detection of the q_channel

source

pub fn edg_det_ctl(&self) -> &EDG_DET_CTL

0x88 - the control for edge detection

source

pub fn acc_scaling(&self) -> &ACC_SCALING

0x8c - scaling for accumulation result

source

pub fn exc_period(&self) -> &EXC_PERIOD

0x90 - period of excitation

source

pub fn sync_delay_i(&self) -> &SYNC_DELAY_I

0xa0 - delay setting in clock cycle for synchronous signal

source

pub fn rise_delay_i(&self) -> &RISE_DELAY_I

0xa8 - delay in clock cycle between excitation synchrnous signal and rising edge of i_channel data

source

pub fn fall_delay_i(&self) -> &FALL_DELAY_I

0xac - delay in clock cycle between excitation synchrnous signal and falling edge of i_channel data

source

pub fn sample_rise_i(&self) -> &SAMPLE_RISE_I

0xb0 - sample value on rising edge of rectify signal

source

pub fn sample_fall_i(&self) -> &SAMPLE_FALL_I

0xb4 - sample value on falling edge of rectify signal

source

pub fn acc_cnt_i(&self) -> &ACC_CNT_I

0xb8 - number of accumulation

source

pub fn sign_cnt_i(&self) -> &SIGN_CNT_I

0xbc - sample counter of opposite sign with rectify signal

source

pub fn sync_delay_q(&self) -> &SYNC_DELAY_Q

0xc0 - delay setting in clock cycle for synchronous signal

source

pub fn rise_delay_q(&self) -> &RISE_DELAY_Q

0xc8 - delay in clock cycle between excitation synchrnous signal and rising edge of q_channel data

source

pub fn fall_delay_q(&self) -> &FALL_DELAY_Q

0xcc - delay in clock cycle between excitation synchrnous signal and falling edge of q_channel data

source

pub fn sample_rise_q(&self) -> &SAMPLE_RISE_Q

0xd0 - sample value on rising edge of rectify signal

source

pub fn sample_fall_q(&self) -> &SAMPLE_FALL_Q

0xd4 - sample value on falling edge of rectify signal

source

pub fn acc_cnt_q(&self) -> &ACC_CNT_Q

0xd8 - number of accumulation

source

pub fn sign_cnt_q(&self) -> &SIGN_CNT_Q

0xdc - sample counter of opposite sign with rectify signal

source

pub fn amp_max(&self) -> &AMP_MAX

0xe0 - the maximum of acc amplitude

source

pub fn amp_min(&self) -> &AMP_MIN

0xe4 - the minimum of acc amplitude

source

pub fn int_en(&self) -> &INT_EN

0xe8 - the interrupt mask control

source

pub fn adc_int_state(&self) -> &ADC_INT_STATE

0xec - the interrupt state

Trait Implementations§

source§

impl Debug for RDC

source§

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

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

impl Deref for RDC

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for RDC

Auto Trait Implementations§

§

impl RefUnwindSafe for RDC

§

impl !Sync for RDC

§

impl Unpin for RDC

§

impl UnwindSafe for RDC

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.