SlotLogicalSmartCardReader::transmitToIcc()

Transmit the provided command to the smart card.

Synopsis:

#include <smartcard_spi/SlotLogicalSmartCardReader.hpp>
virtual sc_response_code_t smartcard_spi::SlotLogicalSmartCardReader::transmitToIcc(const SmartCardIoHeader &commandIoHeader, const unsigned char *command, unsigned int commandLength, SmartCardIoHeader &responseIoHeader, unsigned char *response, unsigned int &responseLength)

Since:

BlackBerry 10.3.0

Arguments:

commandIoHeader

The structure of the protocol control information that corresponds to the protocol to use for sending.

command

The command to be sent to the smart card. Must not be NULL.

commandLength

The length of command.

responseIoHeader

The structure of the protocol control information that corresponds to the protocol used to receive data from the ICC.

response

The response to the command received from the smart card. Must not be NULL.

responseLength

The length of response.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

This function transmits the provided command to the smart card.

Returns:

In case of success, SC_IFD_SUCCESS is returned. Otherwise, an error code is returned.