view crc_wrapper.h @ 11:6fba58c4964b

Minor changes done by automatic style checker
author Ideenmodellierer
date Mon, 12 Jan 2026 13:57:24 +0000
parents 115cfa4a3239
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