view crc_wrapper.h @ 12:ac837fe1d590 default tip

Switch implementation for reqex class and added RFCOMM as label for Bluetooth based connection by Linux
author Ideenmodellierer
date Mon, 12 Jan 2026 13:58:41 +0000
parents 6fba58c4964b
children
line wrap: on
line source

#ifndef CRC_WRAPPER_H
#define CRC_WRAPPER_H

extern "C" {
#include "crcmodel.h"
}
#include <QObject>

class CrcWrapper : public QObject
{
    Q_OBJECT
public:
    explicit CrcWrapper(QObject *parent = nullptr);

    void init(p_cm_t p_cm);
    void cm_next(p_cm_t p_cm, int ch);

    uint32_t CRC_CalcBlockCRC(uint32_t *buffer, uint32_t words);
};

#endif // CRC_WRAPPER_H