Changeset 2866
- Timestamp:
- 07/26/10 23:58:22 (14 years ago)
- Location:
- trunk/csctapi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/icc_async.c
r2854 r2866 122 122 case R_INTERNAL: 123 123 #ifdef COOL 124 return Cool_Init( );124 return Cool_Init(reader->device); 125 125 #elif SCI_DEV 126 126 #if defined(SH4) || defined(STB04SCI) -
trunk/csctapi/ifd_cool.c
r2561 r2866 17 17 int cardbuflen = 0; 18 18 19 int Cool_Init ( )19 int Cool_Init (char *device) 20 20 { 21 int reader_nb = 0; 21 22 if (cnxt_kal_initialize ()) 22 23 return FALSE; … … 27 28 if (cnxt_smc_init (NULL) != 1) 28 29 return FALSE; 29 30 int reader = 0; 31 if (cnxt_smc_open (&handle, &reader)) 30 31 // this is to stay compatible with olfer config. 32 if(!reader->device) 33 reader_nb=0; 34 else 35 reader_nb=atoi((const char *)&reader->device); 36 if(reader_nb>1) { 37 // there are only 2 readers in the coolstream : 0 or 1 38 cs_log("Coolstream reader device can only be 0 or 1"); 39 return FALSE; 40 } 41 if (cnxt_smc_open (&handle, &reader_nb)) 32 42 return FALSE; 33 43 -
trunk/csctapi/ifd_cool.h
r2556 r2866 6 6 7 7 #include "atr.h" 8 int Cool_Init ( void);8 int Cool_Init (char *device); 9 9 int Cool_Reset (ATR * atr); 10 10 int Cool_Transmit (BYTE * buffer, unsigned size);
Note:
See TracChangeset
for help on using the changeset viewer.