Chameleon-Mini
Reader14443A.h
1 #ifndef READER14443A_H
2 #define READER14443A_H
3 
4 #include "Application.h"
5 #include "Codec/Codec.h"
6 
7 #define CRC_INIT 0x6363
8 
9 extern uint8_t ReaderSendBuffer[];
10 extern uint16_t ReaderSendBitCount;
11 
12 void Reader14443AAppInit(void);
13 void Reader14443AAppReset(void);
14 void Reader14443AAppTask(void);
15 void Reader14443AAppTick(void);
16 void Reader14443AAppTimeout(void);
17 
18 uint16_t Reader14443AAppProcess(uint8_t *Buffer, uint16_t BitCount);
19 
20 uint16_t addParityBits(uint8_t *Buffer, uint16_t bits);
21 uint16_t removeParityBits(uint8_t *Buffer, uint16_t BitCount);
22 bool checkParityBits(uint8_t *Buffer, uint16_t BitCount);
23 uint16_t ISO14443_CRCA(uint8_t *Buffer, uint8_t ByteCount);
24 
25 typedef enum {
26  Reader14443_Do_Nothing,
27  Reader14443_Send,
28  Reader14443_Send_Raw,
29  Reader14443_Get_UID,
30  Reader14443_Autocalibrate,
31  Reader14443_Read_MF_Ultralight,
32  Reader14443_Identify,
33  Reader14443_Identify_Clone,
34  Reader14443_Clone_MF_Ultralight
35 } Reader14443Command;
36 
37 
38 #endif //READER14443A_H