R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information
Fork of
nrf51-sdk
by Lancaster University
« Back to documentation index
NRF_QDEC_Type Struct Reference
Rotary decoder.
More...
#include <nrf51.h >
Detailed Description
Rotary decoder.
(QDEC)
Definition at line 931 of file nrf51.h .
Field Documentation
Accumulated valid transitions register.
Definition at line 952 of file nrf51.h .
Accumulated double (error) transitions register.
Definition at line 961 of file nrf51.h .
Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
Definition at line 962 of file nrf51.h .
Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
Definition at line 953 of file nrf51.h .
Enable debouncer input filters.
Definition at line 958 of file nrf51.h .
Enable the QDEC.
Definition at line 947 of file nrf51.h .
ACC or ACCDBL register overflow.
Definition at line 940 of file nrf51.h .
REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
Definition at line 938 of file nrf51.h .
A new sample is written to the sample register.
Definition at line 937 of file nrf51.h .
Interrupt enable clear register.
Definition at line 945 of file nrf51.h .
Interrupt enable set register.
Definition at line 944 of file nrf51.h .
LED output pin polarity.
Definition at line 948 of file nrf51.h .
Time LED is switched ON before the sample.
Definition at line 960 of file nrf51.h .
Peripheral power control.
Definition at line 965 of file nrf51.h .
Pin select for phase A input.
Definition at line 956 of file nrf51.h .
Pin select for phase B input.
Definition at line 957 of file nrf51.h .
Pin select for LED output.
Definition at line 955 of file nrf51.h .
Number of samples to generate an EVENT_REPORTRDY.
Definition at line 951 of file nrf51.h .
Motion sample value.
Definition at line 950 of file nrf51.h .
Sample period.
Definition at line 949 of file nrf51.h .
Shortcuts for the QDEC.
Definition at line 942 of file nrf51.h .
Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
Definition at line 934 of file nrf51.h .
< QDEC Structure Start the quadrature decoder.
Definition at line 932 of file nrf51.h .
Stop the quadrature decoder.
Definition at line 933 of file nrf51.h .