Lancaster University fork of the Nordic nrf51-SDK repository, which actually lives on github: https://github.com/lancaster-university/nrf51-sdk

Dependents:   nRF51822

Embed: (wiki syntax)

« Back to documentation index

NRF_RTC_Type Struct Reference

NRF_RTC_Type Struct Reference
[Device_Peripheral_Registers]

Real time counter 0. More...

#include <nrf51.h>

Data Fields

__O uint32_t TASKS_START
__O uint32_t TASKS_STOP
__O uint32_t TASKS_CLEAR
__O uint32_t TASKS_TRIGOVRFLW
__IO uint32_t EVENTS_TICK
__IO uint32_t EVENTS_OVRFLW
__IO uint32_t EVENTS_COMPARE [4]
__IO uint32_t INTENSET
__IO uint32_t INTENCLR
__IO uint32_t EVTEN
__IO uint32_t EVTENSET
__IO uint32_t EVTENCLR
__I uint32_t COUNTER
__IO uint32_t PRESCALER
__IO uint32_t CC [4]
__IO uint32_t POWER

Detailed Description

Real time counter 0.

(RTC)

Definition at line 707 of file nrf51.h.


Field Documentation

__IO uint32_t CC[4]

Capture/compare registers.

Definition at line 731 of file nrf51.h.

__I uint32_t COUNTER

Current COUNTER value.

Definition at line 727 of file nrf51.h.

__IO uint32_t EVENTS_COMPARE[4]

Compare event on CC[n] match.

Definition at line 716 of file nrf51.h.

__IO uint32_t EVENTS_OVRFLW

Event on COUNTER overflow.

Definition at line 714 of file nrf51.h.

__IO uint32_t EVENTS_TICK

Event on COUNTER increment.

Definition at line 713 of file nrf51.h.

__IO uint32_t EVTEN

Configures event enable routing to PPI for each RTC event.

Definition at line 721 of file nrf51.h.

__IO uint32_t EVTENCLR

Disable events routing to PPI. The reading of this register gives the value of EVTEN.

Definition at line 724 of file nrf51.h.

__IO uint32_t EVTENSET

Enable events routing to PPI. The reading of this register gives the value of EVTEN.

Definition at line 722 of file nrf51.h.

__IO uint32_t INTENCLR

Interrupt enable clear register.

Definition at line 719 of file nrf51.h.

__IO uint32_t INTENSET

Interrupt enable set register.

Definition at line 718 of file nrf51.h.

__IO uint32_t POWER

Peripheral power control.

Definition at line 733 of file nrf51.h.

__IO uint32_t PRESCALER

12-bit prescaler for COUNTER frequency (32768/(PRESCALER+1)). Must be written when RTC is STOPed.

Definition at line 728 of file nrf51.h.

__O uint32_t TASKS_CLEAR

Clear RTC Counter.

Definition at line 710 of file nrf51.h.

__O uint32_t TASKS_START

< RTC Structure Start RTC Counter.

Definition at line 708 of file nrf51.h.

__O uint32_t TASKS_STOP

Stop RTC Counter.

Definition at line 709 of file nrf51.h.

__O uint32_t TASKS_TRIGOVRFLW

Set COUNTER to 0xFFFFFFF0.

Definition at line 711 of file nrf51.h.