]>
git.zerfleddert.de Git - proxmark3-svn/blob - include/hitagS.h
1 //-----------------------------------------------------------------------------
2 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
3 // at your option, any later version. See the LICENSE.txt file for the text of
5 //-----------------------------------------------------------------------------
6 // HitagS emulation (preliminary test version)
8 // (c) 2016 Oguzhan Cicek, Hendrik Schwartke, Ralf Spenneberg
10 //-----------------------------------------------------------------------------
22 typedef enum PROTO_STATE
{
32 typedef enum TAG_STATE
{
37 HT_WRITING_BLOCK_DATA
} TSATE
;
39 //number of start-of-frame bits
40 typedef enum SOF_TYPE
{
48 PSTATE pstate
; //protocol-state
49 TSATE tstate
; //tag-state
51 uint32_t pages
[16][4];
53 byte_t pwdl0
, pwdl1
, pwdh0
;
58 bool auth
; //0=Plain 1=Auth
59 bool TTFC
; //Transponder Talks first coding. 0=Manchester 1=Biphase
60 int TTFDR
; //data rate in TTF Mode
61 int TTFM
; //the number of pages that are sent to the RWD
62 bool LCON
; //0=con1/2 read write 1=con1 read only and con2 OTP
63 bool LKP
; //0=page2/3 read write 1=page2/3 read only in Plain mode and no access in authenticate mode
65 //0=read write 1=read only
69 bool LCK4
; //page12-15
70 bool LCK3
; //page16-23
71 bool LCK2
; //page24-31
72 bool LCK1
; //page32-47
73 bool LCK0
; //page48-63