TuyaOS
tal_rtc.h
浏览该文件的文档.
1
11#ifndef __TAL_RTC_H__
12#define __TAL_RTC_H__
13
14#include "tuya_cloud_types.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20
28OPERATE_RET tal_rtc_init(VOID_T);
29
35OPERATE_RET tal_rtc_deinit(VOID_T);
36
44OPERATE_RET tal_rtc_time_set(TIME_T time_sec);
45
53OPERATE_RET tal_rtc_time_get(TIME_T *time_sec);
54
55
56#define TAL_RTC_DISABLE_CMD 1
57#define TAL_RTC_SET_FLAG (1 << 0)
58#define TAL_RTC_GET_FLAG (1 << 1)
59
60OPERATE_RET tal_rtc_time_control(UINT8_T cmd, VOID_T *arg);
61
62
63#ifdef __cplusplus
64} // extern "C"
65#endif
66
67#endif // __TAL_RTC_H__
68
OPERATE_RET tal_rtc_time_get(TIME_T *time_sec)
rtc time get
OPERATE_RET tal_rtc_init(VOID_T)
rtc init
OPERATE_RET tal_rtc_time_set(TIME_T time_sec)
rtc time set
OPERATE_RET tal_rtc_deinit(VOID_T)
rtc deinit