#[repr(C)]
pub struct RegisterBlock {
Show 35 fields pub tasks_start: TASKS_START, pub tasks_stop: TASKS_STOP, pub tasks_readclracc: TASKS_READCLRACC, pub tasks_rdclracc: TASKS_RDCLRACC, pub tasks_rdclrdbl: TASKS_RDCLRDBL, pub subscribe_start: SUBSCRIBE_START, pub subscribe_stop: SUBSCRIBE_STOP, pub subscribe_readclracc: SUBSCRIBE_READCLRACC, pub subscribe_rdclracc: SUBSCRIBE_RDCLRACC, pub subscribe_rdclrdbl: SUBSCRIBE_RDCLRDBL, pub events_samplerdy: EVENTS_SAMPLERDY, pub events_reportrdy: EVENTS_REPORTRDY, pub events_accof: EVENTS_ACCOF, pub events_dblrdy: EVENTS_DBLRDY, pub events_stopped: EVENTS_STOPPED, pub publish_samplerdy: PUBLISH_SAMPLERDY, pub publish_reportrdy: PUBLISH_REPORTRDY, pub publish_accof: PUBLISH_ACCOF, pub publish_dblrdy: PUBLISH_DBLRDY, pub publish_stopped: PUBLISH_STOPPED, 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 psel: PSEL, pub dbfen: DBFEN, pub ledpre: LEDPRE, pub accdbl: ACCDBL, pub accdblread: ACCDBLREAD, /* private fields */
}
Expand description

Register block

Fields

tasks_start: TASKS_START

0x00 - Task starting the quadrature decoder

tasks_stop: TASKS_STOP

0x04 - Task stopping the quadrature decoder

tasks_readclracc: TASKS_READCLRACC

0x08 - Read and clear ACC and ACCDBL

tasks_rdclracc: TASKS_RDCLRACC

0x0c - Read and clear ACC

tasks_rdclrdbl: TASKS_RDCLRDBL

0x10 - Read and clear ACCDBL

subscribe_start: SUBSCRIBE_START

0x80 - Subscribe configuration for task START

subscribe_stop: SUBSCRIBE_STOP

0x84 - Subscribe configuration for task STOP

subscribe_readclracc: SUBSCRIBE_READCLRACC

0x88 - Subscribe configuration for task READCLRACC

subscribe_rdclracc: SUBSCRIBE_RDCLRACC

0x8c - Subscribe configuration for task RDCLRACC

subscribe_rdclrdbl: SUBSCRIBE_RDCLRDBL

0x90 - Subscribe configuration for task RDCLRDBL

events_samplerdy: EVENTS_SAMPLERDY

0x100 - Event being generated for every new sample value written to the SAMPLE register

events_reportrdy: EVENTS_REPORTRDY

0x104 - Non-null report ready

events_accof: EVENTS_ACCOF

0x108 - ACC or ACCDBL register overflow

events_dblrdy: EVENTS_DBLRDY

0x10c - Double displacement(s) detected

events_stopped: EVENTS_STOPPED

0x110 - QDEC has been stopped

publish_samplerdy: PUBLISH_SAMPLERDY

0x180 - Publish configuration for event SAMPLERDY

publish_reportrdy: PUBLISH_REPORTRDY

0x184 - Publish configuration for event REPORTRDY

publish_accof: PUBLISH_ACCOF

0x188 - Publish configuration for event ACCOF

publish_dblrdy: PUBLISH_DBLRDY

0x18c - Publish configuration for event DBLRDY

publish_stopped: PUBLISH_STOPPED

0x190 - Publish configuration for event STOPPED

shorts: SHORTS

0x200 - Shortcuts between local events and tasks

intenset: INTENSET

0x304 - Enable interrupt

intenclr: INTENCLR

0x308 - Disable interrupt

enable: ENABLE

0x500 - Enable the quadrature decoder

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 be taken before REPORTRDY and DBLRDY events can be generated

acc: ACC

0x514 - Register accumulating the valid transitions

accread: ACCREAD

0x518 - Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task

psel: PSEL

0x51c..0x528 - Unspecified

dbfen: DBFEN

0x528 - Enable input debounce filters

ledpre: LEDPRE

0x540 - Time period the LED is switched ON prior to sampling

accdbl: ACCDBL

0x544 - Register accumulating the number of detected double transitions

accdblread: ACCDBLREAD

0x548 - Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.