btparser/cparser/tests/exp_lex/Mifare4kTemplate.bt

36 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-06-05 21:47:15 +08:00
1:
2:
3:
4:
5:
6:
7:
8: struct FILE {
9: struct Manufacturer_block {
10: char Card_UID [ 4 ] < fgcolor = cDkGreen > ;
11: char LRC [ 1 ] < fgcolor = cDkRed > ;
12: char Internal [ 11 ] < fgcolor = cWhite > ;
13: char Data [ 32 ] ;
14: char Key_A [ 6 ] < bgcolor = cDkGray , fgcolor = cLtRed > ;
15: char Access_Bits [ 3 ] < bgcolor = cDkGray , fgcolor = cWhite > ;
16: char GPB [ 1 ] < bgcolor = cDkGray , fgcolor = cLtBlue > ;
17: char Key_B [ 6 ] < bgcolor = cDkGray , fgcolor = cYellow > ;
18: } manufacturer_block ;
19:
20: struct Sec_4blk {
21: char Data [ 48 ] ;
22: char Key_A [ 6 ] < bgcolor = cDkGray , fgcolor = cLtRed > ;
23: char Access_Bits [ 3 ] < bgcolor = cDkGray , fgcolor = cWhite > ;
24: char GPB [ 1 ] < bgcolor = cDkGray , fgcolor = cLtBlue > ;
25: char Key_B [ 6 ] < bgcolor = cDkGray , fgcolor = cYellow > ;
26: } sec_4blk [ 31 ] ;
27:
28: struct Sec_16blk {
29: char Data [ 240 ] ;
30: char Key_A [ 6 ] < bgcolor = cDkGray , fgcolor = cLtRed > ;
31: char Access_Bits [ 3 ] < bgcolor = cDkGray , fgcolor = cWhite > ;
32: char GPB [ 1 ] < bgcolor = cDkGray , fgcolor = cLtBlue > ;
33: char Key_B [ 6 ] < bgcolor = cDkGray , fgcolor = cYellow > ;
34: } sec_16blk [ 8 ] ;
35:
36: } file < bgcolor = cSilver > ; tok_eof