Module qdec

Source
Expand description

Quadrature Decoder

Re-exports§

pub use psel::PSEL;

Modules§

acc
Register accumulating the valid transitions
accdbl
Register accumulating the number of detected double transitions
accdblread
Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task
accread
Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task
dbfen
Enable input debounce filters
enable
Enable the quadrature decoder
events_accof
ACC or ACCDBL register overflow
events_dblrdy
Double displacement(s) detected
events_reportrdy
Non-null report ready
events_samplerdy
Event being generated for every new sample value written to the SAMPLE register
events_stopped
QDEC has been stopped
intenclr
Disable interrupt
intenset
Enable interrupt
ledpol
LED output pin polarity
ledpre
Time period the LED is switched ON prior to sampling
psel
Cluster Unspecified
reportper
Number of samples to be taken before REPORTRDY and DBLRDY events can be generated
sample
Motion sample value
sampleper
Sample period
shorts
Shortcut register
tasks_rdclracc
Read and clear ACC
tasks_rdclrdbl
Read and clear ACCDBL
tasks_readclracc
Read and clear ACC and ACCDBL
tasks_start
Task starting the quadrature decoder
tasks_stop
Task stopping 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_DBLRDY
EVENTS_DBLRDY (rw) register accessor: an alias for Reg<EVENTS_DBLRDY_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>
EVENTS_STOPPED
EVENTS_STOPPED (rw) register accessor: an alias for Reg<EVENTS_STOPPED_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>
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_RDCLRACC
TASKS_RDCLRACC (w) register accessor: an alias for Reg<TASKS_RDCLRACC_SPEC>
TASKS_RDCLRDBL
TASKS_RDCLRDBL (w) register accessor: an alias for Reg<TASKS_RDCLRDBL_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>