diff options
| author | Javier <dev.git@javispedro.com> | 2014-12-07 23:39:29 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2014-12-07 23:39:29 +0100 |
| commit | a60c1cb3c4afd6dfd305115ec4c52e993172fa7d (patch) | |
| tree | 1a12cfaed45b923ed511de388d556ccc705c9e6a /daemon/stm32crc.h | |
| parent | 49c20eb7e2933ae6e9e4337fc0fe9b49a39efde8 (diff) | |
ability to upload apps
Diffstat (limited to 'daemon/stm32crc.h')
| -rw-r--r-- | daemon/stm32crc.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/daemon/stm32crc.h b/daemon/stm32crc.h new file mode 100644 index 0000000..1361de3 --- /dev/null +++ b/daemon/stm32crc.h @@ -0,0 +1,24 @@ +#ifndef STM32CRC_H +#define STM32CRC_H + +#include <QByteArray> + +class Stm32Crc +{ +public: + Stm32Crc(); + + void reset(); + + // Data size must be multiple of 4, data must be aligned to 4. + + void addData(const char *data, int length); + void addData(const QByteArray &data); + + quint32 result() const; + +private: + quint32 crc; +}; + +#endif // STM32CRC_H |
