-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTC_ex.h
executable file
·41 lines (32 loc) · 1 KB
/
RTC_ex.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*!\file RTC_ex.h
** \author SMFSW
** \copyright MIT (c) 2017-2024, SMFSW
** \brief Basic RTC handling
**/
/****************************************************************/
#ifndef __RTC_EX_H
#define __RTC_EX_H
#ifdef __cplusplus
extern "C" {
#endif
#include "sarmfsw.h"
#include "time_utils.h"
#if defined(HAL_RTC_MODULE_ENABLED)
/****************************************************************/
/*!\brief Sends new time to RTC peripheral
** \param[in] time_new - pointer to DateTime instance
** \return FctERR - error code
**/
FctERR NONNULL__ RTC_SetTime(const DateTime * const time_new);
/*!\brief Get time from RTC peripheral
** \param[in,out] time_now - pointer to DateTime instance
** \return FctERR - error code
**/
FctERR NONNULL__ RTC_GetTime(DateTime * const time_now);
/****************************************************************/
#ifdef __cplusplus
}
#endif
#endif /* defined(HAL_RTC_MODULE_ENABLED) */
#endif /* __RTC_EX_H */
/****************************************************************/