F_Ex_Apdu - Unitech MR350 MKII Software Manual

Data collection terminal
Hide thumbs Also See for MR350 MKII:
Table of Contents

Advertisement

3.8 F_EX_APDU

This function call exchanges APDU command with Smart Card and returns the card' s response.
Compatible with ISO7816 or Gemplus command set
No
Function call
void F_EX_APDU( S_EX_APDU* );
Data structure of S_EX_APDU
typedef struct
{
int InLen;
unsigned char InApdu[MaxAPDU];
int OutLen;
unsigned char OutApdu[MaxAPDU];
int OutReady;
int SwOffset;
} S_EX_APDU;
Input parameter :
InLen
InApdu[]
Output parameter : This function updates the following parameters.
OutReady
OutLen
OutApdu[]
SwOffset
: holds the number of APDU byte to send to Smart Card.
; APDU command to send to Smart Card.
: 0 = OK
1 = Timeout
; 3 = EDC error
5 = Parity error
:The number of response byte.
:Response data from Smart Card.
:Status word(SW1,SW2) start from Out_apdu[Sw_offset].
// header+MAX 255 byte
2 = No card
18

Advertisement

Table of Contents
loading

Table of Contents