HT32SX Monarch Scan
Monarch Scan application for HT32SX
rtc.h
Go to the documentation of this file.
1
19
/* Define to prevent recursive inclusion -------------------------------------*/
20
#ifndef __rtc_H
21
#define __rtc_H
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/* Includes ------------------------------------------------------------------*/
27
#include "
main.h
"
28
29
/* USER CODE BEGIN Includes */
30
31
/* USER CODE END Includes */
32
33
extern
RTC_HandleTypeDef hrtc;
34
35
/* USER CODE BEGIN Private defines */
36
37
/* USER CODE END Private defines */
38
39
void
MX_RTC_Init
(
void
);
40
41
/* USER CODE BEGIN Prototypes */
42
43
/*!******************************************************************
44
* \fn RTC_HandleTypeDef * getRtcHandler(void)
45
* \brief Get the currently RTC handler.
46
*
47
* \param[in] none
48
* \param[out] none
49
*
50
* \retval &hrtc RTC handler address
51
*******************************************************************/
52
extern
RTC_HandleTypeDef *
getRtcHandler
(
void
);
53
54
/*!******************************************************************
55
* \fn void Configure_RTC_Clock(void)
56
* \brief Configure RTC Clock used at RF API.
57
*
58
* \param[in] none
59
* \param[out] none
60
*
61
* \retval none
62
*******************************************************************/
63
extern
void
Configure_RTC_Clock
(
void
);
64
65
/*!******************************************************************
66
* \fn void setRtcInUseFlag(uint8_t rtcInUse)
67
* \brief Set a logic value corresponding to the RTC state. 1 if it's being used.
68
*
69
* \param[in] rtcInUse 1 it's being used, else 0
70
* \param[out] none
71
*
72
* \retval none
73
*******************************************************************/
74
extern
void
setRtcInUseFlag
(uint8_t rtcInUse);
75
76
/*!******************************************************************
77
* \fn void setRtcIrqFlag(uint8_t rtcIrq)
78
* \brief Set RTC IRQ flag.
79
*
80
* \param[in] rtcIrq 1 or 0
81
* \param[out] none
82
*
83
* \retval none
84
*******************************************************************/
85
extern
void
setRtcIrqFlag
(uint8_t rtcIrq);
86
87
/*!******************************************************************
88
* \fn void setRtcInUseForCsFlag(uint8_t rtcInUseForCs)
89
* \brief Set RTC in use for CS flag.
90
*
91
* \param[in] rtcInUseForCs 1 it's being used, else 0
92
* \param[out] none
93
*
94
* \retval none
95
*******************************************************************/
96
extern
void
setRtcInUseForCsFlag
(uint8_t rtcInUseForCs);
97
98
/*!******************************************************************
99
* \fn void setNextRtcWakeUpFlag(uint32_t nextRtcWakeUp)
100
* \brief Set Next RTC wake up flag.
101
*
102
* \param[in] nextRtcWakeUp
103
* \param[out] none
104
*
105
* \retval none
106
*******************************************************************/
107
extern
void
setNextRtcWakeUpFlag
(uint32_t nextRtcWakeUp);
108
109
/*!******************************************************************
110
* \fn void setRtcPrescFlag(uint16_t rtcPresc)
111
* \brief Set RTC prescale flag.
112
*
113
* \param[in] rtcPresc
114
* \param[out] none
115
*
116
* \retval none
117
*******************************************************************/
118
extern
void
setRtcPrescFlag
(uint16_t rtcPresc);
119
120
/*!******************************************************************
121
* \fn uint32_t getNextRtcWakeUpFlag(void)
122
* \brief Get RTC next wake up flag.
123
*
124
* \param[in] none
125
* \param[out] none
126
*
127
* \retval next_rtc_wakeup
128
*******************************************************************/
129
extern
uint32_t
getNextRtcWakeUpFlag
(
void
);
130
131
/*!******************************************************************
132
* \fn uint8_t getRtcInUseForCsFlag(void)
133
* \brief Get RTC in use for CS flag.
134
*
135
* \param[in] none
136
* \param[out] none
137
*
138
* \retval rtc_in_use_for_cs
139
*******************************************************************/
140
extern
uint8_t
getRtcInUseForCsFlag
(
void
);
141
142
/*!******************************************************************
143
* \fn uint8_t getRtcIrqFlag(void)
144
* \brief Get RTC IRQ flag.
145
*
146
* \param[in] none
147
* \param[out] none
148
*
149
* \retval rtc_irq 1 or 0
150
*******************************************************************/
151
extern
uint8_t
getRtcIrqFlag
(
void
);
152
153
/*!******************************************************************
154
* \fn uint8_t getRtcInUseFlag(void)
155
* \brief Get RTC in use flag.
156
*
157
* \param[in] none
158
* \param[out] none
159
*
160
* \retval rtc_in_use 1 it's being used, else 0
161
*******************************************************************/
162
extern
uint8_t
getRtcInUseFlag
(
void
);
163
164
/*!******************************************************************
165
* \fn uint16_t getRtcPrescFlag(void)
166
* \brief Get RTC prescale flag.
167
*
168
* \param[in] none
169
* \param[out] none
170
*
171
* \retval rtc_presc
172
*******************************************************************/
173
extern
uint16_t
getRtcPrescFlag
(
void
);
174
175
/* USER CODE END Prototypes */
176
177
#ifdef __cplusplus
178
}
179
#endif
180
#endif
/*__ rtc_H */
181
190
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Configure_RTC_Clock
void Configure_RTC_Clock(void)
Configure RTC Clock used at RF API.
Definition:
rtc.c:130
getNextRtcWakeUpFlag
uint32_t getNextRtcWakeUpFlag(void)
Get RTC next wake up flag.
Definition:
rtc.c:179
getRtcHandler
RTC_HandleTypeDef * getRtcHandler(void)
Get the currently RTC handler.
Definition:
rtc.c:199
getRtcIrqFlag
uint8_t getRtcIrqFlag(void)
Get RTC IRQ flag.
Definition:
rtc.c:187
getRtcPrescFlag
uint16_t getRtcPrescFlag(void)
Get RTC prescale flag.
Definition:
rtc.c:195
setRtcInUseFlag
void setRtcInUseFlag(uint8_t rtcInUse)
Set a logic value corresponding to the RTC state. 1 if it's being used.
Definition:
rtc.c:158
setRtcInUseForCsFlag
void setRtcInUseForCsFlag(uint8_t rtcInUseForCs)
Set RTC in use for CS flag.
Definition:
rtc.c:166
MX_RTC_Init
void MX_RTC_Init(void)
Definition:
rtc.c:36
setRtcIrqFlag
void setRtcIrqFlag(uint8_t rtcIrq)
Set RTC IRQ flag.
Definition:
rtc.c:162
setNextRtcWakeUpFlag
void setNextRtcWakeUpFlag(uint32_t nextRtcWakeUp)
Set Next RTC wake up flag.
Definition:
rtc.c:170
getRtcInUseForCsFlag
uint8_t getRtcInUseForCsFlag(void)
Get RTC in use for CS flag.
Definition:
rtc.c:183
main.h
: Header for main.c file. This file contains the common defines of the application.
getRtcInUseFlag
uint8_t getRtcInUseFlag(void)
Get RTC in use flag.
Definition:
rtc.c:191
setRtcPrescFlag
void setRtcPrescFlag(uint16_t rtcPresc)
Set RTC prescale flag.
Definition:
rtc.c:174
Inc
rtc.h
Generated by
1.8.16