Changeset 3120 for trunk/reader-seca.c
- Timestamp:
- 09/21/10 11:51:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-seca.c
r3023 r3120 6 6 { 7 7 def_resp; 8 staticuchar ins12[] = { 0xc1, 0x12, 0x00, 0x00, 0x19 }; // get provider info8 uchar ins12[] = { 0xc1, 0x12, 0x00, 0x00, 0x19 }; // get provider info 9 9 int year, month, day; 10 10 struct tm *lt; … … 51 51 def_resp; 52 52 char *card; 53 staticunsigned short pmap=0; // provider-maptable53 unsigned short pmap=0; // provider-maptable 54 54 unsigned long long serial ; 55 55 uchar buf[256]; 56 static uchar ins0e[] = { 0xc1, 0x0e, 0x00, 0x00, 0x08 }; // get serial number (UA)57 static uchar ins16[] = { 0xc1, 0x16, 0x00, 0x00, 0x07 }; // get nr. of prividers56 static const uchar ins0e[] = { 0xc1, 0x0e, 0x00, 0x00, 0x08 }; // get serial number (UA) 57 static const uchar ins16[] = { 0xc1, 0x16, 0x00, 0x00, 0x07 }; // get nr. of prividers 58 58 int i; 59 59 … … 61 61 // c1 30 00 01 09 62 62 // 00 00 00 00 00 00 00 00 ff 63 static uchar ins30[] = { 0xc1, 0x30, 0x00, 0x01, 0x09 };64 static uchar ins30data[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff };63 static const uchar ins30[] = { 0xc1, 0x30, 0x00, 0x01, 0x09 }; 64 static const uchar ins30data[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff }; 65 65 66 66 buf[0]=0x00; … … 295 295 296 296 def_resp; 297 static unsigned char ins34[] = { 0xc1, 0x34, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00 }; //data following is provider Package Bitmap Records298 staticunsigned char ins32[] = { 0xc1, 0x32, 0x00, 0x00, 0x20 }; // get PBM297 static const unsigned char ins34[] = { 0xc1, 0x34, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00 }; //data following is provider Package Bitmap Records 298 unsigned char ins32[] = { 0xc1, 0x32, 0x00, 0x00, 0x20 }; // get PBM 299 299 int prov; 300 300
Note:
See TracChangeset
for help on using the changeset viewer.