|
TuyaOS
|
Common process - wired abstration api define 更多...
#include "tuya_cloud_types.h"

类型定义 | |
| typedef VOID_T(* | TAL_WIRED_STATUS_CHANGE_CB) (WIRED_STAT_E stat) |
| callback function: WIRED_STATUS_CHANGE_CB when wired connect status changed, notify tuyaos with this callback. 更多... | |
枚举 | |
| enum | WIRED_STAT_E { WIRED_LINK_DOWN = 0 , WIRED_LINK_UP } |
函数 | |
| OPERATE_RET | tal_wired_get_ip (NW_IP_S *ip) |
| get the ip address of the wired link 更多... | |
| OPERATE_RET | tal_wired_get_mac (NW_MAC_S *mac) |
| get the mac address of the wired link 更多... | |
| OPERATE_RET | tal_wired_get_status (WIRED_STAT_E *stat) |
| get the link status of wired link 更多... | |
| OPERATE_RET | tal_wired_set_mac (CONST NW_MAC_S *mac) |
| set the mac address of the wired link 更多... | |
| OPERATE_RET | tal_wired_set_status_cb (TAL_WIRED_STATUS_CHANGE_CB cb) |
| set the status change callback 更多... | |
Common process - wired abstration api define
| typedef VOID_T(* TAL_WIRED_STATUS_CHANGE_CB) (WIRED_STAT_E stat) |
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 WIRED_STAT_E |
| OPERATE_RET tal_wired_get_ip | ( | NW_IP_S * | ip | ) |
get the ip address of the wired link
| [in] | ip | the ip address |
| OPERATE_RET tal_wired_get_mac | ( | NW_MAC_S * | mac | ) |
get the mac address of the wired link
| [in] | mac | the mac address |
| OPERATE_RET tal_wired_get_status | ( | WIRED_STAT_E * | stat | ) |
get the link status of wired link
| [out] | is_up | the wired link status is up or not |
| OPERATE_RET tal_wired_set_mac | ( | CONST NW_MAC_S * | mac | ) |
set the mac address of the wired link
| [in] | mac | the mac address |
| OPERATE_RET tal_wired_set_status_cb | ( | TAL_WIRED_STATUS_CHANGE_CB | cb | ) |
set the status change callback
| [in] | cb | the callback when link status changed |