All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
slipdev.h File Reference

SLIP device definitions. More...

Detailed Description

SLIP device definitions.

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file slipdev.h.

#include <stdint.h>
#include "cib.h"
#include "net/netdev.h"
#include "periph/uart.h"
#include "chunked_ringbuffer.h"
+ Include dependency graph for slipdev.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  slipdev_params_t
 Configuration parameters for a slipdev. More...
 
struct  slipdev_t
 Device descriptor for slipdev. More...
 

Macros

#define CONFIG_SLIPDEV_BUFSIZE   (2048U)
 UART buffer size used for TX and RX buffers.
 

Functions

void slipdev_setup (slipdev_t *dev, const slipdev_params_t *params, uint8_t index)
 Setup a slipdev device state.
 

Device state definitions

enum  {
  SLIPDEV_STATE_NONE = 0 , SLIPDEV_STATE_NET , SLIPDEV_STATE_NET_ESC , SLIPDEV_STATE_STDIN ,
  SLIPDEV_STATE_STDIN_ESC , SLIPDEV_STATE_STANDBY , SLIPDEV_STATE_SLEEP
}