1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Hitag 2 type prototyping
17 //-----------------------------------------------------------------------------
25 void SniffHitag2(bool ledcontrol
);
26 void hitag_sniff(void);
27 void SimulateHitag2(bool ledcontrol
);
28 void ReaderHitag(const lf_hitag_data_t
*payload
, bool ledcontrol
);
29 void WriterHitag(const lf_hitag_data_t
*payload
, bool ledcontrol
);
31 bool ht2_packbits(uint8_t *nrz_samples
, size_t nrzs
, uint8_t *rx
, size_t *rxlen
);
32 int ht2_read_uid(uint8_t *uid
, bool ledcontrol
, bool send_answer
, bool keep_field_up
);
33 int ht2_tx_rx(uint8_t *tx
, size_t txlen
, uint8_t *rx
, size_t *rxlen
, bool ledcontrol
, bool keep_field_up
);