1 #ifndef SVC_CCSDS_UTILS_CRC16_HPP 2 #define SVC_CCSDS_UTILS_CRC16_HPP 33 return this->
m_crc ^
static_cast<U16
>(0);
44 U16 crc = std::numeric_limits<U16>::max();
45 for (U32 i = 0; i < length; ++i) {
48 return crc ^
static_cast<U16
>(0);
58 #endif // SVC_CCSDS_UTILS_CRC16_HPP
static U16 compute(const U8 *buffer, U32 length)
compute CRC16 for a buffer
CRC16 CCITT implementation.
U16 finalize()
finalize and return CRC value
uint8_t U8
8-bit unsigned integer
unsigned short update_crc_ccitt(unsigned short crc, char c)
C++ header for working with basic fprime types.
RateGroupDivider component implementation.
void update(U8 new_byte)
update CRC with one new byte