USCAPI::CCommandAPDU Class Reference

Defines the Command APDU structure. More...

#include <SmartCardConnection.h>

List of all members.

Public Member Functions

 CCommandAPDU ()
 Default constructor.
 CCommandAPDU (BYTE _cla, BYTE _ins, BYTE _p1, BYTE _p2, BYTE _p3_le)
 Constructor for a read only APDU.
 CCommandAPDU (BYTE _cla, BYTE _ins, BYTE _p1, BYTE _p2, BYTE _p3_lc, BYTE *_pbtData)
 Constructor for a read/write APDU.
 CCommandAPDU (BYTE _cla, BYTE _ins, BYTE _p1, BYTE _p2, BYTE _lc, BYTE *_pbtData, BYTE _le)
 Constructor for a T=1 read/write APDU.
 CCommandAPDU (BYTE *_pbtData, BYTE len)
 ///Constructor for raw protocol APDU
long getAPDU (BYTE *pbtAPDU, int *pLen) const
 gets the APDU buffer
void setData (BYTE *pbtData, int len)
 Set the DATA fiels.

Public Attributes

BYTE cla
 CLAss Byte.
BYTE ins
 INStruction byte.
BYTE p1
 Paramenter 1 byte.
BYTE p2
 Paramente 2 byte.
union {
   BYTE   lc
 Length of data fiels.
   BYTE   p3
 In T=0 protocol, Length of data fiels or Length of expected bytes.
}; 
BYTE pbtData [1000]
 Data field.
BYTE le
 Length of Expected data.

Detailed Description

Defines the Command APDU structure.


Constructor & Destructor Documentation

USCAPI::CCommandAPDU::CCommandAPDU (  ) 

Default constructor.

USCAPI::CCommandAPDU::CCommandAPDU ( BYTE  _cla,
BYTE  _ins,
BYTE  _p1,
BYTE  _p2,
BYTE  _p3_le 
)

Constructor for a read only APDU.

USCAPI::CCommandAPDU::CCommandAPDU ( BYTE  _cla,
BYTE  _ins,
BYTE  _p1,
BYTE  _p2,
BYTE  _p3_lc,
BYTE *  _pbtData 
)

Constructor for a read/write APDU.

USCAPI::CCommandAPDU::CCommandAPDU ( BYTE  _cla,
BYTE  _ins,
BYTE  _p1,
BYTE  _p2,
BYTE  _lc,
BYTE *  _pbtData,
BYTE  _le 
)

Constructor for a T=1 read/write APDU.

USCAPI::CCommandAPDU::CCommandAPDU ( BYTE *  _pbtData,
BYTE  len 
)

///Constructor for raw protocol APDU


Member Function Documentation

long USCAPI::CCommandAPDU::getAPDU ( BYTE *  pbtAPDU,
int *  pLen 
) const

gets the APDU buffer

void USCAPI::CCommandAPDU::setData ( BYTE *  pbtData,
int  len 
)

Set the DATA fiels.


Member Data Documentation

union { ... }

CLAss Byte.

INStruction byte.

Length of data fiels.

Length of Expected data.

Paramenter 1 byte.

Paramente 2 byte.

In T=0 protocol, Length of data fiels or Length of expected bytes.

Data field.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
Generated on Tue Jun 1 15:54:31 2010 for Cryptware Smart Card C++ API by  doxygen 1.6.3