fix const params, logic, casting
[RRG-proxmark3.git] / include / legic.h
blobce816cdf8cfd8ed0fd61f3dd4e97b216574749ca
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
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.
8 //
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 // LEGIC type prototyping
17 //-----------------------------------------------------------------------------
19 #ifndef _LEGIC_H_
20 #define _LEGIC_H_
22 #include "common.h"
24 //-----------------------------------------------------------------------------
25 // LEGIC
26 //-----------------------------------------------------------------------------
27 typedef struct {
28 uint8_t uid[4];
29 uint32_t tagtype;
30 uint8_t cmdsize;
31 uint8_t addrsize;
32 uint16_t cardsize;
33 } PACKED legic_card_select_t;
35 typedef struct {
36 uint16_t offset;
37 uint16_t len;
38 uint8_t iv;
39 uint8_t data[];
40 } PACKED legic_packet_t;
42 // iceman: todo : this should be packed
44 #endif // _LEGIC_H_