]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/hitag2.h
'lf hitag writer': add Hitag2 password auth
[proxmark3-svn] / armsrc / hitag2.h
index 985b6796108cc9473376226ce7e31c3505623f24..3883c17b954d659d185b6cedc56c27b8542f5d6c 100644 (file)
@@ -1,10 +1,24 @@
-/*
- * Hitag2 emulation public interface
- * 
- * (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
- */
+//-----------------------------------------------------------------------------
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// Hitag2 emulation
+//
+// (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
+// (c) 2012 Roel Verdult
+//-----------------------------------------------------------------------------
 
 
-typedef int (*hitag2_response_callback_t)(const char* response_data, const int response_length, const int fdt, void *cb_cookie);
+#ifndef HITAG2_H__
+#define HITAG2_H__
 
 
-extern int hitag2_init(void);
-extern int hitag2_handle_command(const char* data, const int length, hitag2_response_callback_t cb, void *cb_cookie);
+#include <stdint.h>
+#include <stdbool.h>
+#include "hitag.h"
+
+extern void SnoopHitag(uint32_t type);
+extern void SimulateHitagTag(bool tag_mem_supplied, uint8_t* data);
+extern void ReaderHitag(hitag_function htf, hitag_data* htd);
+extern void WriterHitag(hitag_function htf, hitag_data* htd, int page);
+
+#endif
Impressum, Datenschutz