Mercurial > public > ostc_companion
annotate crc_wrapper.h @ 5:115cfa4a3239 default tip
Added icon upload function for OSTC 4/5
For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
| author | Ideenmodellierer |
|---|---|
| date | Tue, 30 Dec 2025 21:41:02 +0100 |
| parents | |
| children |
| rev | line source |
|---|---|
| 5 | 1 #ifndef CRC_WRAPPER_H |
| 2 #define CRC_WRAPPER_H | |
| 3 | |
| 4 extern "C" { | |
| 5 #include "crcmodel.h" | |
| 6 } | |
| 7 #include <QObject> | |
| 8 | |
| 9 class CrcWrapper : public QObject | |
| 10 { | |
| 11 Q_OBJECT | |
| 12 public: | |
| 13 explicit CrcWrapper(QObject *parent = nullptr); | |
| 14 | |
| 15 void init(p_cm_t p_cm); | |
| 16 void cm_next(p_cm_t p_cm,int ch); | |
| 17 | |
| 18 uint32_t CRC_CalcBlockCRC(uint32_t *buffer, uint32_t words); | |
| 19 | |
| 20 | |
| 21 }; | |
| 22 | |
| 23 #endif // CRC_WRAPPER_H |
