Initial release

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

NRF_QDEC_Type Struct Reference

NRF_QDEC_Type Struct Reference
[Device_Peripheral_Registers]

Rotary decoder. More...

#include <nrf51.h>

Data Fields

__O uint32_t TASKS_START
__O uint32_t TASKS_STOP
__O uint32_t TASKS_READCLRACC
__IO uint32_t EVENTS_SAMPLERDY
__IO uint32_t EVENTS_REPORTRDY
__IO uint32_t EVENTS_ACCOF
__IO uint32_t SHORTS
__IO uint32_t INTENSET
__IO uint32_t INTENCLR
__IO uint32_t ENABLE
__IO uint32_t LEDPOL
__IO uint32_t SAMPLEPER
__I int32_t SAMPLE
__IO uint32_t REPORTPER
__I int32_t ACC
__I int32_t ACCREAD
__IO uint32_t PSELLED
__IO uint32_t PSELA
__IO uint32_t PSELB
__IO uint32_t DBFEN
__IO uint32_t LEDPRE
__I uint32_t ACCDBL
__I uint32_t ACCDBLREAD
__IO uint32_t POWER

Detailed Description

Rotary decoder.

(QDEC)

Definition at line 931 of file nrf51.h.


Field Documentation

__I int32_t ACC

Accumulated valid transitions register.

Definition at line 952 of file nrf51.h.

__I uint32_t ACCDBL

Accumulated double (error) transitions register.

Definition at line 961 of file nrf51.h.

__I uint32_t ACCDBLREAD

Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.

Definition at line 962 of file nrf51.h.

__I int32_t ACCREAD

Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.

Definition at line 953 of file nrf51.h.

__IO uint32_t DBFEN

Enable debouncer input filters.

Definition at line 958 of file nrf51.h.

__IO uint32_t ENABLE

Enable the QDEC.

Definition at line 947 of file nrf51.h.

__IO uint32_t EVENTS_ACCOF

ACC or ACCDBL register overflow.

Definition at line 940 of file nrf51.h.

__IO uint32_t EVENTS_REPORTRDY

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

Definition at line 938 of file nrf51.h.

__IO uint32_t EVENTS_SAMPLERDY

A new sample is written to the sample register.

Definition at line 937 of file nrf51.h.

__IO uint32_t INTENCLR

Interrupt enable clear register.

Definition at line 945 of file nrf51.h.

__IO uint32_t INTENSET

Interrupt enable set register.

Definition at line 944 of file nrf51.h.

__IO uint32_t LEDPOL

LED output pin polarity.

Definition at line 948 of file nrf51.h.

__IO uint32_t LEDPRE

Time LED is switched ON before the sample.

Definition at line 960 of file nrf51.h.

__IO uint32_t POWER

Peripheral power control.

Definition at line 965 of file nrf51.h.

__IO uint32_t PSELA

Pin select for phase A input.

Definition at line 956 of file nrf51.h.

__IO uint32_t PSELB

Pin select for phase B input.

Definition at line 957 of file nrf51.h.

__IO uint32_t PSELLED

Pin select for LED output.

Definition at line 955 of file nrf51.h.

__IO uint32_t REPORTPER

Number of samples to generate an EVENT_REPORTRDY.

Definition at line 951 of file nrf51.h.

__I int32_t SAMPLE

Motion sample value.

Definition at line 950 of file nrf51.h.

__IO uint32_t SAMPLEPER

Sample period.

Definition at line 949 of file nrf51.h.

__IO uint32_t SHORTS

Shortcuts for the QDEC.

Definition at line 942 of file nrf51.h.

__O uint32_t TASKS_READCLRACC

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

Definition at line 934 of file nrf51.h.

__O uint32_t TASKS_START

< QDEC Structure Start the quadrature decoder.

Definition at line 932 of file nrf51.h.

__O uint32_t TASKS_STOP

Stop the quadrature decoder.

Definition at line 933 of file nrf51.h.