]>
Commit | Line | Data |
---|---|---|
1 | //-----------------------------------------------------------------------------\r | |
2 | // Merlok - June 2011\r | |
3 | // Gerhard de Koning Gans - May 2008\r | |
4 | // Hagen Fritsch - June 2010\r | |
5 | //\r | |
6 | // This code is licensed to you under the terms of the GNU GPL, version 2 or,\r | |
7 | // at your option, any later version. See the LICENSE.txt file for the text of\r | |
8 | // the license.\r | |
9 | //-----------------------------------------------------------------------------\r | |
10 | // Routines to support ISO 14443 type A.\r | |
11 | //-----------------------------------------------------------------------------\r | |
12 | \r | |
13 | #ifndef MIFARECMD_H__\r | |
14 | #define MIFARECMD_H__\r | |
15 | \r | |
16 | #include <stdint.h>\r | |
17 | \r | |
18 | extern void MifareReadBlock(uint8_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *data);\r | |
19 | extern void MifareUReadBlock(uint8_t arg0, uint8_t arg1, uint8_t *datain);\r | |
20 | extern void MifareUC_Auth(uint8_t arg0, uint8_t *datain);\r | |
21 | extern void MifareUReadCard(uint8_t arg0, uint16_t arg1, uint8_t arg2, uint8_t *datain);\r | |
22 | extern void MifareReadSector(uint8_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *datain);\r | |
23 | extern void MifareWriteBlock(uint8_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *datain);\r | |
24 | //extern void MifareUWriteBlockCompat(uint8_t arg0,uint8_t *datain);\r | |
25 | extern void MifareUWriteBlock(uint8_t arg0, uint8_t arg1, uint8_t *datain);\r | |
26 | extern void MifareNested(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
27 | extern void MifareAcquireEncryptedNonces(uint32_t arg0, uint32_t arg1, uint32_t flags, uint8_t *datain);\r | |
28 | extern void MifareChkKeys(uint16_t arg0, uint16_t arg1, uint8_t arg2, uint8_t *datain);\r | |
29 | extern void MifareSetDbgLvl(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
30 | extern void MifareEMemClr(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
31 | extern void MifareEMemSet(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
32 | extern void MifareEMemGet(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
33 | extern void MifareECardLoad(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
34 | extern void MifareCWipe(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain); // Work with "magic Chinese" card\r | |
35 | extern void MifareCSetBlock(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
36 | extern void MifareCGetBlock(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain);\r | |
37 | extern void MifareCIdent(); // is "magic chinese" card?\r | |
38 | extern void MifareUSetPwd(uint8_t arg0, uint8_t *datain);\r | |
39 | extern void MifarePersonalizeUID(uint8_t keyType, uint8_t perso_option, uint8_t *datain);\r | |
40 | \r | |
41 | //desfire\r | |
42 | extern void Mifare_DES_Auth1(uint8_t arg0,uint8_t *datain);\r | |
43 | extern void Mifare_DES_Auth2(uint32_t arg0, uint8_t *datain);\r | |
44 | \r | |
45 | #endif\r |