| M480 BSP V3.05.001 The Board Support Package for M480 Series

Data Structures | Macros | Functions
rtc.h File Reference

M480 series RTC driver header file. More...

Go to the source code of this file.

## Data Structures
struct | S_RTC_TIME_DATA_T

## Macros
#define | RTC_INIT_KEY
#define | RTC_WRITE_KEY
#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_WAIT_COUNT
#define | RTC_YEAR2000
#define | RTC_FCR_REFERENCE
#define | RTC_TAMPER0_SELECT
#define | RTC_TAMPER1_SELECT
#define | RTC_TAMPER2_SELECT
#define | RTC_TAMPER3_SELECT
#define | RTC_TAMPER4_SELECT
#define | RTC_TAMPER5_SELECT
#define | MAX_TAMPER_PIN_NUM
#define | RTC_TAMPER_HIGH_LEVEL_DETECT
#define | RTC_TAMPER_LOW_LEVEL_DETECT
#define | RTC_TAMPER_DEBOUNCE_ENABLE
#define | RTC_TAMPER_DEBOUNCE_DISABLE
#define | RTC_PAIR0_SELECT
#define | RTC_PAIR1_SELECT
#define | RTC_PAIR2_SELECT
#define | MAX_PAIR_NUM
#define | RTC_2POW10_CLK
#define | RTC_2POW11_CLK
#define | RTC_2POW12_CLK
#define | RTC_2POW13_CLK
#define | RTC_2POW14_CLK
#define | RTC_2POW15_CLK
#define | RTC_2POW16_CLK
#define | RTC_2POW17_CLK
#define | REF_RANDOM_PATTERN
#define | REF_PREVIOUS_PATTERN
#define | REF_SEED
#define | RTC_IS_LEAP_YEAR()
| Indicate is Leap Year or not. More...
#define | RTC_CLEAR_ALARM_INT_FLAG()
| Clear RTC Alarm Interrupt Flag. More...
#define | RTC_CLEAR_TICK_INT_FLAG()
| Clear RTC Tick Interrupt Flag. More...
#define | RTC_CLEAR_TAMPER_INT_FLAG(u32TamperFlag)
| Clear RTC Tamper Interrupt Flag. More...
#define | RTC_GET_ALARM_INT_FLAG()
| Get RTC Alarm Interrupt Flag. More...
#define | RTC_GET_TICK_INT_FLAG()
| Get RTC Time Tick Interrupt Flag. More...
#define | RTC_GET_TAMPER_INT_FLAG()
| Get RTC Tamper Interrupt Flag. More...
#define | RTC_GET_TAMPER_INT_STATUS()
| Get RTC TAMPER Interrupt Status. More...
#define | RTC_READ_SPARE_REGISTER(u32RegNum)
| Read Spare Register. More...
#define | RTC_WRITE_SPARE_REGISTER(u32RegNum, u32RegValue)
| Write Spare Register. More...

## Functions
__STATIC_INLINE void | RTC_WaitAccessEnable (void)
| Wait RTC Access Enable. More...
void | RTC_Open (S_RTC_TIME_DATA_T *sPt)
| Initialize RTC module and start counting. More...
void | RTC_Close (void)
| Disable RTC Clock. More...
void | RTC_32KCalibration (int32_t i32FrequencyX10000)
| Set Frequency Compensation Data. More...
void | RTC_GetDateAndTime (S_RTC_TIME_DATA_T *sPt)
| Get Current RTC Date and Time. More...
void | RTC_GetAlarmDateAndTime (S_RTC_TIME_DATA_T *sPt)
| Get RTC Alarm Date and Time. More...
void | RTC_SetDateAndTime (S_RTC_TIME_DATA_T *sPt)
| Update Current RTC Date and Time. More...
void | RTC_SetAlarmDateAndTime (S_RTC_TIME_DATA_T *sPt)
| Update RTC Alarm Date and Time. More...
void | RTC_SetDate (uint32_t u32Year, uint32_t u32Month, uint32_t u32Day, uint32_t u32DayOfWeek)
| Update RTC Current Date. More...
void | RTC_SetTime (uint32_t u32Hour, uint32_t u32Minute, uint32_t u32Second, uint32_t u32TimeMode, uint32_t u32AmPm)
| Update RTC Current Time. More...
void | RTC_SetAlarmDate (uint32_t u32Year, uint32_t u32Month, uint32_t u32Day)
| Update RTC Alarm Date. More...
void | RTC_SetAlarmTime (uint32_t u32Hour, uint32_t u32Minute, uint32_t u32Second, uint32_t u32TimeMode, uint32_t u32AmPm)
| Update RTC Alarm Time. More...
void | RTC_SetAlarmDateMask (uint8_t u8IsTenYMsk, uint8_t u8IsYMsk, uint8_t u8IsTenMMsk, uint8_t u8IsMMsk, uint8_t u8IsTenDMsk, uint8_t u8IsDMsk)
| Set RTC Alarm Date Mask Function. More...
void | RTC_SetAlarmTimeMask (uint8_t u8IsTenHMsk, uint8_t u8IsHMsk, uint8_t u8IsTenMMsk, uint8_t u8IsMMsk, uint8_t u8IsTenSMsk, uint8_t u8IsSMsk)
| Set RTC Alarm Time Mask Function. More...
uint32_t | RTC_GetDayOfWeek (void)
| Get Day of the Week. More...
void | RTC_SetTickPeriod (uint32_t u32TickSelection)
| Set RTC Tick Period Time. More...
void | RTC_EnableInt (uint32_t u32IntFlagMask)
| Enable RTC Interrupt. More...
void | RTC_DisableInt (uint32_t u32IntFlagMask)
| Disable RTC Interrupt. More...
void | RTC_EnableSpareAccess (void)
| Enable Spare Registers Access. More...
void | RTC_DisableSpareRegister (void)
| Disable Spare Register. More...
void | RTC_StaticTamperEnable (uint32_t u32TamperSelect, uint32_t u32DetecLevel, uint32_t u32DebounceEn)
| Static Tamper Detect. More...
void | RTC_StaticTamperDisable (uint32_t u32TamperSelect)
| Static Tamper Disable. More...
void | RTC_DynamicTamperEnable (uint32_t u32PairSel, uint32_t u32DebounceEn, uint32_t u32Pair1Source, uint32_t u32Pair2Source)
| Dynamic Tamper Detect. More...
void | RTC_DynamicTamperDisable (uint32_t u32PairSel)
| Dynamic Tamper Disable. More...
void | RTC_DynamicTamperConfig (uint32_t u32ChangeRate, uint32_t u32SeedReload, uint32_t u32RefPattern, uint32_t u32Seed)
| Config dynamic tamper. More...

## Detailed Description

M480 series RTC driver header file.

Version
  V3.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file rtc.h.