| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

Data Structures | Macros | Functions | Variables
rtc.h File Reference

NUC472/NUC442 RTC driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | S_RTC_TIME_DATA_T
| RTC define Time Data Struct. More...

## Macros
#define | RTC_TIMEOUT_ERR
#define | RTC_INIT_KEY
#define | RTC_WRITE_KEY
#define | RTC_WAIT_COUNT
#define | RTC_YEAR2000
#define | RTC_FCR_REFERENCE
#define | RTC_CLOCK_12
#define | RTC_CLOCK_24
#define | RTC_AM
#define | RTC_PM
#define | RTC_TICK_1_SEC
#define | RTC_TICK_1_2_SEC
#define | RTC_TICK_1_4_SEC
#define | RTC_TICK_1_8_SEC
#define | RTC_TICK_1_16_SEC
#define | RTC_TICK_1_32_SEC
#define | RTC_TICK_1_64_SEC
#define | RTC_TICK_1_128_SEC
#define | RTC_SUNDAY
#define | RTC_MONDAY
#define | RTC_TUESDAY
#define | RTC_WEDNESDAY
#define | RTC_THURSDAY
#define | RTC_FRIDAY
#define | RTC_SATURDAY
#define | RTC_TAMPER_0
#define | RTC_TAMPER_1
#define | RTC_READ_SPARE_REGISTER(u32RegNum)
| Read spare register. More...
#define | RTC_WRITE_SPARE_REGISTER(u32RegNum, u32RegValue)
| Write spare register. More...
#define | RTC_IS_LEAP_YEAR
| According to current time, return this year is leap year or not. More...
#define | RTC_CLEAR_ALARM_INT_FLAG
| Clear alarm interrupt status. More...
#define | RTC_CLEAR_TICK_INT_FLAG
| Clear tick interrupt status. More...
#define | RTC_CLEAR_TAMPER_FLAG(u32PinNum)
| Clear tamper detect pin status. More...
#define | RTC_GET_ALARM_INT_FLAG
| Get alarm interrupt status. More...
#define | RTC_GET_TICK_INT_FLAG
| Get alarm interrupt status. More...
#define | RTC_GET_TAMPER_FLAG(u32PinNum)
| Get tamper detect pin status. More...

## Functions
void | RTC_Open (S_RTC_TIME_DATA_T *sPt)
| This function is used to: More...
void | RTC_Close (void)
| Disable RTC clock. More...
void | RTC_32KCalibration (int32_t i32FrequencyX100)
| Set Frequency Compensation Data. More...
void | RTC_SetTickPeriod (uint32_t u32TickSelection)
| The function is used to set time tick period for periodic time tick Interrupt. More...
void | RTC_EnableInt (uint32_t u32IntFlagMask)
| The function is used to enable specified interrupt. More...
void | RTC_DisableInt (uint32_t u32IntFlagMask)
| The function is used to disable specified interrupt. More...
uint32_t | RTC_GetDayOfWeek (void)
| This function is used to get day of week. More...
void | RTC_DisableTamperDetection (uint32_t u32PinNumber)
| This function is used to disable tamper detection function. More...
void | RTC_EnableTamperDetection (uint32_t u32PinNumber, uint32_t u32PinCondition, uint32_t u32IntFlag, uint32_t u32ClearFlag, uint32_t u32DestroyEn)
| This function is used to: More...
int32_t | RTC_EnableSpareAccess (void)
| The spare registers access enable. More...
void | RTC_SetAlarmTime (uint32_t u32Hour, uint32_t u32Minute, uint32_t u32Second, uint32_t u32TimeMode, uint32_t u32AmPm)
| This function is used to set alarm date to RTC. More...
void | RTC_SetAlarmDate (uint32_t u32Year, uint32_t u32Month, uint32_t u32Day)
| This function is used to set alarm date to RTC. More...
void | RTC_SetTime (uint32_t u32Hour, uint32_t u32Minute, uint32_t u32Second, uint32_t u32TimeMode, uint32_t u32AmPm)
| This function is used to update time to RTC. More...
void | RTC_SetDate (uint32_t u32Year, uint32_t u32Month, uint32_t u32Day, uint32_t u32DayOfWeek)
| This function is used to update date to RTC. More...
void | RTC_SetAlarmDateAndTime (S_RTC_TIME_DATA_T *sPt)
| This function is used to set alarm date/time to RTC. More...
void | RTC_SetDateAndTime (S_RTC_TIME_DATA_T *sPt)
| This function is used to update date/time to RTC. More...
void | RTC_GetAlarmDateAndTime (S_RTC_TIME_DATA_T *sPt)
| Read alarm date/time from RTC setting. More...
void | RTC_GetDateAndTime (S_RTC_TIME_DATA_T *sPt)
| Read current date/time from RTC setting. More...

## Variables
int32_t | g_RTC_i32ErrCode

## Detailed Description

NUC472/NUC442 RTC driver header file.

Version
  V1.00

Revision
  18

Date
  14/10/01 2:43p

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file rtc.h.