Structure used to contain the current state for the SLIP receiver.
For forward compatibility, instances of this structure should be initialized using SLIP_RX_STATE_INIT. For dynamic initialization use slip_rx_state_reinit().
For example:
enum slip_rx_status slip_rx(struct slip_rx_state *state, uint8_t c)
Handle reception of a character in a SLIP stream.
#define SLIP_RX_STATE_INIT(_buffer, _buffer_length)
Static initializer for slip_rx_state.
#define SLIP_RX_BUFFER_SIZE
Recommended RX buffer size.
static uint8_t slip_rx_buffer[SLIP_RX_BUFFER_SIZE]
Buffer for SLIP processing on receive path.
Structure used to contain the current state for the SLIP receiver.
Definition at line 42 of file slip.h.
#include <slip.h>
◆ buffer
| uint8_t* slip_rx_state::buffer |
Reference to buffer where processed bytes are received.
Definition at line 44 of file slip.h.
◆ buffer_length
| size_t slip_rx_state::buffer_length |
Length of the buffer.
Definition at line 45 of file slip.h.
◆ escape
| bool slip_rx_state::escape |
Escape state.
Definition at line 47 of file slip.h.
◆ frame_started
| bool slip_rx_state::frame_started |
Escape state.
Definition at line 48 of file slip.h.
◆ length
| size_t slip_rx_state::length |
Length of the currently received frame, excluding escape bytes.
Definition at line 46 of file slip.h.
The documentation for this struct was generated from the following file: