Module nrf51_hal::pac::qdec

source ·
Expand description

Rotary decoder.

Modules§

  • Accumulated valid transitions register.
  • Accumulated double (error) transitions register.
  • Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
  • Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
  • Enable debouncer input filters.
  • Enable the QDEC.
  • ACC or ACCDBL register overflow.
  • REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
  • A new sample is written to the sample register.
  • Interrupt enable clear register.
  • Interrupt enable set register.
  • LED output pin polarity.
  • Time LED is switched ON before the sample.
  • Peripheral power control.
  • Pin select for phase A input.
  • Pin select for phase B input.
  • Pin select for LED output.
  • Number of samples to generate an EVENT_REPORTRDY.
  • Motion sample value.
  • Sample period.
  • Shortcuts for the QDEC.
  • Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
  • Start the quadrature decoder.
  • Stop the quadrature decoder.

Structs§

Type Aliases§

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