Struct hpm5361_pac::QEO0

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

QEO0

Implementations§

source§

impl QEO0

source

pub const PTR: *const RegisterBlock = {0xf0308000 as *const qeo0::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 wave_mode(&self) -> &WAVE_MODE

0x00 - analog waves mode

source

pub fn wave_resolution(&self) -> &WAVE_RESOLUTION

0x04 - resolution of wave0/1/2

source

pub fn phase_shift_wave(&self, n: usize) -> &PHASE_SHIFT_WAVE

0x08..0x14 - no description available

source

pub fn phase_shift_wave_iter(&self) -> impl Iterator<Item = &PHASE_SHIFT_WAVE>

Iterator for array of: 0x08..0x14 - no description available

source

pub fn phase_shift_wavewave0(&self) -> &PHASE_SHIFT_WAVE

0x08 - no description available

source

pub fn phase_shift_wavewave1(&self) -> &PHASE_SHIFT_WAVE

0x0c - no description available

source

pub fn phase_shift_wavewave2(&self) -> &PHASE_SHIFT_WAVE

0x10 - no description available

source

pub fn vd_vq_inject(&self, n: usize) -> &VD_VQ_INJECT

0x14..0x20 - no description available

source

pub fn vd_vq_inject_iter(&self) -> impl Iterator<Item = &VD_VQ_INJECT>

Iterator for array of: 0x14..0x20 - no description available

source

pub fn vd_vq_injectwave0(&self) -> &VD_VQ_INJECT

0x14 - no description available

source

pub fn vd_vq_injectwave1(&self) -> &VD_VQ_INJECT

0x18 - no description available

source

pub fn vd_vq_injectwave2(&self) -> &VD_VQ_INJECT

0x1c - no description available

source

pub fn vd_vq_load(&self) -> &VD_VQ_LOAD

0x20 - load wave0/1/2 vd vq value

source

pub fn amplitude(&self, n: usize) -> &AMPLITUDE

0x24..0x30 - no description available

source

pub fn amplitude_iter(&self) -> impl Iterator<Item = &AMPLITUDE>

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

source

pub fn amplitudewave0(&self) -> &AMPLITUDE

0x24 - no description available

source

pub fn amplitudewave1(&self) -> &AMPLITUDE

0x28 - no description available

source

pub fn amplitudewave2(&self) -> &AMPLITUDE

0x2c - no description available

source

pub fn mid_point(&self, n: usize) -> &MID_POINT

0x30..0x3c - no description available

source

pub fn mid_point_iter(&self) -> impl Iterator<Item = &MID_POINT>

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

source

pub fn mid_pointwave0(&self) -> &MID_POINT

0x30 - no description available

source

pub fn mid_pointwave1(&self) -> &MID_POINT

0x34 - no description available

source

pub fn mid_pointwave2(&self) -> &MID_POINT

0x38 - no description available

source

pub fn limit(&self, n: usize) -> &LIMIT

0x3c..0x54 - no description available

source

pub fn limit_iter(&self) -> impl Iterator<Item = &LIMIT>

Iterator for array of: 0x3c..0x54 - no description available

source

pub fn limitwave0(&self) -> &LIMIT

0x3c..0x44 - no description available

source

pub fn limitwave1(&self) -> &LIMIT

0x44..0x4c - no description available

source

pub fn limitwave2(&self) -> &LIMIT

0x4c..0x54 - no description available

source

pub fn deadzone_shift(&self, n: usize) -> &DEADZONE_SHIFT

0x54..0x60 - no description available

source

pub fn deadzone_shift_iter(&self) -> impl Iterator<Item = &DEADZONE_SHIFT>

Iterator for array of: 0x54..0x60 - no description available

source

pub fn deadzone_shiftwave0(&self) -> &DEADZONE_SHIFT

0x54 - no description available

source

pub fn deadzone_shiftwave1(&self) -> &DEADZONE_SHIFT

0x58 - no description available

source

pub fn deadzone_shiftwave2(&self) -> &DEADZONE_SHIFT

0x5c - no description available

source

pub fn abz_mode(&self) -> &ABZ_MODE

0x60 - wave_a/b/z output mode

source

pub fn abz_resolution(&self) -> &ABZ_RESOLUTION

0x64 - resolution of wave_a/b/z

source

pub fn phase_shift_abz(&self, n: usize) -> &PHASE_SHIFT_ABZ

0x68..0x74 - no description available

source

pub fn phase_shift_abz_iter(&self) -> impl Iterator<Item = &PHASE_SHIFT_ABZ>

Iterator for array of: 0x68..0x74 - no description available

source

pub fn phase_shift_abza(&self) -> &PHASE_SHIFT_ABZ

0x68 - no description available

source

pub fn phase_shift_abzb(&self) -> &PHASE_SHIFT_ABZ

0x6c - no description available

source

pub fn phase_shift_abzz(&self) -> &PHASE_SHIFT_ABZ

0x70 - no description available

source

pub fn line_width(&self) -> &LINE_WIDTH

0x74 - Two-phase orthogonality wave 1/4 period

source

pub fn wdog_width(&self) -> &WDOG_WIDTH

0x78 - wdog width of qeo

source

pub fn postion_sync(&self) -> &POSTION_SYNC

0x7c - sync abz owned postion

source

pub fn mode(&self) -> &MODE

0x80 - pwm mode

source

pub fn resolution(&self) -> &RESOLUTION

0x84 - resolution of pwm

source

pub fn phase_shift(&self, n: usize) -> &PHASE_SHIFT

0x88..0x98 - no description available

source

pub fn phase_shift_iter(&self) -> impl Iterator<Item = &PHASE_SHIFT>

Iterator for array of: 0x88..0x98 - no description available

source

pub fn phase_shifta(&self) -> &PHASE_SHIFT

0x88 - no description available

source

pub fn phase_shiftb(&self) -> &PHASE_SHIFT

0x8c - no description available

source

pub fn phase_shiftc(&self) -> &PHASE_SHIFT

0x90 - no description available

source

pub fn phase_shiftd(&self) -> &PHASE_SHIFT

0x94 - no description available

source

pub fn phase_table(&self, n: usize) -> &PHASE_TABLE

0x98..0xf8 - no description available

source

pub fn phase_table_iter(&self) -> impl Iterator<Item = &PHASE_TABLE>

Iterator for array of: 0x98..0xf8 - no description available

source

pub fn phase_tableposedge0(&self) -> &PHASE_TABLE

0x98 - no description available

source

pub fn phase_tableposedge1(&self) -> &PHASE_TABLE

0x9c - no description available

source

pub fn phase_tableposedge2(&self) -> &PHASE_TABLE

0xa0 - no description available

source

pub fn phase_tableposedge3(&self) -> &PHASE_TABLE

0xa4 - no description available

source

pub fn phase_tableposedge4(&self) -> &PHASE_TABLE

0xa8 - no description available

source

pub fn phase_tableposedge5(&self) -> &PHASE_TABLE

0xac - no description available

source

pub fn phase_tableposedge6(&self) -> &PHASE_TABLE

0xb0 - no description available

source

pub fn phase_tableposedge7(&self) -> &PHASE_TABLE

0xb4 - no description available

source

pub fn phase_tableposedge8(&self) -> &PHASE_TABLE

0xb8 - no description available

source

pub fn phase_tableposedge9(&self) -> &PHASE_TABLE

0xbc - no description available

source

pub fn phase_tableposedge10(&self) -> &PHASE_TABLE

0xc0 - no description available

source

pub fn phase_tableposedge11(&self) -> &PHASE_TABLE

0xc4 - no description available

source

pub fn phase_tablenegedge0(&self) -> &PHASE_TABLE

0xc8 - no description available

source

pub fn phase_tablenegedge1(&self) -> &PHASE_TABLE

0xcc - no description available

source

pub fn phase_tablenegedge2(&self) -> &PHASE_TABLE

0xd0 - no description available

source

pub fn phase_tablenegedge3(&self) -> &PHASE_TABLE

0xd4 - no description available

source

pub fn phase_tablenegedge4(&self) -> &PHASE_TABLE

0xd8 - no description available

source

pub fn phase_tablenegedge5(&self) -> &PHASE_TABLE

0xdc - no description available

source

pub fn phase_tablenegedge6(&self) -> &PHASE_TABLE

0xe0 - no description available

source

pub fn phase_tablenegedge7(&self) -> &PHASE_TABLE

0xe4 - no description available

source

pub fn phase_tablenegedge8(&self) -> &PHASE_TABLE

0xe8 - no description available

source

pub fn phase_tablenegedge9(&self) -> &PHASE_TABLE

0xec - no description available

source

pub fn phase_tablenegedge10(&self) -> &PHASE_TABLE

0xf0 - no description available

source

pub fn phase_tablenegedge11(&self) -> &PHASE_TABLE

0xf4 - no description available

source

pub fn postion_software(&self) -> &POSTION_SOFTWARE

0xf8 - softwave inject postion

source

pub fn postion_sel(&self) -> &POSTION_SEL

0xfc - select softwave inject postion

source

pub fn status(&self) -> &STATUS

0x100 - qeo status

source

pub fn debug0(&self) -> &DEBUG0

0x104 - qeo debug 0

source

pub fn debug1(&self) -> &DEBUG1

0x108 - qeo debug 1

source

pub fn debug2(&self) -> &DEBUG2

0x10c - qeo debug 2

source

pub fn debug3(&self) -> &DEBUG3

0x110 - qeo debug 3

Trait Implementations§

source§

impl Debug for QEO0

source§

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

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

impl Deref for QEO0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for QEO0

Auto Trait Implementations§

§

impl RefUnwindSafe for QEO0

§

impl !Sync for QEO0

§

impl Unpin for QEO0

§

impl UnwindSafe for QEO0

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.