Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
sliplib.h File Reference

COSMOS SLIP support include file. More...

#include "support/configCosmosKernel.h"
#include "support/cosmos-errno.h"
#include <cstring>

Go to the source code of this file.

Macros

#define SLIP_FEND   0xC0
 SLIP Buffer End character.
 
#define SLIP_FESC   0xDB
 SLIP Buffer Escape character.
 
#define SLIP_TFEND   0xDC
 SLIP Buffer Escaped End character.
 
#define SLIP_TFESC   0xDD
 SLIP Buffer Escaped Escape character.
 

Functions

int32_t slip_unpack (uint8_t *sbuf, uint16_t ssize, uint8_t *rbuf, uint16_t rsize)
 Unpack SLIP packet. More...
 
int32_t slip_decode (uint8_t *sbuf, uint16_t ssize, uint8_t *rbuf, uint16_t rsize)
 Decode SLIP packet. More...
 
int32_t slip_pack (uint8_t *rbuf, uint16_t rsize, uint8_t *sbuf, uint16_t ssize)
 Pack data in to SLIP packet. More...
 
int32_t slip_encode (uint8_t *rbuf, uint16_t rsize, uint8_t *sbuf, uint16_t ssize)
 Encode data in to SLIP packet. More...
 
int32_t slip_unpack (vector< uint8_t > &sbuf, vector< uint8_t > &rbuf)
 
int32_t slip_decode (vector< uint8_t > &sbuf, vector< uint8_t > &rbuf)
 
int32_t slip_pack (vector< uint8_t > &rbuf, vector< uint8_t > &sbuf)
 
int32_t slip_encode (vector< uint8_t > &rbuf, vector< uint8_t > &sbuf)
 
int32_t slip_extract (FILE *fp, vector< uint8_t > &rbuf)
 
uint16_t slip_calc_crc (uint8_t *buf, uint16_t size)
 Calculate CRC-16-CCITT. More...
 
uint16_t slip_calc_crc (vector< uint8_t > &buf)
 

Detailed Description

COSMOS SLIP support include file.