NANO102/112 BSP V3.03.003
The Board Support Package for Nano102/112 Series
Functions
rtc.c File Reference

Nano 102/112 series RTC driver source file. More...

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

Go to the source code of this file.

Functions

void RTC_32KCalibration (int32_t i32FrequencyX10000)
 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...
 
void RTC_EnableTamperDetection (uint32_t u32PinCondition)
 This function is used to:
. More...
 
void RTC_DisableTamperDetection (void)
 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

Nano 102/112 series RTC driver source file.

Version
V1.00
Revision
19
Date
15/06/17 1:52p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013~2014 Nuvoton Technology Corp. All rights reserved.

Definition in file rtc.c.