projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD: first try for an appveyor file targetting mingw
[proxmark3-svn]
/
common
/
crc.h
diff --git
a/common/crc.h
b/common/crc.h
index 5a9bcfa725199598585bd1f7354bcdf025c911d4..22b703fe5be44f9eee48c30ef25621fffbe62afe 100644
(file)
--- a/
common/crc.h
+++ b/
common/crc.h
@@
-9,9
+9,7
@@
#ifndef __CRC_H
#define __CRC_H
#ifndef __CRC_H
#define __CRC_H
-#include <stdint.h> //uint32+
-#include <stdbool.h> //bool
-#include <stddef.h>
+#include "common.h" //stdint, stddef, stdbool
#include "util.h" // reflect, bswap_16
typedef struct crc {
#include "util.h" // reflect, bswap_16
typedef struct crc {
@@
-44,6
+42,7
@@
extern void crc_init(crc_t *crc, int order, uint32_t polynom, uint32_t initial_v
* data_width lower-most bits are used).
*/
extern void crc_update(crc_t *crc, uint32_t data, int data_width);
* data_width lower-most bits are used).
*/
extern void crc_update(crc_t *crc, uint32_t data, int data_width);
+extern void crc_update2(crc_t *crc, uint32_t data, int data_width);
/* Clean the crc state, e.g. reset it to initial_value */
extern void crc_clear(crc_t *crc);
/* Clean the crc state, e.g. reset it to initial_value */
extern void crc_clear(crc_t *crc);
@@
-68,6
+67,8
@@
uint32_t CRC16Legic(uint8_t *buff, size_t size, uint8_t uidcrc);
// test crc 16.
uint32_t CRC16_DNP(uint8_t *buff, size_t size);
uint32_t CRC16_CCITT(uint8_t *buff, size_t size);
// test crc 16.
uint32_t CRC16_DNP(uint8_t *buff, size_t size);
uint32_t CRC16_CCITT(uint8_t *buff, size_t size);
+uint32_t CRC16_Iso15693(uint8_t *buff, size_t size);
+uint32_t CRC16_ICLASS(uint8_t *buff, size_t size);
/* Static initialization of a crc structure */
#define CRC_INITIALIZER(_order, _polynom, _initial_value, _final_xor) { \
/* Static initialization of a crc structure */
#define CRC_INITIALIZER(_order, _polynom, _initial_value, _final_xor) { \
Impressum
,
Datenschutz