1 #ifndef _RFID_PROTOCOL_MFUL_H
2 #define _RFID_PROTOCOL_MFUL_H
4 #include <rfid/rfid_protocol.h>
6 #define MIFARE_UL_CMD_WRITE 0xA2
7 #define MIFARE_UL_CMD_READ 0x30
9 #define MIFARE_UL_RESP_ACK 0x0a
10 #define MIFARE_UL_RESP_NAK 0x00
12 #define MIFARE_UL_PAGE_MAX 15
13 #define MIFARE_UL_PAGE_LOCK 2
14 #define MIFARE_UL_PAGE_OTP 3
16 struct rfid_protocol rfid_protocol_mful;
19 int rfid_mful_lock_page(struct rfid_protocol_handle *ph, unsigned int page);
20 int rfid_mful_lock_otp(struct rfid_protocol_handle *ph);