TuyaOS
tkl_wired.h
浏览该文件的文档.
1
11#ifndef __TKL_WIRED_H__
12#define __TKL_WIRED_H__
13
14#include "tuya_cloud_types.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/* tuyaos definition of wired network status */
21typedef enum {
25
34
35
44
53
61OPERATE_RET tkl_wired_get_ip(NW_IP_S *ip);
62
70OPERATE_RET tkl_wired_get_mac(NW_MAC_S *mac);
71
79OPERATE_RET tkl_wired_set_mac(CONST NW_MAC_S *mac);
80
81
82#ifdef __cplusplus
83} // extern "C"
84#endif
85
86#endif // __TKL_WIRED_H__
87
Definition: tuya_cloud_types.h:201
Definition: tuya_cloud_types.h:208
OPERATE_RET tkl_wired_get_ip(NW_IP_S *ip)
get the ip address of the wired link
OPERATE_RET tkl_wired_get_status(TKL_WIRED_STAT_E *status)
get the link status of wired link
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
OPERATE_RET tkl_wired_set_mac(CONST NW_MAC_S *mac)
set the mac address of the wired link
TKL_WIRED_STAT_E
Definition: tkl_wired.h:21
@ TKL_WIRED_LINK_UP
the network cable is plugged and IP is got
Definition: tkl_wired.h:23
@ TKL_WIRED_LINK_DOWN
the network cable is unplugged
Definition: tkl_wired.h:22
OPERATE_RET tkl_wired_get_mac(NW_MAC_S *mac)
get the mac address of the wired link
OPERATE_RET tkl_wired_set_status_cb(TKL_WIRED_STATUS_CHANGE_CB cb)
set the status change callback