Mistake on this page?
Report an issue in GitHub or email us
Macros
slipif.h File Reference

SLIP netif API. More...

#include "lwip/opt.h"
#include "lwip/netif.h"

Go to the source code of this file.

Macros

#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()). More...
 
#define SLIP_RX_FROM_ISR   0
 Set this to 1 to enable functions to pass in RX bytes from ISR context. More...
 
#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. More...
 

Detailed Description

SLIP netif API.

Definition in file slipif.h.

Macro Definition Documentation

#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()).

Definition at line 59 of file slipif.h.

#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.

Definition at line 67 of file slipif.h.

#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()).

Definition at line 50 of file slipif.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.