Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

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 988 of file nrf51.h.


Field Documentation

__I int32_t ACC

Accumulated valid transitions register.

Definition at line 1009 of file nrf51.h.

__I uint32_t ACCDBL

Accumulated double (error) transitions register.

Definition at line 1018 of file nrf51.h.

__I uint32_t ACCDBLREAD

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

Definition at line 1019 of file nrf51.h.

__I int32_t ACCREAD

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

Definition at line 1010 of file nrf51.h.

__IO uint32_t DBFEN

Enable debouncer input filters.

Definition at line 1015 of file nrf51.h.

__IO uint32_t ENABLE

Enable the QDEC.

Definition at line 1004 of file nrf51.h.

__IO uint32_t EVENTS_ACCOF

ACC or ACCDBL register overflow.

Definition at line 997 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 995 of file nrf51.h.

__IO uint32_t EVENTS_SAMPLERDY

A new sample is written to the sample register.

Definition at line 994 of file nrf51.h.

__IO uint32_t INTENCLR

Interrupt enable clear register.

Definition at line 1002 of file nrf51.h.

__IO uint32_t INTENSET

Interrupt enable set register.

Definition at line 1001 of file nrf51.h.

__IO uint32_t LEDPOL

LED output pin polarity.

Definition at line 1005 of file nrf51.h.

__IO uint32_t LEDPRE

Time LED is switched ON before the sample.

Definition at line 1017 of file nrf51.h.

__IO uint32_t POWER

Peripheral power control.

Definition at line 1022 of file nrf51.h.

__IO uint32_t PSELA

Pin select for phase A input.

Definition at line 1013 of file nrf51.h.

__IO uint32_t PSELB

Pin select for phase B input.

Definition at line 1014 of file nrf51.h.

__IO uint32_t PSELLED

Pin select for LED output.

Definition at line 1012 of file nrf51.h.

__IO uint32_t REPORTPER

Number of samples to generate an EVENT_REPORTRDY.

Definition at line 1008 of file nrf51.h.

__I int32_t SAMPLE

Motion sample value.

Definition at line 1007 of file nrf51.h.

__IO uint32_t SAMPLEPER

Sample period.

Definition at line 1006 of file nrf51.h.

__IO uint32_t SHORTS

Shortcuts for the QDEC.

Definition at line 999 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 991 of file nrf51.h.

__O uint32_t TASKS_START

< QDEC Structure Start the quadrature decoder.

Definition at line 989 of file nrf51.h.

__O uint32_t TASKS_STOP

Stop the quadrature decoder.

Definition at line 990 of file nrf51.h.