Kaleidoscope
Kaleidoscope-EEPROM-Settings
src
Kaleidoscope
crc.h
Go to the documentation of this file.
1
/* -*- mode: c++ -*-
2
* Kaleidoscope-EEPROM-Settings -- Basic EEPROM settings plugin for Kaleidoscope.
3
* Copyright (C) 2017 Gergely Nagy
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*
18
* Originally generated by pycrc v0.9, https://pycrc.org
19
*
20
* using the configuration:
21
* Width = 16
22
* Poly = 0x8005
23
* Xor_In = 0x0000
24
* ReflectIn = True
25
* Xor_Out = 0x0000
26
* ReflectOut = True
27
* Algorithm = bit-by-bit-fast
28
*/
29
30
#pragma once
31
32
#include <Arduino.h>
33
34
class
CRC_
{
35
public
:
36
uint16_t
crc
= 0;
37
38
CRC_
(
void
) {};
39
40
void
update
(
const
void
*data, uint8_t len);
41
void
finalize
(
void
) {
42
reflect
(16);
43
}
44
void
reflect
(uint8_t len);
45
};
46
47
extern
CRC_
CRC
;
CRC_::finalize
void finalize(void)
Definition:
crc.h:41
CRC
CRC_ CRC
Definition:
crc.cpp:70
CRC_::crc
uint16_t crc
Definition:
crc.h:36
CRC_
Definition:
crc.h:34
CRC_::reflect
void reflect(uint8_t len)
Definition:
crc.cpp:33
CRC_::CRC_
CRC_(void)
Definition:
crc.h:38
CRC_::update
void update(const void *data, uint8_t len)
Definition:
crc.cpp:47
Generated by
1.8.13