Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn ctrl(&self) -> &Ctrl

0x00 - Control Register

Source

pub const fn ctrl2(&self) -> &Ctrl2

0x02 - Control 2 Register

Source

pub const fn filt(&self) -> &Filt

0x04 - Input Filter Register

Source

pub const fn lastedge(&self) -> &Lastedge

0x06 - Last Edge Time Register

Source

pub const fn posdper(&self) -> &Posdper

0x08 - Position Difference Period Counter Register

Source

pub const fn posdperbfr(&self) -> &Posdperbfr

0x0a - Position Difference Period Buffer Register

Source

pub const fn upos(&self) -> &Upos

0x0c - Upper Position Counter Register

Source

pub const fn lpos(&self) -> &Lpos

0x0e - Lower Position Counter Register

Source

pub const fn posd(&self) -> &Posd

0x10 - Position Difference Counter Register

Source

pub const fn posdh(&self) -> &Posdh

0x12 - Position Difference Hold Register

Source

pub const fn uposh(&self) -> &Uposh

0x14 - Upper Position Hold Register

Source

pub const fn lposh(&self) -> &Lposh

0x16 - Lower Position Hold Register

Source

pub const fn lastedgeh(&self) -> &Lastedgeh

0x18 - Last Edge Time Hold Register

Source

pub const fn posdperh(&self) -> &Posdperh

0x1a - Position Difference Period Hold Register

Source

pub const fn revh(&self) -> &Revh

0x1c - Revolution Hold Register

Source

pub const fn rev(&self) -> &Rev

0x1e - Revolution Counter Register

Source

pub const fn uinit(&self) -> &Uinit

0x20 - Upper Initialization Register

Source

pub const fn linit(&self) -> &Linit

0x22 - Lower Initialization Register

Source

pub const fn umod(&self) -> &Umod

0x24 - Upper Modulus Register

Source

pub const fn lmod(&self) -> &Lmod

0x26 - Lower Modulus Register

Source

pub const fn ucomp0(&self) -> &Ucomp0

0x28 - Upper Position Compare Register 0

Source

pub const fn lcomp0(&self) -> &Lcomp0

0x2a - Lower Position Compare Register 0

Source

pub const fn uposh1(&self) -> &Uposh1

0x2c - Upper Position Holder Register 1

Source

pub const fn ucomp1(&self) -> &Ucomp1

0x2c - Upper Position Compare 1

Source

pub const fn lposh1(&self) -> &Lposh1

0x2e - Lower Position Holder Register 1

Source

pub const fn lcomp1(&self) -> &Lcomp1

0x2e - Lower Position Compare 1

Source

pub const fn uposh2(&self) -> &Uposh2

0x30 - Upper Position Holder Register 3

Source

pub const fn ucomp2(&self) -> &Ucomp2

0x30 - Upper Position Compare 2

Source

pub const fn lposh2(&self) -> &Lposh2

0x32 - Lower Position Holder Register 2

Source

pub const fn lcomp2(&self) -> &Lcomp2

0x32 - Lower Position Compare 2

Source

pub const fn uposh3(&self) -> &Uposh3

0x34 - Upper Position Holder Register 3

Source

pub const fn ucomp3(&self) -> &Ucomp3

0x34 - Upper Position Compare 3

Source

pub const fn lposh3(&self) -> &Lposh3

0x36 - Lower Position Holder Register 3

Source

pub const fn lcomp3(&self) -> &Lcomp3

0x36 - Lower Position Compare 3

Source

pub const fn intctrl(&self) -> &Intctrl

0x38 - Interrupt Control Register

Source

pub const fn wtr(&self) -> &Wtr

0x3a - Watchdog Timeout Register

Source

pub const fn imr(&self) -> &Imr

0x3c - Input Monitor Register

Source

pub const fn tst(&self) -> &Tst

0x3e - Test Register

Source

pub const fn uverid(&self) -> &Uverid

0x50 - Upper VERID

Source

pub const fn lverid(&self) -> &Lverid

0x52 - Lower VERID

Auto Trait Implementations§

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>,

Source§

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>,

Source§

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.