mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 15:04:19 +00:00
d92b0a82cc
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring. Starring: - @gornekich - NFC refactoring project lead, architect, senior developer - @gsurkov - architect, senior developer - @RebornedBrain - senior developer Supporting roles: - @skotopes, @DrZlo13, @hedger - general architecture advisors, code review - @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance Special thanks: @bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
27 lines
455 B
C
27 lines
455 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#include <toolbox/bit_buffer.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define ISO14443_CRC_SIZE sizeof(uint16_t)
|
|
|
|
typedef enum {
|
|
Iso14443CrcTypeA,
|
|
Iso14443CrcTypeB,
|
|
} Iso14443CrcType;
|
|
|
|
void iso14443_crc_append(Iso14443CrcType type, BitBuffer* buf);
|
|
|
|
bool iso14443_crc_check(Iso14443CrcType type, const BitBuffer* buf);
|
|
|
|
void iso14443_crc_trim(BitBuffer* buf);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|