mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 22:56:33 +00:00
13 lines
228 B
C++
13 lines
228 B
C++
#pragma once
|
|
|
|
#include <QByteArray>
|
|
|
|
class UtilsCRC16
|
|
{
|
|
public:
|
|
static void getCRCBytes(const QByteArray &data, int8_t *bytes);
|
|
|
|
private:
|
|
static uint16_t calculate(const uint8_t *ptr, uint32_t len, uint16_t crcInit);
|
|
};
|