Changeset 1235
- Timestamp:
- 01/15/10 11:28:21 (11 years ago)
- Location:
- trunk/csctapi
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_towitoko.c
r1234 r1235 164 164 165 165 #ifdef DEBUG_IFD 166 printf ("IFD: Initializing slot number %d, com=%d\n", slot, io->reader_type);166 printf ("IFD: Initializing slot number %d, com=%d\n", slot, reader[ridx].typ); 167 167 #endif 168 168 … … 171 171 return IFD_TOWITOKO_PARAM_ERROR; 172 172 173 if( io->reader_type==R_INTERNAL)173 if(reader[ridx].typ == R_INTERNAL) 174 174 { 175 175 ifd->io = io; … … 256 256 int IFD_Towitoko_SetBaudrate (IFD * ifd, unsigned long baudrate) 257 257 { 258 if( ifd->io->reader_type==R_INTERNAL)258 if(reader[ridx].typ == R_INTERNAL) 259 259 { 260 260 return IFD_TOWITOKO_OK; … … 283 283 int IFD_Towitoko_GetBaudrate (IFD * ifd, unsigned long *baudrate) 284 284 { 285 if( ifd->io->reader_type==R_INTERNAL)285 if(reader[ridx].typ == R_INTERNAL) 286 286 { 287 287 return IFD_TOWITOKO_OK; … … 299 299 extern int IFD_Towitoko_SetParity (IFD * ifd, BYTE parity) 300 300 { 301 if( ifd->io->reader_type==R_INTERNAL)301 if(reader[ridx].typ == R_INTERNAL) 302 302 { 303 303 return IFD_TOWITOKO_OK; … … 334 334 #endif 335 335 #ifdef SCI_DEV 336 if( ifd->io->reader_type==R_INTERNAL)336 if(reader[ridx].typ == R_INTERNAL) 337 337 { 338 338 int in; … … 372 372 373 373 #ifdef SCI_DEV 374 if( ifd->io->reader_type==R_INTERNAL)374 if(reader[ridx].typ == R_INTERNAL) 375 375 { 376 376 int in; -
trunk/csctapi/io_serial.c
r1234 r1235 171 171 bool IO_Serial_Init (IO_Serial * io, int reader_type) 172 172 { 173 reader[ridx].typ = reader_type; 174 reader[ridx].handle = reader[ridx].handle; 175 176 if (reader_type != R_INTERNAL) 173 if (reader[ridx].typ != R_INTERNAL) 177 174 IO_Serial_InitPnP (io); 178 175 -
trunk/csctapi/io_serial.h
r1234 r1235 64 64 int rts; 65 65 /* end settings that can be modified */ 66 int reader_type;67 66 BYTE PnP_id[IO_SERIAL_PNPID_SIZE]; /* PnP Id of the serial device */ 68 67 unsigned PnP_id_size; /* Length of PnP Id */ -
trunk/csctapi/pps.c
r1234 r1235 432 432 #include "sci_global.h" 433 433 #include "sci_ioctl.h" 434 if( pps->icc->ifd->io->reader_type== R_INTERNAL)434 if(reader[ridx].typ == R_INTERNAL) 435 435 { 436 436 int n; -
trunk/csctapi/protocol_t0.c
r1224 r1235 1001 1001 return PROTOCOL_T14_ERROR; 1002 1002 1003 if (t14->icc->ifd->io->reader_type!=R_INTERNAL)1003 if (reader[ridx].typ != R_INTERNAL) 1004 1004 { 1005 1005 /* Send 0x01 byte */
Note:
See TracChangeset
for help on using the changeset viewer.