Common process - adapter the wi-fi hostap api
更多...
#include "tuya_cloud_types.h"
浏览源代码.
|
|
typedef VOID_T * | TKL_NETIF_HANDLE |
| |
|
typedef VOID_T * | TKL_PBUF_HANDLE |
| |
Common process - adapter the wi-fi hostap api
- 版本
- 0.1
- 日期
- 2020-11-09
- 版权所有
- Copyright 2020-2021 Tuya Inc. All Rights Reserved.
◆ tkl_ethernetif_init()
| OPERATE_RET tkl_ethernetif_init |
( |
TKL_NETIF_HANDLE |
netif | ) |
|
ethernet interface hardware init
- 参数
-
| [in] | netif | the 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] | netif | the netif to which to send the packet |
| [in] | p | the 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] | netif | the netif to which to recieve the packet |
| [in] | total_len | the length of the packet recieved from the netif |
- 返回
- void