2.94 Real-Time Clock and Calendar(RTCC)

The RTCC peripheral is useful in applications which requires clock and calendar features.

Using The Library

RTCC Peripheral library provides API's that can be used to perform below functionalities on the RTCC peripheral.

  • Initialize the RTCC

  • Read and write the time and date registers.

  • Set alarm time and date.

  • Enable/Disable the RTCC interrupt.

  • Register a callback.

Library Interface

RTCC peripheral library provides the following interfaces:

Functions

NameDescription
RTCC_InitializeInitialize the RTCC peripheral
RTCC_TimeSetSets time and date in the RTCC peripheral
RTCC_TimeGetGets time and date from the RTCC peripheral
RTCC_AlarmSetSets the alarm time and date in the RTCC peripheral
RTCC_CallbackRegisterRegisters the function to be called from interrupt
RTCC_InterruptEnableEnables RTCC peripheral interrupt
RTCC_InterruptDisableDisables RTCC peripheral interrupt

Data types and constants

NameTypeDescription
RTC_ALARM_MASKEnumPossible options for recurrence of RTCC alarm
RTC_INT_MASKEnumMask for enabling and disabling the RTCC interrupt
RTC_CALLBACKTypedefDefines the data type and function signature of the Real Time Clock Calendar callback function
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.