first beta - patch sent to librfid list
[rfid/librfid.git] / include / librfid / rfid_protocol_mifare_ul.h
1 #ifndef _RFID_PROTOCOL_MFUL_H
2 #define _RFID_PROTOCOL_MFUL_H
3
4 int rfid_mful_lock_page(struct rfid_protocol_handle *ph, unsigned int page);
5 int rfid_mful_lock_otp(struct rfid_protocol_handle *ph);
6
7 #define MIFARE_UL_PAGE_MAX      15
8
9 #ifdef __LIBRFID__
10
11 #define MIFARE_UL_CMD_WRITE     0xA2
12 #define MIFARE_UL_CMD_READ      0x30
13
14 #define MIFARE_UL_RESP_ACK      0x0a
15 #define MIFARE_UL_RESP_NAK      0x00
16
17 #define MIFARE_UL_PAGE_LOCK     2
18 #define MIFARE_UL_PAGE_OTP      3
19
20 extern struct rfid_protocol rfid_protocol_mful;
21
22 #endif /* __LIBRFID__ */
23
24 #endif