From 852829c4ab597ce137bac4bb9b612fd57b1dd282 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 22 Oct 2005 18:12:48 +0000 Subject: add convenience functions to set lock bits git-svn-id: https://svn.gnumonks.org/trunk/librfid@1553 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/rfid/rfid_protocol_mifare_ul.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/rfid') diff --git a/include/rfid/rfid_protocol_mifare_ul.h b/include/rfid/rfid_protocol_mifare_ul.h index 6cdec22..74972ee 100644 --- a/include/rfid/rfid_protocol_mifare_ul.h +++ b/include/rfid/rfid_protocol_mifare_ul.h @@ -9,7 +9,13 @@ #define MIFARE_UL_RESP_NAK 0x00 #define MIFARE_UL_PAGE_MAX 15 +#define MIFARE_UL_PAGE_LOCK 2 +#define MIFARE_UL_PAGE_OTP 3 struct rfid_protocol rfid_protocol_mful; + +extern int rfid_mful_lock_page(struct rfid_protocol_handle *ph, unsigned int page); +extern int rfid_mful_lock_otp(struct rfid_protocol_handle *ph); + #endif -- cgit v1.2.3