TuyaOS
类型定义 | 枚举 | 函数
tkl_wired.h 文件参考

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

#include "tuya_cloud_types.h"
tkl_wired.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

类型定义

typedef 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 callback. 更多...
 

枚举

enum  TKL_WIRED_STAT_E { TKL_WIRED_LINK_DOWN = 0 , TKL_WIRED_LINK_UP }
 

函数

OPERATE_RET tkl_wired_get_ip (NW_IP_S *ip)
 get the ip address of the wired link 更多...
 
OPERATE_RET tkl_wired_get_mac (NW_MAC_S *mac)
 get the mac address of the wired link 更多...
 
OPERATE_RET tkl_wired_get_status (TKL_WIRED_STAT_E *status)
 get the link status of wired link 更多...
 
OPERATE_RET tkl_wired_set_mac (CONST NW_MAC_S *mac)
 set 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 更多...
 

详细描述

Common process - adapter the wired api

版本
0.1
日期
2020-11-09

类型定义说明

◆ TKL_WIRED_STATUS_CHANGE_CB

typedef 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 callback.

参数
[out]is_upthe wired link status is up or not

枚举类型说明

◆ TKL_WIRED_STAT_E

枚举值
TKL_WIRED_LINK_DOWN 

the network cable is unplugged

TKL_WIRED_LINK_UP 

the network cable is plugged and IP is got

函数说明

◆ tkl_wired_get_ip()

OPERATE_RET tkl_wired_get_ip ( NW_IP_S ip)

get the ip address of the wired link

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

◆ tkl_wired_get_mac()

OPERATE_RET tkl_wired_get_mac ( NW_MAC_S mac)

get the mac address of the wired link

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

◆ tkl_wired_get_status()

OPERATE_RET tkl_wired_get_status ( TKL_WIRED_STAT_E status)

get the link status of wired link

参数
[out]is_upthe wired link status is up or not
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_wired_set_mac()

OPERATE_RET tkl_wired_set_mac ( CONST NW_MAC_S mac)

set the mac address of the wired link

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

◆ tkl_wired_set_status_cb()

OPERATE_RET tkl_wired_set_status_cb ( TKL_WIRED_STATUS_CHANGE_CB  cb)

set the status change callback

参数
[in]cbthe callback when link status changed
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h