diff options
author | Paul Selkirk <paul@psgd.org> | 2016-09-20 09:01:44 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-09-20 09:01:44 -0400 |
commit | 1295f7ebbfaff3ad098fe9d4cafa32a1f3750563 (patch) | |
tree | 7af7749d044732e64c22ca6aae84a3230f008312 /slip_internal.h | |
parent | febe3ed7b2e7b2342c77d4a35db93e6247ea4326 (diff) |
Restructure hal_slip_recv_char so caller can pass in a char directly.
Also bring error checking in line with other modules.
Diffstat (limited to 'slip_internal.h')
-rw-r--r-- | slip_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/slip_internal.h b/slip_internal.h index 4c36c31..46a39be 100644 --- a/slip_internal.h +++ b/slip_internal.h @@ -41,6 +41,7 @@ */ extern hal_error_t hal_slip_send_char(const uint8_t c); extern hal_error_t hal_slip_send(const uint8_t * const buf, const size_t len); +extern hal_error_t hal_slip_process_char(uint8_t c, uint8_t * const buf, size_t * const len, const size_t maxlen, int * const complete); extern hal_error_t hal_slip_recv_char(uint8_t * const buf, size_t * const len, const size_t maxlen, int * const complete); extern hal_error_t hal_slip_recv(uint8_t * const buf, size_t * const len, const size_t maxlen); |