Microchip® Advanced Software Framework

slipdev.c File Reference

SLIP protocol implementation.

Author
Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om
#include "uip.h"
#include "slipdev.h"
#include <string.h>

Macros

#define SLIP_END   0300
 
#define SLIP_ESC   0333
 
#define SLIP_ESC_END   0334
 
#define SLIP_ESC_ESC   0335
 

Functions

void slipdev_init (void)
 Initialize the SLIP module. More...
 
uint16_t slipdev_poll (void)
 Poll the SLIP device for an available packet. More...
 
uint8_t slipdev_send (void)
 Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol. More...
 

Variables

static uint8_t lastc
 
static uint16_t len
 
static uint8_t slip_buf [UIP_BUFSIZE]
 
static uint16_t tmplen