11#ifndef __TAL_WIRED_H__
12#define __TAL_WIRED_H__
14#include "tuya_cloud_types.h"
OPERATE_RET tal_wired_set_mac(CONST NW_MAC_S *mac)
set the mac 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_set_status_cb(TAL_WIRED_STATUS_CHANGE_CB cb)
set the status change callback
OPERATE_RET tal_wired_get_status(WIRED_STAT_E *stat)
get the link status of wired link
WIRED_STAT_E
Definition: tal_wired.h:22
@ WIRED_LINK_UP
the network cable is plugged and IP is got
Definition: tal_wired.h:24
@ WIRED_LINK_DOWN
the network cable is unplugged
Definition: tal_wired.h:23
OPERATE_RET tal_wired_get_ip(NW_IP_S *ip)
get the ip address of the wired link
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 ...
Definition: tal_wired.h:34