Skip to main content

Module qdec

Module qdec 

Source
Expand description

Rotary decoder.

Modules§

acc
Accumulated valid transitions register.
accdbl
Accumulated double (error) transitions register.
accdblread
Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
accread
Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
dbfen
Enable debouncer input filters.
enable
Enable the QDEC.
events_accof
ACC or ACCDBL register overflow.
events_reportrdy
REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
events_samplerdy
A new sample is written to the sample register.
intenclr
Interrupt enable clear register.
intenset
Interrupt enable set register.
ledpol
LED output pin polarity.
ledpre
Time LED is switched ON before the sample.
power
Peripheral power control.
psela
Pin select for phase A input.
pselb
Pin select for phase B input.
pselled
Pin select for LED output.
reportper
Number of samples to generate an EVENT_REPORTRDY.
sample
Motion sample value.
sampleper
Sample period.
shorts
Shortcuts for the QDEC.
tasks_readclracc
Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
tasks_start
Start the quadrature decoder.
tasks_stop
Stop the quadrature decoder.

Structs§

RegisterBlock
Register block

Type Aliases§

ACC
ACC (r) register accessor: an alias for Reg<ACC_SPEC>
ACCDBL
ACCDBL (r) register accessor: an alias for Reg<ACCDBL_SPEC>
ACCDBLREAD
ACCDBLREAD (r) register accessor: an alias for Reg<ACCDBLREAD_SPEC>
ACCREAD
ACCREAD (r) register accessor: an alias for Reg<ACCREAD_SPEC>
DBFEN
DBFEN (rw) register accessor: an alias for Reg<DBFEN_SPEC>
ENABLE
ENABLE (rw) register accessor: an alias for Reg<ENABLE_SPEC>
EVENTS_ACCOF
EVENTS_ACCOF (rw) register accessor: an alias for Reg<EVENTS_ACCOF_SPEC>
EVENTS_REPORTRDY
EVENTS_REPORTRDY (rw) register accessor: an alias for Reg<EVENTS_REPORTRDY_SPEC>
EVENTS_SAMPLERDY
EVENTS_SAMPLERDY (rw) register accessor: an alias for Reg<EVENTS_SAMPLERDY_SPEC>
INTENCLR
INTENCLR (rw) register accessor: an alias for Reg<INTENCLR_SPEC>
INTENSET
INTENSET (rw) register accessor: an alias for Reg<INTENSET_SPEC>
LEDPOL
LEDPOL (rw) register accessor: an alias for Reg<LEDPOL_SPEC>
LEDPRE
LEDPRE (rw) register accessor: an alias for Reg<LEDPRE_SPEC>
POWER
POWER (rw) register accessor: an alias for Reg<POWER_SPEC>
PSELA
PSELA (rw) register accessor: an alias for Reg<PSELA_SPEC>
PSELB
PSELB (rw) register accessor: an alias for Reg<PSELB_SPEC>
PSELLED
PSELLED (rw) register accessor: an alias for Reg<PSELLED_SPEC>
REPORTPER
REPORTPER (rw) register accessor: an alias for Reg<REPORTPER_SPEC>
SAMPLE
SAMPLE (r) register accessor: an alias for Reg<SAMPLE_SPEC>
SAMPLEPER
SAMPLEPER (rw) register accessor: an alias for Reg<SAMPLEPER_SPEC>
SHORTS
SHORTS (rw) register accessor: an alias for Reg<SHORTS_SPEC>
TASKS_READCLRACC
TASKS_READCLRACC (w) register accessor: an alias for Reg<TASKS_READCLRACC_SPEC>
TASKS_START
TASKS_START (w) register accessor: an alias for Reg<TASKS_START_SPEC>
TASKS_STOP
TASKS_STOP (w) register accessor: an alias for Reg<TASKS_STOP_SPEC>