56 #define SLIP_FEND 0xC0 60 #define SLIP_FESC 0xDB 64 #define SLIP_TFEND 0xDC 68 #define SLIP_TFESC 0xDD 85 int32_t
slip_unpack(uint8_t *sbuf, uint16_t ssize, uint8_t *rbuf, uint16_t rsize);
86 int32_t
slip_decode(uint8_t *sbuf, uint16_t ssize, uint8_t *rbuf, uint16_t rsize);
87 int32_t
slip_pack(uint8_t *rbuf, uint16_t rsize, uint8_t *sbuf, uint16_t ssize);
88 int32_t
slip_encode(uint8_t *rbuf, uint16_t rsize, uint8_t *sbuf, uint16_t ssize);
int32_t slip_encode(uint8_t *rbuf, uint16_t rsize, uint8_t *sbuf, uint16_t ssize)
Encode data in to SLIP packet.
Definition: sliplib.cpp:212
int32_t slip_unpack(uint8_t *sbuf, uint16_t ssize, uint8_t *rbuf, uint16_t rsize)
Unpack SLIP packet.
Definition: sliplib.cpp:79
int32_t slip_decode(uint8_t *sbuf, uint16_t ssize, uint8_t *rbuf, uint16_t rsize)
Decode SLIP packet.
Definition: sliplib.cpp:109
uint16_t slip_get_crc(uint8_t *buf, uint16_t index)
Get CRC from SLIP buffer.
Definition: sliplib.cpp:364
Headers and definitions common to all COSMOS.
int32_t slip_pack(uint8_t *rbuf, uint16_t rsize, uint8_t *sbuf, uint16_t ssize)
Pack data in to SLIP packet.
Definition: sliplib.cpp:288
uint16_t slip_calc_crc(uint8_t *buf, uint16_t size)
Calculate CRC-16-CCITT.
Definition: sliplib.cpp:322
int32_t slip_check_crc(uint8_t *sbuf, uint16_t ssize)
Check SLIP packet CRC.
Definition: sliplib.cpp:47
vector< uint8_t > slip_t
Definition: sliplib.h:76
char buf[128]
Definition: rw_test.cpp:40
uint16_t slip_set_crc(uint8_t *buf, uint16_t index)
Set CRC for SLIP buffer.
Definition: sliplib.cpp:388