![]() |
HT32SX Monarch Scan
Monarch Scan application for HT32SX
|
: This file provides code for the configuration of the RTC instances. More...
#include "rtc.h"Functions | |
| void | MX_RTC_Init (void) |
| void | HAL_RTC_MspInit (RTC_HandleTypeDef *rtcHandle) |
| void | HAL_RTC_MspDeInit (RTC_HandleTypeDef *rtcHandle) |
| void | Configure_RTC_Clock (void) |
| Configure RTC Clock used at RF API. More... | |
| void | setRtcInUseFlag (uint8_t rtcInUse) |
| Set a logic value corresponding to the RTC state. 1 if it's being used. More... | |
| void | setRtcIrqFlag (uint8_t rtcIrq) |
| Set RTC IRQ flag. More... | |
| void | setRtcInUseForCsFlag (uint8_t rtcInUseForCs) |
| Set RTC in use for CS flag. More... | |
| void | setNextRtcWakeUpFlag (uint32_t nextRtcWakeUp) |
| Set Next RTC wake up flag. More... | |
| void | setRtcPrescFlag (uint16_t rtcPresc) |
| Set RTC prescale flag. More... | |
| uint32_t | getNextRtcWakeUpFlag (void) |
| Get RTC next wake up flag. More... | |
| uint8_t | getRtcInUseForCsFlag (void) |
| Get RTC in use for CS flag. More... | |
| uint8_t | getRtcIrqFlag (void) |
| Get RTC IRQ flag. More... | |
| uint8_t | getRtcInUseFlag (void) |
| Get RTC in use flag. More... | |
| uint16_t | getRtcPrescFlag (void) |
| Get RTC prescale flag. More... | |
| RTC_HandleTypeDef * | getRtcHandler (void) |
| Get the currently RTC handler. More... | |
Variables | |
| RTC_HandleTypeDef | hrtc |
: This file provides code for the configuration of the RTC instances.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
| void Configure_RTC_Clock | ( | void | ) |
Configure RTC Clock used at RF API.
| [in] | none | |
| [out] | none |
| none |
| uint32_t getNextRtcWakeUpFlag | ( | void | ) |
Get RTC next wake up flag.
| [in] | none | |
| [out] | none |
| next_rtc_wakeup |
| RTC_HandleTypeDef* getRtcHandler | ( | void | ) |
Get the currently RTC handler.
| [in] | none | |
| [out] | none |
| &hrtc | RTC handler address |
| uint8_t getRtcInUseFlag | ( | void | ) |
Get RTC in use flag.
| [in] | none | |
| [out] | none |
| rtc_in_use | 1 it's being used, else 0 |
| uint8_t getRtcInUseForCsFlag | ( | void | ) |
Get RTC in use for CS flag.
| [in] | none | |
| [out] | none |
| rtc_in_use_for_cs |
| uint8_t getRtcIrqFlag | ( | void | ) |
Get RTC IRQ flag.
| [in] | none | |
| [out] | none |
| rtc_irq | 1 or 0 |
| uint16_t getRtcPrescFlag | ( | void | ) |
Get RTC prescale flag.
| [in] | none | |
| [out] | none |
| rtc_presc |
| void MX_RTC_Init | ( | void | ) |
Initialize RTC Only
Initialize RTC and set the Time and Date
Enable the WakeUp
| void setNextRtcWakeUpFlag | ( | uint32_t | nextRtcWakeUp | ) |
Set Next RTC wake up flag.
| [in] | nextRtcWakeUp | |
| [out] | none |
| none |
| void setRtcInUseFlag | ( | uint8_t | rtcInUse | ) |
Set a logic value corresponding to the RTC state. 1 if it's being used.
| [in] | rtcInUse | 1 it's being used, else 0 |
| [out] | none |
| none |
| void setRtcInUseForCsFlag | ( | uint8_t | rtcInUseForCs | ) |
Set RTC in use for CS flag.
| [in] | rtcInUseForCs | 1 it's being used, else 0 |
| [out] | none |
| none |
| void setRtcIrqFlag | ( | uint8_t | rtcIrq | ) |
Set RTC IRQ flag.
| [in] | rtcIrq | 1 or 0 |
| [out] | none |
| none |
| void setRtcPrescFlag | ( | uint16_t | rtcPresc | ) |
Set RTC prescale flag.
| [in] | rtcPresc | |
| [out] | none |
| none |