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

#[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

0x00 - Start the quadrature decoder.

0x04 - Stop the quadrature decoder.

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

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

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

0x108 - ACC or ACCDBL register overflow.

0x200 - Shortcuts for the QDEC.

0x304 - Interrupt enable set register.

0x308 - Interrupt enable clear register.

0x500 - Enable the QDEC.

0x504 - LED output pin polarity.

0x508 - Sample period.

0x50c - Motion sample value.

0x510 - Number of samples to generate an EVENT_REPORTRDY.

0x514 - Accumulated valid transitions register.

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

0x51c - Pin select for LED output.

0x520 - Pin select for phase A input.

0x524 - Pin select for phase B input.

0x528 - Enable debouncer input filters.

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

0x544 - Accumulated double (error) transitions register.

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

0xffc - Peripheral power control.

Trait Implementations

Auto Trait Implementations

impl Send for RegisterBlock

impl !Sync for RegisterBlock