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 // High frequency Legic commands
17 //-----------------------------------------------------------------------------
19 #ifndef CMDHFLEGIC_H__
20 #define CMDHFLEGIC_H__
24 #include "legic.h" // struct
26 int CmdHFLegic(const char *Cmd
);
28 int readLegicUid(bool loop
, bool verbose
);
29 int legic_print_type(uint32_t tagtype
, uint8_t spaces
);
30 int legic_get_type(legic_card_select_t
*card
);
31 void legic_chk_iv(uint32_t *iv
);
32 void legic_seteml(uint8_t *src
, uint32_t offset
, uint32_t numofbytes
);
33 int legic_read_mem(uint32_t offset
, uint32_t len
, uint32_t iv
, uint8_t *out
, uint16_t *outlen
);