Flipper Zero Firmware
Loading...
Searching...
No Matches
iso14443_crc.h
1#pragma once
2
3#include <stdint.h>
4#include <stddef.h>
5
6#include <toolbox/bit_buffer.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#define ISO14443_CRC_SIZE sizeof(uint16_t)
13
14typedef enum {
15 Iso14443CrcTypeA,
16 Iso14443CrcTypeB,
17} Iso14443CrcType;
18
19void iso14443_crc_append(Iso14443CrcType type, BitBuffer* buf);
20
21bool iso14443_crc_check(Iso14443CrcType type, const BitBuffer* buf);
22
23void iso14443_crc_trim(BitBuffer* buf);
24
25#ifdef __cplusplus
26}
27#endif
Definition bit_buffer.c:7