TuyaOS
类型定义 | 函数
tkl_lwip.h 文件参考

Common process - adapter the wi-fi hostap api 更多...

#include "tuya_cloud_types.h"
tkl_lwip.h 的引用(Include)关系图:

浏览源代码.

类型定义

typedef VOID_T * TKL_NETIF_HANDLE
 
typedef VOID_T * TKL_PBUF_HANDLE
 

函数

OPERATE_RET tkl_ethernetif_init (TKL_NETIF_HANDLE netif)
 ethernet interface hardware init 更多...
 
OPERATE_RET tkl_ethernetif_output (TKL_NETIF_HANDLE netif, TKL_PBUF_HANDLE p)
 ethernet interface sendout the pbuf packet 更多...
 
OPERATE_RET tkl_ethernetif_recv (TKL_NETIF_HANDLE netif, TKL_PBUF_HANDLE p)
 ethernet interface recv the packet 更多...
 

详细描述

Common process - adapter the wi-fi hostap api

版本
0.1
日期
2020-11-09

函数说明

◆ tkl_ethernetif_init()

OPERATE_RET tkl_ethernetif_init ( TKL_NETIF_HANDLE  netif)

ethernet interface hardware init

参数
[in]netifthe netif to which to send the packet
返回
err_t SEE "err_enum_t" in "lwip/err.h" to see the lwip err(ERR_OK: SUCCESS other:fail)

◆ tkl_ethernetif_output()

OPERATE_RET tkl_ethernetif_output ( TKL_NETIF_HANDLE  netif,
TKL_PBUF_HANDLE  p 
)

ethernet interface sendout the pbuf packet

参数
[in]netifthe netif to which to send the packet
[in]pthe packet to be send, in pbuf mode
返回
err_t SEE "err_enum_t" in "lwip/err.h" to see the lwip err(ERR_OK: SUCCESS other:fail)

◆ tkl_ethernetif_recv()

OPERATE_RET tkl_ethernetif_recv ( TKL_NETIF_HANDLE  netif,
TKL_PBUF_HANDLE  p 
)

ethernet interface recv the packet

参数
[in]netifthe netif to which to recieve the packet
[in]total_lenthe length of the packet recieved from the netif
返回
void