[][src]Struct nrf51::qdec::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub tasks_start: TASKS_START,
    pub tasks_stop: TASKS_STOP,
    pub tasks_readclracc: TASKS_READCLRACC,
    pub events_samplerdy: EVENTS_SAMPLERDY,
    pub events_reportrdy: EVENTS_REPORTRDY,
    pub events_accof: EVENTS_ACCOF,
    pub shorts: SHORTS,
    pub intenset: INTENSET,
    pub intenclr: INTENCLR,
    pub enable: ENABLE,
    pub ledpol: LEDPOL,
    pub sampleper: SAMPLEPER,
    pub sample: SAMPLE,
    pub reportper: REPORTPER,
    pub acc: ACC,
    pub accread: ACCREAD,
    pub pselled: PSELLED,
    pub psela: PSELA,
    pub pselb: PSELB,
    pub dbfen: DBFEN,
    pub ledpre: LEDPRE,
    pub accdbl: ACCDBL,
    pub accdblread: ACCDBLREAD,
    pub power: POWER,
    // some fields omitted
}

Register block

Fields

tasks_start: TASKS_START

0x00 - Start the quadrature decoder.

tasks_stop: TASKS_STOP

0x04 - Stop the quadrature decoder.

tasks_readclracc: TASKS_READCLRACC

0x08 - Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.

events_samplerdy: EVENTS_SAMPLERDY

0x100 - A new sample is written to the sample register.

events_reportrdy: EVENTS_REPORTRDY

0x104 - REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.

events_accof: EVENTS_ACCOF

0x108 - ACC or ACCDBL register overflow.

shorts: SHORTS

0x200 - Shortcuts for the QDEC.

intenset: INTENSET

0x304 - Interrupt enable set register.

intenclr: INTENCLR

0x308 - Interrupt enable clear register.

enable: ENABLE

0x500 - Enable the QDEC.

ledpol: LEDPOL

0x504 - LED output pin polarity.

sampleper: SAMPLEPER

0x508 - Sample period.

sample: SAMPLE

0x50c - Motion sample value.

reportper: REPORTPER

0x510 - Number of samples to generate an EVENT_REPORTRDY.

acc: ACC

0x514 - Accumulated valid transitions register.

accread: ACCREAD

0x518 - Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.

pselled: PSELLED

0x51c - Pin select for LED output.

psela: PSELA

0x520 - Pin select for phase A input.

pselb: PSELB

0x524 - Pin select for phase B input.

dbfen: DBFEN

0x528 - Enable debouncer input filters.

ledpre: LEDPRE

0x540 - Time LED is switched ON before the sample.

accdbl: ACCDBL

0x544 - Accumulated double (error) transitions register.

accdblread: ACCDBLREAD

0x548 - Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.

power: POWER

0xffc - Peripheral power control.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.