NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
Functions
rtc.c File Reference

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

#include <stdio.h>
#include "NUC472_442.h"
Include dependency graph for rtc.c:

Go to the source code of this file.

Functions

void RTC_32KCalibration (int32_t i32FrequencyX100)
 Set Frequency Compensation Data. More...
 
void RTC_Open (S_RTC_TIME_DATA_T *sPt)
 This function is used to: More...
 
void RTC_GetDateAndTime (S_RTC_TIME_DATA_T *sPt)
 Read current date/time from RTC setting. More...
 
void RTC_GetAlarmDateAndTime (S_RTC_TIME_DATA_T *sPt)
 Read alarm date/time from RTC setting. More...
 
void RTC_SetDateAndTime (S_RTC_TIME_DATA_T *sPt)
 This function is used to update date/time 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_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_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_SetAlarmDate (uint32_t u32Year, uint32_t u32Month, uint32_t u32Day)
 This function is used to set alarm date to RTC. 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...
 
int32_t RTC_EnableSpareAccess (void)
 The spare registers access enable. 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...
 
void RTC_DisableTamperDetection (uint32_t u32PinNumber)
 This function is used to disable tamper detection function. More...
 
uint32_t RTC_GetDayOfWeek (void)
 This function is used to get day of week. 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...
 
void RTC_Close (void)
 Disable RTC clock. More...
 

Detailed Description

NUC472/NUC442 RTC driver source file.

Version
V1.00
Revision
18
Date
15/11/26 10:43a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file rtc.c.