eive-obsw/mission/devices/crc/crc_ccitt_Syrlinks.h

24 lines
609 B
C

#ifndef CRC_CCITT_Syrlinks_H_
#define CRC_CCITT_Syrlinks_H_
#include <stdint.h>
/**
* @brief With this function the CRC16-CCITT over a data packet can be calculated.
*
* @param input Pointer to data over which the crc shall be calculated.
* @param length Size of data packet.
*
* @return The 16-bit wide crc calculated over the data packet.
*
* @details Wide: 16 bits
* Generator polynomial: 0x1021
* Bit order: MSB
* Initial value: 0
* @author Bucher, J. Meier
*/
uint16_t Calculate_CRC_Syrlinks(uint8_t const input[], uint32_t length);
#endif /* CRC_H_ */