An enumeration of IFD ICC states, which may be used for capability tags.
Synopsis:
#include <smartcard_spi/SmartCardDataTypes.hpp>
enum {
TAG_ICC_PRESENCE = 0x0300
TAG_ICC_INTERFACE_STATUS = 0x0301
TAG_ICC_ATR_STRING = 0x0303
TAG_ICC_TYPE = 0x0304
};
Data:
- TAG_ICC_PRESENCE
- The ICC presence status.
- 0 = The card is not present.
- 1 = The card is present but is not swallowed (applies only if the IFD supports ICC swallowing).
- 2 = The card is present. If the IFD supports ICC swallowing, then the card is also swallowed.
- 3 = The card is confiscated.
- TAG_ICC_INTERFACE_STATUS
- The ICC interface status.
- 0 = The contact is inactive.
- 1 = The contact is active.
- TAG_ICC_ATR_STRING
- Contains the ATR string as returned by the IFD subsystem.
- TAG_ICC_TYPE
- The ICC type.
The value should be ISO/IEC card or unknown
- 0 = The ICC type is unknown.
- 1 = 7816 Asynchronous
- 2 = 7816 Synchronous (unspecified)
- 3 = 7816-10 Synchronous (Type 1)
- 4 = 7816-10 Synchronous (Type 2)
- 5 = 14443 (Type A)
- 6 = 14443 (Type B)
- 7 = ISO 15693
- Other values RFU
Library:
libscs (For the qcc command, use the -l scs option
to link against this library)