Files
obsw/mission/netif/slipif.h
2024-12-06 17:37:08 +01:00

15 lines
313 B
C

#pragma once
#include "lwip/opt.h"
#include "lwip/netif.h"
struct slipif_priv {
int fd;
/* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */
struct pbuf *p, *q;
u8_t state;
u16_t i, recved;
};
err_t slipif_init(struct netif * netif);
void slipif_poll(struct netif *netif);