Module microbit::qdec

Expand description

Rotary decoder.

Modules

Accumulated valid transitions register.
Accumulated double (error) transitions register.
Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
Enable debouncer input filters.
Enable the QDEC.
ACC or ACCDBL register overflow.
REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
A new sample is written to the sample register.
Interrupt enable clear register.
Interrupt enable set register.
LED output pin polarity.
Time LED is switched ON before the sample.
Peripheral power control.
Pin select for phase A input.
Pin select for phase B input.
Pin select for LED output.
Number of samples to generate an EVENT_REPORTRDY.
Motion sample value.
Sample period.
Shortcuts for the QDEC.
Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
Start the quadrature decoder.
Stop the quadrature decoder.

Structs

Accumulated valid transitions register.
Accumulated double (error) transitions register.
Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
Enable debouncer input filters.
Enable the QDEC.
ACC or ACCDBL register overflow.
REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
A new sample is written to the sample register.
Interrupt enable clear register.
Interrupt enable set register.
LED output pin polarity.
Time LED is switched ON before the sample.
Peripheral power control.
Pin select for phase A input.
Pin select for phase B input.
Pin select for LED output.
Number of samples to generate an EVENT_REPORTRDY.
Register block
Motion sample value.
Sample period.
Shortcuts for the QDEC.
Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
Start the quadrature decoder.
Stop the quadrature decoder.