CONTROL instruction

The CONTROL instruction allows to encapsulate a SCardControl command through a SCardTransmit stream.

See Direct Protocol through PC/SC for the implementation details.

Command format

Field Value Remark
CLA FF
INS F0
P1 00
P2 CLAss of the Direct INStruction
Lc Length of DataIn
DataIn - INStruction: opcode for the Direct Protocol command
- (optional) Data for the INStruction
At least 1 byte (the INStruction code is mandatory)
Le 00 Can be 0

Response

Field Value
DataOut Response data (if STAtus is OK)
SW 90xx where xx is the STAtus