87#ifdef CONFIG_SLIPDEV_BUFSIZE_EXP
88#define CONFIG_SLIPDEV_BUFSIZE (1 << CONFIG_SLIPDEV_BUFSIZE_EXP)
91#ifndef CONFIG_SLIPDEV_BUFSIZE
92#define CONFIG_SLIPDEV_BUFSIZE (2048U)
175#if IS_USED(MODULE_SLIPDEV_CONFIG)
Circular integer buffer interface.
Definitions low-level network driver interface.
int16_t kernel_pid_t
Unique process identifier.
struct netdev netdev_t
Forward declaration for netdev struct.
uint_fast8_t uart_t
Define default UART type identifier.
#define CONFIG_SLIPDEV_BUFSIZE
UART buffer size used for TX and RX buffers.
void slipdev_setup(slipdev_t *dev, const slipdev_params_t *params, uint8_t index)
Setup a slipdev device state.
slipdev_state_t
States for the slipdev and its parser.
@ SLIPDEV_STATE_SLEEP
Device is in sleep mode.
@ SLIPDEV_STATE_UNKNOWN
Device discards incoming data.
@ SLIPDEV_STATE_NONE
Device is in no mode (currently not receiving any frame), this is the idle state.
@ SLIPDEV_STATE_STDIN
Device writes received data to stdin.
@ SLIPDEV_STATE_NET
Device writes handles data as network device.
@ SLIPDEV_STATE_STANDBY
Device is in standby, will wake up when sending data.
@ SLIPDEV_STATE_CONFIG
Device writes received data as CoAP message.
@ SLIPDEV_STATE_NET_ESC
Device writes handles data as network device, next byte is escaped.
@ SLIPDEV_STATE_STDIN_ESC
Device writes received data to stdin, next byte is escaped.
@ SLIPDEV_STATE_CONFIG_ESC
Device writes received data as CoAP message, next byte is escaped.
Configuration parameters for a slipdev.
uint32_t baudrate
baudrate to use with slipdev_params_t::uart
uart_t uart
UART interface the device is connected to.
Device descriptor for slipdev.
slipdev_params_t config
configuration parameters
chunk_ringbuf_t rb
Ringbuffer to store received networking frames.
slipdev_state_t state
Device state.
uint8_t rxmem[CONFIG_SLIPDEV_BUFSIZE]
memory used by RX buffer
netdev_t netdev
parent class
Low-level UART peripheral driver interface definition.