61#ifdef CONFIG_SLIPDEV_BUFSIZE_EXP
62#define CONFIG_SLIPDEV_BUFSIZE (1<<CONFIG_SLIPDEV_BUFSIZE_EXP)
65#ifndef CONFIG_SLIPDEV_BUFSIZE
66#define CONFIG_SLIPDEV_BUFSIZE (2048U)
Circular integer buffer interface.
Definitions low-level network driver interface.
Low-level UART peripheral driver interface definition.
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_SLEEP
Device is in sleep mode.
@ SLIPDEV_STATE_NONE
Device is in no mode (currently did not receiving any data frame)
@ 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_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.
Structure to hold driver state.
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 frames.
uint8_t state
Device state.
netdev_t netdev
parent class