view crc_wrapper.h @ 14:e47e0f59101d default tip

Enable OSTC 4/5 Icon option The button for uploading the icon is now activated based on the first FW version supporting this function
author Ideenmodellierer
date Mon, 12 Jan 2026 18:47:00 +0100
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