TuyaOS
tuya_os_adapter.h
浏览该文件的文档.
1
10#ifndef _TUYA_OS_ADAPTER_H
11#define _TUYA_OS_ADAPTER_H
12
13#include <stddef.h>
14#include <stdint.h>
15#include <stdbool.h>
16#include <string.h>
17#include "tuya_cloud_types.h"
18#include "tuya_hal_mutex.h"
19#include "tuya_hal_semaphore.h"
20#include "tuya_hal_system.h"
21#include "tkl_init.h"
22#include "tuya_cloud_error_code.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#if defined(WIFI_GW) && (WIFI_GW==1)
29
30#include "tal_wifi.h"
31#include "ty_wifi_mgnt.h"
32#include "wf_basic_intf.h"
33
34#define WWM_LOWPOWER WWM_POWERDOWN
35typedef FAST_WF_CONNECTED_AP_INFO_T FAST_WF_CONNECTED_AP_INFO_V2_S;
36
37#define OPRT_SVC_WIFI_RECV_CONTINUE (-0x0b00) //-2816, 继续接收配网包
38#define OPRT_SVC_WIFI_DONOT_FOUND_MODULE (-0x0b01) //-2817, 模块未找到
39#define OPRT_SVC_WIFI_PEGASUS_DECODE_FAILED (-0x0b02) //-2818, 闪电包解析错误
40#define OPRT_SVC_WIFI_NEED_FACTORY_RESET (-0x0b03) //-2819, wifi初始化配置校验失败,需要恢复出厂设置
41
42#endif
43
44#define TY_MAC_ADDR_LEN MAC_ADDR_LEN
45
46#define OPRT_DEVICE_IS_SUB_NODE_OR_IN_ELECTION (-2016)
47
57#define tuya_os_adapter_get_platform_ver() tkl_get_version()
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* _TUYA_OS_ADAPTER_H */
Common process
Common process - Initialization
Common process - Initialization
Common process - Initialization
wifi interface
basic wifi interface