⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcapif.h

📁 NXPl788上lwip的无操作系统移植,基于Embest开发板
💻 H
字号:
#ifndef __PKTIF_H__
#define __PKTIF_H__

#include "lwip/err.h"

/** Set to 1 to let rx use an own thread (only for NO_SYS==0).
 * If set to 0, ethernetif_poll is used to poll for packets.
 */
#ifndef PCAPIF_RX_USE_THREAD
#define PCAPIF_RX_USE_THREAD !NO_SYS
#endif
#if PCAPIF_RX_USE_THREAD && NO_SYS
#error "Can't create a dedicated RX thread with NO_SYS==1"
#endif

struct netif;

err_t pcapif_init    (struct netif *netif);
void  pcapif_shutdown(struct netif *netif);
#if !PCAPIF_RX_USE_THREAD
void  pcapif_poll    (struct netif *netif);
#endif /* !PCAPIF_RX_USE_THREAD */

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -