Defines the Command APDU structure. More...
#include <SmartCardConnection.h>
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. | |
Defines the Command APDU structure.
| 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
| 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.
| 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.
| BYTE USCAPI::CCommandAPDU::pbtData[1000] |
Data field.
1.6.3