|
TuyaOS
|
Common process - adapter the wired api 更多...
#include "tuya_cloud_types.h"

类型定义 | |
| 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
| 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_up | the wired link status is up or not |
| enum TKL_WIRED_STAT_E |
| OPERATE_RET tkl_wired_get_ip | ( | NW_IP_S * | ip | ) |
get the ip address of the wired link
| [in] | ip | the ip address |
| OPERATE_RET tkl_wired_get_mac | ( | NW_MAC_S * | mac | ) |
get the mac address of the wired link
| [in] | mac | the mac address |
| OPERATE_RET tkl_wired_get_status | ( | TKL_WIRED_STAT_E * | status | ) |
get the link status of wired link
| [out] | is_up | the wired link status is up or not |
| OPERATE_RET tkl_wired_set_mac | ( | CONST NW_MAC_S * | mac | ) |
set the mac address of the wired link
| [in] | mac | the mac address |
| OPERATE_RET tkl_wired_set_status_cb | ( | TKL_WIRED_STATUS_CHANGE_CB | cb | ) |
set the status change callback
| [in] | cb | the callback when link status changed |