Module nrf51_hal::pac::rtc0

source ·
Expand description

Real time counter 0.

Modules§

  • Capture/compare registers.
  • Current COUNTER value.
  • Compare event on CC[n] match.
  • Event on COUNTER overflow.
  • Event on COUNTER increment.
  • Configures event enable routing to PPI for each RTC event.
  • Disable events routing to PPI. The reading of this register gives the value of EVTEN.
  • Enable events routing to PPI. The reading of this register gives the value of EVTEN.
  • Interrupt enable clear register.
  • Interrupt enable set register.
  • Peripheral power control.
  • 12-bit prescaler for COUNTER frequency (32768/(PRESCALER+1)). Must be written when RTC is STOPed.
  • Clear RTC Counter.
  • Start RTC Counter.
  • Stop RTC Counter.
  • Set COUNTER to 0xFFFFFFF0.

Structs§

Type Aliases§

  • CC (rw) register accessor: an alias for Reg<CC_SPEC>
  • COUNTER (r) register accessor: an alias for Reg<COUNTER_SPEC>
  • EVENTS_COMPARE (rw) register accessor: an alias for Reg<EVENTS_COMPARE_SPEC>
  • EVENTS_OVRFLW (rw) register accessor: an alias for Reg<EVENTS_OVRFLW_SPEC>
  • EVENTS_TICK (rw) register accessor: an alias for Reg<EVENTS_TICK_SPEC>
  • EVTEN (rw) register accessor: an alias for Reg<EVTEN_SPEC>
  • EVTENCLR (rw) register accessor: an alias for Reg<EVTENCLR_SPEC>
  • EVTENSET (rw) register accessor: an alias for Reg<EVTENSET_SPEC>
  • INTENCLR (rw) register accessor: an alias for Reg<INTENCLR_SPEC>
  • INTENSET (rw) register accessor: an alias for Reg<INTENSET_SPEC>
  • POWER (rw) register accessor: an alias for Reg<POWER_SPEC>
  • PRESCALER (rw) register accessor: an alias for Reg<PRESCALER_SPEC>
  • TASKS_CLEAR (w) register accessor: an alias for Reg<TASKS_CLEAR_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>
  • TASKS_TRIGOVRFLW (w) register accessor: an alias for Reg<TASKS_TRIGOVRFLW_SPEC>