SlotLogicalSmartCardReader::setProtocolParameters()

Set the protocols and protocol parameters that the reader should use.

Synopsis:

#include <smartcard_spi/SlotLogicalSmartCardReader.hpp>
virtual sc_response_code_t smartcard_spi::SlotLogicalSmartCardReader::setProtocolParameters(unsigned int protocolType, IfdPpsParameterSelectionFlag selectionFlags, unsigned char pps1, unsigned char pps2, unsigned char pps3)

Since:

BlackBerry 10.3.0

Arguments:

protocolType

A list of protocol types encoded in the same way as for the TAG_ASYNCHRONOUS_PROTOCOL_TYPES (0x0120) and TAG_SYNCHRONOUS_PROTOCOL_TYPES (0x0126) tags or the special value IFD_DEFAULT_PROTOCOL.

selectionFlags
Indicates which of the optional parameters (pps1, pps2, and pps3), if any, has to be negotiated and included in the request. It is obtained by performing a bitwise OR operation on the following flags:
  • IFD_NEGOTIATE_PPS1
  • IFD_NEGOTIATE_PPS2
  • IFD_NEGOTIATE_PPS3
pps1

An optional protocol parameter.

pps2

An optional protocol parameter.

pps3

An optional protocol parameter.

Library:

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

Description:

This function sets the protocols and protocol parameters that the card reader should use.

Returns:

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