#include <stddef.h>
#include <stdint.h>
#include "isrpipe.h"
#include "periph/uart.h"
#include "mutex.h"
Go to the source code of this file.
|
- See also
- RFC 1055
|
|
#define | SLIPDEV_END (0xc0U) |
| |
|
#define | SLIPDEV_ESC (0xdbU) |
| |
|
#define | SLIPDEV_END_ESC (0xdcU) |
| |
|
#define | SLIPDEV_ESC_ESC (0xddU) |
| |
| #define | SLIPDEV_STDIO_START (0x0aU) |
| | Marker byte for beginning of stdio. More...
|
| |
| #define | SLIPDEV_CONFIG_START (0xa9U) |
| | Marker byte for beginning of configuration/CoAP. More...
|
| |
◆ SLIPDEV_CONFIG_START
| #define SLIPDEV_CONFIG_START (0xa9U) |
Marker byte for beginning of configuration/CoAP.
- See also
- taken from configuration from SLIPMUX
Definition at line 55 of file slipdev_internal.h.
◆ SLIPDEV_STDIO_START
| #define SLIPDEV_STDIO_START (0x0aU) |
Marker byte for beginning of stdio.
- See also
- taken from diagnostic transfer from SLIPMUX
Definition at line 48 of file slipdev_internal.h.
◆ slipdev_write_byte()
| static void slipdev_write_byte |
( |
uart_t |
uart, |
|
|
uint8_t |
byte |
|
) |
| |
|
inlinestatic |
Writes one byte to UART.
- Parameters
-
| [in] | uart | The UART device to write to. |
| [in] | byte | The byte to write to uart. |
Definition at line 75 of file slipdev_internal.h.
◆ slipdev_write_bytes()
| void slipdev_write_bytes |
( |
uart_t |
uart, |
|
|
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
Write multiple bytes SLIP-escaped to UART.
- Parameters
-
| [in] | uart | The UART device to write to. |
| [in] | data | The bytes to write SLIP-escaped to uart. |
| [in] | len | Number of bytes in data. |