|
lwIP 2.2.1
Lightweight IP stack
|
Functions | |
| err_t | slipif_init (struct netif *netif) |
| void | slipif_poll (struct netif *netif) |
| void | slipif_process_rxqueue (struct netif *netif) |
| void | slipif_received_byte (struct netif *netif, u8_t data) |
| void | slipif_received_bytes (struct netif *netif, u8_t *data, u8_t len) |
This is an arch independent SLIP netif. The specific serial hooks must be provided by another file. They are sio_open, sio_read/sio_tryread and sio_send
Usage: This netif can be used in three ways:
SLIP netif initialization
Call the arch specific sio_open and remember the opened device in the state field of the netif.
| netif | the lwip network interface structure for this slipif |
Polls the serial device and feeds the IP layer with incoming packets.
| netif | The lwip network interface structure for this slipif |
Feeds the IP layer with incoming packets that were receive
| netif | The lwip network interface structure for this slipif |
Process a received byte, completed packets are put on a queue that is fed into IP through slipif_process_rxqueue().
This function can be called from ISR if SYS_LIGHTWEIGHT_PROT is enabled.
| netif | The lwip network interface structure for this slipif |
| data | received character |
Process multiple received byte, completed packets are put on a queue that is fed into IP through slipif_process_rxqueue().
This function can be called from ISR if SYS_LIGHTWEIGHT_PROT is enabled.
| netif | The lwip network interface structure for this slipif |
| data | received character |
| len | Number of received characters |