CLEON
Version 1
Cloud-Offloaded GPS Receiver
|
Initializing RTC. More...
Go to the source code of this file.
Data Structures | |
union | seoncd_time_tick_u |
union | milliseoncd_time_tick_u |
struct | rtc_time_s |
union | rtc_time_u |
struct | time_measurement_s |
Functions | |
void | HAL_RTC_Init (void) |
Initializing RTC. | |
void | HAL_RTC_ReadRTCTime (void) |
Read RTC time. | |
void | HAL_RTC_RestoreTimeTick (void) |
Restore time tick value out of RTC. | |
unsigned long long | HAL_RTC_GetSecondConvertedFromStoredRTCTime (rtc_time_u *uniTempRTCTime) |
Get total seconds converted from RTC time. | |
unsigned int | HAL_SetRTCYear (int year) |
unsigned int | HAL_SetRTCMon (int month) |
unsigned int | HAL_SetRTCDay (int day) |
unsigned int | HAL_SetRTCDow (int dow) |
unsigned int | HAL_SetRTCHour (int hour) |
unsigned int | HAL_SetRTCMin (int min) |
unsigned int | HAL_SetRTCSec (int sec) |
unsigned int | HAL_SetRTCMilisec (int millisec) |
unsigned int | HAL_GetRTCYear (void) |
unsigned int | HAL_GetRTCMon (void) |
unsigned int | HAL_GetRTCDow (void) |
unsigned int | HAL_GetRTCDay (void) |
unsigned int | HAL_GetRTCHour (void) |
unsigned int | HAL_GetRTCMin (void) |
unsigned int | HAL_GetRTCSec (void) |
unsigned int | HAL_GetRTCMilisec (void) |
Initializing RTC.
Definition in file hal_rtc.h.
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_APR (31 + 28 + 31) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_AUG (31 + 28 + 31 + 30 + 31 + 30 + 31) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_DEC (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_JUL (31 + 28 + 31 + 30 + 31 + 30) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_JUN (31 + 28 + 31 + 30 + 31) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_MAR (31 + 28) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_MAY (31 + 28 + 31 + 30) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_NOV (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_OCT (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30) |
#define DAYS_IN_MONTHS_BEFORE_THE_FIRST_DAY_OF_SEP (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31) |
#define HAL_RTC_DisableSecondInterrupt | ( | ) | RTCCTL01 &= ~RTCRDYIE |
#define HAL_RTC_EnableSecondInterrupt | ( | ) | RTCCTL01 |= RTCRDYIE |
#define HAL_RTC_Reset | ( | ) |
unsigned int HAL_GetRTCDay | ( | void | ) |
unsigned int HAL_GetRTCHour | ( | void | ) |
unsigned int HAL_GetRTCMilisec | ( | void | ) |
unsigned int HAL_GetRTCMin | ( | void | ) |
unsigned int HAL_GetRTCMon | ( | void | ) |
unsigned int HAL_GetRTCSec | ( | void | ) |
unsigned int HAL_GetRTCYear | ( | void | ) |
unsigned long long HAL_RTC_GetSecondConvertedFromStoredRTCTime | ( | rtc_time_u * | ptruniTempRTCTime | ) |
Get total seconds converted from RTC time.
ptruniTempRTCTime | - RTC time which has been kept in FLASH from last time synchronization |
Definition at line 161 of file hal_rtc.c.
void HAL_RTC_Init | ( | void | ) |
Initializing RTC.
void |
Definition at line 57 of file hal_rtc.c.
void HAL_RTC_ReadRTCTime | ( | void | ) |
void HAL_RTC_RestoreTimeTick | ( | void | ) |
Restore time tick value out of RTC.
void |
Definition at line 116 of file hal_rtc.c.
unsigned int HAL_SetRTCDay | ( | int | day | ) |
unsigned int HAL_SetRTCDow | ( | int | dow | ) |
unsigned int HAL_SetRTCHour | ( | int | hour | ) |
unsigned int HAL_SetRTCMin | ( | int | min | ) |
unsigned int HAL_SetRTCMon | ( | int | month | ) |
unsigned int HAL_SetRTCSec | ( | int | sec | ) |