[][src]Struct lpc176x_5x::qei::RegisterBlock

#[repr(C)]
pub struct RegisterBlock { pub con: CON, pub stat: STAT, pub conf: CONF, pub pos: POS, pub maxpos: MAXPOS, pub cmpos0: CMPOS0, pub cmpos1: CMPOS1, pub cmpos2: CMPOS2, pub inxcnt: INXCNT, pub inxcmp0: INXCMP0, pub load: LOAD, pub time: TIME, pub vel: VEL, pub cap: CAP, pub velcomp: VELCOMP, pub filter: FILTER, pub iec: IEC, pub ies: IES, pub intstat: INTSTAT, pub ie: IE, pub clr: CLR, pub set: SET, // some fields omitted }

Register block

Fields

con: CON

0x00 - Control register

stat: STAT

0x04 - Status register

conf: CONF

0x08 - Configuration register

pos: POS

0x0c - Position register

maxpos: MAXPOS

0x10 - Maximum position register

cmpos0: CMPOS0

0x14 - Position compare register 0

cmpos1: CMPOS1

0x18 - Position compare register 1

cmpos2: CMPOS2

0x1c - Position compare register 2

inxcnt: INXCNT

0x20 - Index count register 0

inxcmp0: INXCMP0

0x24 - Index compare register 0

load: LOAD

0x28 - Velocity timer reload register

time: TIME

0x2c - Velocity timer register

vel: VEL

0x30 - Velocity counter register

cap: CAP

0x34 - Velocity capture register

velcomp: VELCOMP

0x38 - Velocity compare register

filter: FILTER

0x3c - Digital filter register

iec: IEC

0xfd8 - Interrupt enable clear register

ies: IES

0xfdc - Interrupt enable set register

intstat: INTSTAT

0xfe0 - Interrupt status register

ie: IE

0xfe4 - Interrupt enable register

clr: CLR

0xfe8 - Interrupt status clear register

set: SET

0xfec - Interrupt status set register

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]