Chameleon-Mini
MifareUltralight.h
1 /*
2  * MifareUltralight.h
3  *
4  * Created on: 20.03.2013
5  * Author: skuser
6  */
7 
8 #ifndef MIFAREULTRALIGHT_H_
9 #define MIFAREULTRALIGHT_H_
10 
11 #include "Application.h"
12 #include "ISO14443-3A.h"
13 
14 #define MIFARE_ULTRALIGHTC_UID_SIZE ISO14443A_UID_SIZE_DOUBLE
15 #define MIFARE_ULTRALIGHTC_PAGE_SIZE 4
16 #define MIFARE_ULTRALIGHTC_PAGES 48
17 #define MIFARE_ULTRALIGHTC_MEM_SIZE (MIFARE_ULTRALIGHTC_PAGES * MIFARE_ULTRALIGHTC_PAGE_SIZE)
18 
19 #define MIFARE_ULTRALIGHT_UID_SIZE ISO14443A_UID_SIZE_DOUBLE
20 #define MIFARE_ULTRALIGHT_PAGE_SIZE 4
21 #define MIFARE_ULTRALIGHT_PAGES 16
22 #define MIFARE_ULTRALIGHT_EV11_PAGES 20
23 #define MIFARE_ULTRALIGHT_EV12_PAGES 41
24 #define MIFARE_ULTRALIGHT_MEM_SIZE (MIFARE_ULTRALIGHT_PAGES * MIFARE_ULTRALIGHT_PAGE_SIZE)
25 #define MIFARE_ULTRALIGHT_EV11_MEM_SIZE (MIFARE_ULTRALIGHT_EV11_PAGES * MIFARE_ULTRALIGHT_PAGE_SIZE)
26 #define MIFARE_ULTRALIGHT_EV12_MEM_SIZE (MIFARE_ULTRALIGHT_EV12_PAGES * MIFARE_ULTRALIGHT_PAGE_SIZE)
27 
28 void MifareUltralightAppInit(void);
29 void MifareUltralightEV11AppInit(void);
30 void MifareUltralightEV12AppInit(void);
31 void MifareUltralightAppReset(void);
32 void MifareUltralightAppTask(void);
33 
34 void MifareUltralightCAppInit(void);
35 void MifareUltralightCAppReset(void);
36 
37 uint16_t MifareUltralightAppProcess(uint8_t *Buffer, uint16_t BitCount);
38 
39 void MifareUltralightGetUid(ConfigurationUidType Uid);
40 void MifareUltralightSetUid(ConfigurationUidType Uid);
41 
42 
43 
44 #endif /* MIFAREULTRALIGHT_H_ */