diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-02-14 14:04:51 +0200 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-02-14 14:04:51 +0200 |
commit | ce3a21cbeaa58cfa6b117a8be13be47a69f086ae (patch) | |
tree | 24287b3d060778f92ec46a4d4e4a296aa8169d29 /serial_link/protocol/byte_stuffer.h | |
parent | 8a991a266e7f8f9aff48049dffb17eccfa353ca1 (diff) |
Implement receive of valid small byte stuffed frames
Diffstat (limited to 'serial_link/protocol/byte_stuffer.h')
-rw-r--r-- | serial_link/protocol/byte_stuffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/serial_link/protocol/byte_stuffer.h b/serial_link/protocol/byte_stuffer.h index 3b9f9ea5d4..9a5551fab5 100644 --- a/serial_link/protocol/byte_stuffer.h +++ b/serial_link/protocol/byte_stuffer.h @@ -22,4 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -void recv_byte(uint8_t data); +typedef struct byte_stuffer_state byte_stuffer_state_t; +void init_byte_stuffer_state(byte_stuffer_state_t* state); +void recv_byte(byte_stuffer_state_t* state, uint8_t data); |