TuyaOS
tkl_init_wired.h
浏览该文件的文档.
1
10#ifndef __TKL_INIT_WIRED_H__
11#define __TKL_INIT_WIRED_H__
12
13#include "tkl_wired.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
24typedef struct {
25 OPERATE_RET (*get_status) (TKL_WIRED_STAT_E *is_up);
26 OPERATE_RET (*set_status_cb) (TKL_WIRED_STATUS_CHANGE_CB cb);
27 OPERATE_RET (*get_ip) (NW_IP_S *ip);
28 OPERATE_RET (*get_mac) (NW_MAC_S *mac);
29 OPERATE_RET (*set_mac) (CONST NW_MAC_S *mac);
31
38
39
40#ifdef __cplusplus
41} // extern "C"
42#endif
43
44#endif // __TKL_INIT_WIRED_H__
45
Definition: tuya_cloud_types.h:201
Definition: tuya_cloud_types.h:208
the description of tuya kernel adapter layer wired
Definition: tkl_init_wired.h:24
TKL_WIRED_DESC_T * tkl_wired_desc_get(VOID_T)
register wired description to tuya object manage
Common process - adapter the wired api
VOID_T(* TKL_WIRED_STATUS_CHANGE_CB)(TKL_WIRED_STAT_E status)
callback function: WIRED_STATUS_CHANGE_CB when wired connect status changed, notify tuyaos with this ...
Definition: tkl_wired.h:33
TKL_WIRED_STAT_E
Definition: tkl_wired.h:21