eive-obsw/thirdparty/tas/hdlc.h
Robin Mueller 1ac9e53b1f
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
add TAS sources
2022-11-04 09:35:17 +01:00

27 lines
882 B
C

//**************************************************************************************
/*! \copyright: 2020-2021 Thales Alenia Space Deutschland GmbH
* \project: multiMIND
* \file: (name of source file: hdlc.h)
* \date: (09.02.2022)
* \author: (Stelios Filippopoulos)
* \brief: (hdlc header file)
* \language: (C)
**************************************************************************************
*/
#ifndef LIB_HDLC_H_
#define LIB_HDLC_H_
#define HDLC_ENABLE
#define HDLC_START_BYTE (0x7Eu)
#define HDLC_ESC_BYTE (0x7Du)
#define HDLC_END_BYTE (0x7Cu)
#define HDLC_ESCAPE_CHAR (0x20u)
void hdlc_add_framing(uint8_t *src, uint16_t slen, uint8_t *dst, uint16_t *dlen);
void hdlc_remove_framing(uint8_t *src, uint16_t slen, uint8_t *dst, uint16_t *dlen);
#endif /* LIB_HDLC_H_ */