Release v4.13441 - midsummer
[RRG-proxmark3.git] / client / src / cmdhflegic.h
blob379ae13c7e81ccff6c85bf28cd92d8d7787adf2c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
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 // High frequency Legic commands
9 //-----------------------------------------------------------------------------
11 #ifndef CMDHFLEGIC_H__
12 #define CMDHFLEGIC_H__
14 #include "common.h"
16 #include "legic.h" // struct
18 int CmdHFLegic(const char *Cmd);
20 int readLegicUid(bool loop, bool verbose);
21 int legic_print_type(uint32_t tagtype, uint8_t spaces);
22 int legic_get_type(legic_card_select_t *card);
23 void legic_chk_iv(uint32_t *iv);
24 void legic_seteml(uint8_t *src, uint32_t offset, uint32_t numofbytes);
25 int legic_read_mem(uint32_t offset, uint32_t len, uint32_t iv, uint8_t *out, uint16_t *outlen);
27 #endif