Merge pull request #2616 from jmichelp/fix14b
[RRG-proxmark3.git] / armsrc / hitagS.h
blob8c49439dcdd7a5a27372a4c540d4c4f3d55a9967
1 //-----------------------------------------------------------------------------
2 // Borrowed initially from https://github.com/Proxmark/proxmark3/pull/167/files
3 // Copyright (C) 2016 Oguzhan Cicek, Hendrik Schwartke, Ralf Spenneberg
4 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
5 //
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // See LICENSE.txt for the text of the license.
17 //-----------------------------------------------------------------------------
18 // HitagS emulation (preliminary test version)
19 //-----------------------------------------------------------------------------
21 #ifndef _HITAGS_H_
22 #define _HITAGS_H_
24 #include "common.h"
25 #include "hitag.h"
27 void hts_simulate(bool tag_mem_supplied, const uint8_t *data, bool ledcontrol);
28 void hts_read(const lf_hitag_data_t *payload, bool ledcontrol);
29 void hts_write_page(const lf_hitag_data_t *payload, bool ledcontrol);
30 void hts_check_challenges(const uint8_t *data, uint32_t datalen, bool ledcontrol);
31 int hts_read_uid(uint32_t *uid, bool ledcontrol, bool send_answer);
32 #endif