TuyaOS
宏定义 | 函数
slipif.h 文件参考
#include "lwip/opt.h"
#include "lwip/netif.h"
slipif.h 的引用(Include)关系图:

浏览源代码.

宏定义

#define SLIP_RX_FROM_ISR   0
 
#define SLIP_RX_QUEUE   SLIP_RX_FROM_ISR
 
#define SLIP_USE_RX_THREAD   !NO_SYS
 

函数

err_t slipif_init (struct netif *netif)
 
void slipif_poll (struct netif *netif)
 

详细描述

SLIP netif API

宏定义说明

◆ SLIP_RX_FROM_ISR

#define SLIP_RX_FROM_ISR   0

Set this to 1 to enable functions to pass in RX bytes from ISR context. If enabled, slipif_received_byte[s]() process incoming bytes and put assembled packets on a queue, which is fed into lwIP from slipif_poll(). If disabled, slipif_poll() polls the serial line (using sio_tryread()).

◆ SLIP_RX_QUEUE

#define SLIP_RX_QUEUE   SLIP_RX_FROM_ISR

Set this to 1 (default for SLIP_RX_FROM_ISR) to queue incoming packets received by slipif_received_byte[s]() as long as PBUF_POOL pbufs are available. If disabled, packets will be dropped if more than one packet is received.

◆ SLIP_USE_RX_THREAD

#define SLIP_USE_RX_THREAD   !NO_SYS

Set this to 1 to start a thread that blocks reading on the serial line (using sio_read()).