TuyaOS
|
LWIP网口相关封装 更多...
结构体 | |
struct | ty_netif_ip_info_s |
枚举 | |
enum | TUYA_NETIF_TYPE { NETIF_STA_IDX = 0 , NETIF_AP_IDX , NETIF_NUM } |
函数 | |
int | tuya_ethernetif_get_dns_srv (NW_IP_TYPE type, NW_IP_S *ip) |
int | tuya_ethernetif_get_ifindex_by_mac (NW_MAC_S *mac, TUYA_NETIF_TYPE *net_if_idx) |
int | tuya_ethernetif_get_ip (const TUYA_NETIF_TYPE net_if_idx, NW_IP_TYPE type, NW_IP_S *ip) |
get netif ipaddr from lwip 更多... | |
struct netif * | tuya_ethernetif_get_netif_by_index (const TUYA_NETIF_TYPE net_if_idx) |
get netif by index 更多... | |
err_t | tuya_ethernetif_init (struct netif *netif) |
netif check(check netif is up/down and ip is valid) 更多... | |
int | tuya_ethernetif_mac_get (const TUYA_NETIF_TYPE net_if_idx, NW_MAC_S *mac) |
get netif's mac 更多... | |
int | tuya_ethernetif_mac_set (const TUYA_NETIF_TYPE net_if_idx, NW_MAC_S *mac) |
set netif's mac 更多... | |
LWIP网口相关封装
int tuya_ethernetif_get_ip | ( | const TUYA_NETIF_TYPE | net_if_idx, |
NW_IP_TYPE | type, | ||
NW_IP_S * | ip | ||
) |
get netif ipaddr from lwip
[in] | net_if_idx | index of netif |
[in] | type | ip type |
[out] | ip | ip of netif(ip gateway mask) |
struct netif * tuya_ethernetif_get_netif_by_index | ( | const TUYA_NETIF_TYPE | net_if_idx | ) |
get netif by index
[in] | net_if_idx | the num of netif index |
netif check(check netif is up/down and ip is valid)
void |
ethernet interface recv the packet
[in] | netif | the netif to which to recieve the packet |
[in] | total_len | the length of the packet recieved from the netif |
ethernet interface sendout the pbuf packet
[in] | netif | the netif to which to be inited |
int tuya_ethernetif_mac_get | ( | const TUYA_NETIF_TYPE | net_if_idx, |
NW_MAC_S * | mac | ||
) |
get netif's mac
[in] | net_if_idx | index of netif |
[out] | mac | mac to set |
int tuya_ethernetif_mac_set | ( | const TUYA_NETIF_TYPE | net_if_idx, |
NW_MAC_S * | mac | ||
) |
set netif's mac
[in] | net_if_idx | index of netif |
[in] | mac | mac to set |