]>
Commit | Line | Data |
---|---|---|
bd20f8f4 | 1 | //----------------------------------------------------------------------------- |
2 | // (c) 2009 Henryk Plötz <henryk@ploetzli.ch> | |
3 | // | |
4 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, | |
5 | // at your option, any later version. See the LICENSE.txt file for the text of | |
6 | // the license. | |
7 | //----------------------------------------------------------------------------- | |
8 | // Hitag2 emulation public interface | |
9 | //----------------------------------------------------------------------------- | |
2e68bd40 | 10 | |
e30c654b | 11 | #ifndef __HITAG2_H |
12 | #define __HITAG2_H | |
13 | ||
2e68bd40 | 14 | typedef int (*hitag2_response_callback_t)(const char* response_data, const int response_length, const int fdt, void *cb_cookie); |
15 | ||
16 | extern int hitag2_init(void); | |
17 | extern int hitag2_handle_command(const char* data, const int length, hitag2_response_callback_t cb, void *cb_cookie); | |
e30c654b | 18 | |
19 | #endif |