RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub CTRL: RWRegister<u16>, pub FILT: RWRegister<u16>, pub WTR: RWRegister<u16>, pub POSD: RWRegister<u16>, pub POSDH: RORegister<u16>, pub REV: RWRegister<u16>, pub REVH: RORegister<u16>, pub UPOS: RWRegister<u16>, pub LPOS: RWRegister<u16>, pub UPOSH: RORegister<u16>, pub LPOSH: RORegister<u16>, pub UINIT: RWRegister<u16>, pub LINIT: RWRegister<u16>, pub IMR: RORegister<u16>, pub TST: RWRegister<u16>, pub CTRL2: RWRegister<u16>, pub UMOD: RWRegister<u16>, pub LMOD: RWRegister<u16>, pub UCOMP: RWRegister<u16>, pub LCOMP: RWRegister<u16>,
}
Expand description

Quadrature Decoder

Fields§

§CTRL: RWRegister<u16>

Control Register

§FILT: RWRegister<u16>

Input Filter Register

§WTR: RWRegister<u16>

Watchdog Timeout Register

§POSD: RWRegister<u16>

Position Difference Counter Register

§POSDH: RORegister<u16>

Position Difference Hold Register

§REV: RWRegister<u16>

Revolution Counter Register

§REVH: RORegister<u16>

Revolution Hold Register

§UPOS: RWRegister<u16>

Upper Position Counter Register

§LPOS: RWRegister<u16>

Lower Position Counter Register

§UPOSH: RORegister<u16>

Upper Position Hold Register

§LPOSH: RORegister<u16>

Lower Position Hold Register

§UINIT: RWRegister<u16>

Upper Initialization Register

§LINIT: RWRegister<u16>

Lower Initialization Register

§IMR: RORegister<u16>

Input Monitor Register

§TST: RWRegister<u16>

Test Register

§CTRL2: RWRegister<u16>

Control 2 Register

§UMOD: RWRegister<u16>

Upper Modulus Register

§LMOD: RWRegister<u16>

Lower Modulus Register

§UCOMP: RWRegister<u16>

Upper Position Compare Register

§LCOMP: RWRegister<u16>

Lower Position Compare Register

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.