TuyaOS
宏定义 | 函数
tal_rtc.h 文件参考

Common process - adapter the rtc api 更多...

#include "tuya_cloud_types.h"
tal_rtc.h 的引用(Include)关系图:

浏览源代码.

宏定义

#define TAL_RTC_DISABLE_CMD   1
 
#define TAL_RTC_GET_FLAG   (1 << 1)
 
#define TAL_RTC_SET_FLAG   (1 << 0)
 

函数

OPERATE_RET tal_rtc_deinit (VOID_T)
 rtc deinit 更多...
 
OPERATE_RET tal_rtc_init (VOID_T)
 rtc init 更多...
 
OPERATE_RET tal_rtc_time_control (UINT8_T cmd, VOID_T *arg)
 
OPERATE_RET tal_rtc_time_get (TIME_T *time_sec)
 rtc time get 更多...
 
OPERATE_RET tal_rtc_time_set (TIME_T time_sec)
 rtc time set 更多...
 

详细描述

Common process - adapter the rtc api

版本
1.0
日期
2021-09-10

函数说明

◆ tal_rtc_deinit()

OPERATE_RET tal_rtc_deinit ( VOID_T  )

rtc deinit

参数
[in]none
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_rtc_init()

OPERATE_RET tal_rtc_init ( VOID_T  )

rtc init

参数
[in]none
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_rtc_time_get()

OPERATE_RET tal_rtc_time_get ( TIME_T *  time_sec)

rtc time get

参数
[in]time_sec:rtctime seconds
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_rtc_time_set()

OPERATE_RET tal_rtc_time_set ( TIME_T  time_sec)

rtc time set

参数
[in]time_secrtc time seconds
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h