Changeset 4135


Ignore:
Timestamp:
12/17/10 13:50:14 (12 years ago)
Author:
dingo35
Message:

icc_async.c Reimplementing 3794 since _network had thought this better through than I

Location:
trunk/csctapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/icc_async.c

    r4133 r4135  
    107107            //copy physical device name and file handle to other slots
    108108            struct s_reader *rdr;
    109 cs_log("DINGO: first_reader = %p", first_reader);
    110109            for (rdr=first_reader; rdr ; rdr=rdr->next) //copy handle to other slots
    111110                if (rdr->typ == R_SC8in1 && rdr != reader) { //we have another sc8in1 reader
     
    949948    if ((reader->protocol_type == ATR_PROTOCOL_TYPE_T1) && (reader->ifsc != DEFAULT_IFSC)) {
    950949        unsigned char rsp[CTA_RES_LEN];
    951         unsigned short * lr = 0;
     950        unsigned short lr=0;
    952951        unsigned char tmp[] = { 0x21, 0xC1, 0x01, 0x00, 0x00 };
    953952        tmp[3] = reader->ifsc; // Information Field size
    954953        tmp[4] = reader->ifsc ^ 0xE1;
    955         Protocol_T1_Command (reader, tmp, sizeof(tmp), rsp, lr);
     954        Protocol_T1_Command (reader, tmp, sizeof(tmp), rsp, &lr);
    956955    }
    957956 return OK;
  • trunk/csctapi/ifd_sci.h

    r4132 r4135  
    77#include "../globals.h"
    88#include "atr.h"
     9int Sci_WriteSettings (struct s_reader * reader, BYTE T, unsigned long fs, unsigned long ETU, unsigned long WWT, unsigned long BWT, unsigned long CWT, unsigned long EGT, unsigned char P, unsigned char I);
    910int Sci_GetStatus (struct s_reader *reader, int * status);
    1011int Sci_Reset (struct s_reader *reader, ATR * atr);
  • trunk/csctapi/protocol_t0.h

    r4132 r4135  
    3232int Protocol_T0_Command (struct s_reader *reader, unsigned char * command, unsigned short command_len, unsigned char * rsp, unsigned short * lr);
    3333int Protocol_T14_ExchangeTPDU (struct s_reader *reader, unsigned char * command, unsigned short command_len, unsigned char * rsp, unsigned short * lr);
     34int Protocol_T1_Command (struct s_reader *reader, unsigned char * command, unsigned short command_len, unsigned char * rsp, unsigned short * lr);
    3435
    3536#endif /* _PROTOCOL_T0_ */
Note: See TracChangeset for help on using the changeset viewer.