SmartCardDriverManager::registerCardDriver()

Register a smart card driver.

Synopsis:

#include <smartcard_spi/SmartCardDriverManager.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardDriverManager::registerCardDriver(const sc_card_name_t &cardName, const AtrString &atr, const AtrString &atrMask, SmartCardDriver *smartCardDriver)=0

Since:

BlackBerry 10.3.0

Arguments:

cardName

The smart card name.

atr

The Answer to Reset (ATR) of the card supported by this driver.

atrMask

The ATR mask that will be used to match the provided ATR against the card ATR.

smartCardDriver

The smart card factory implementation provided by the driver; must not be NULL.

Library:

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

Description:

This function registers a smart card driver. The smart card framework will maintain a pointer to the provided factory. It is expected that the factory object will not be deleted until the instance is destroyed, and this will typically occur when the driver process terminates.

Returns:

If successful, SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus