Reader states that an application may assign to the current state or event state fields of the sc_reader_state_t instance.
#include <smartcard/sc_data_types.h>
typedef enum
SC_SCARD_STATE_UNAWARE = 0x00000001
SC_SCARD_STATE_IGNORE = 0x00000002
SC_SCARD_STATE_UNAVAILABLE = 0x00000004
SC_SCARD_STATE_EMPTY = 0x00000008
SC_SCARD_STATE_PRESENT = 0x00000010
SC_SCARD_STATE_ATRMATCH = 0x00000020
SC_SCARD_STATE_EXCLUSIVE = 0x00000040
SC_SCARD_STATE_INUSE = 0x00000080
SC_SCARD_STATE_CHANGED = 0x00000100
SC_SCARD_STATE_UNKNOWN = 0x00000200
SC_SCARD_STATE_NOT_CONNECTED = 0x00000400
} sc_reader_state_value_t;
BlackBerry 10.2.0
Using this value results in an immediate return from state transition monitoring services. This is represented by all bits set to zero.
If this bit value is set, all other bits are ignored.
When assigned to the event state, it means that the application requested that this reader be ignored. No other bits will be set.
If this bit is set, then all the following bits are ignored.
When assigned to the event state, it indicates that the actual state of this reader is not available. If this bit is set, then all the following bits are clear.
If this bit is set, all the following bits are ignored.
When assigned to the event state, it means that there is no card in the reader. If this bit is set, all the following bits will be cleared.
When assigned to the event state, this means that there is a card in the reader.
If this bit is set, SC_SCARD_STATE_PRESENT is assumed.
When assigned to the event state, this means that there is a card in the reader with an ATR matching one of the target cards. If this bit is set, SC_SCARD_STATE_PRESENT is also set. This bit is returned only by the sc_locate_cards() function.
If this bit is set, SC_SCARD_STATE_PRESENT is assumed.
When assigned to the event state, this indicates that the card in the reader is allocated for the exclusive use by another application. If this bit is set, SC_SCARD_STATE_PRESENT is also set.
If this bit is set, SC_SCARD_STATE_PRESENT is assumed.
When assigned to the event state, this indicates that the card in the reader is in use by one or more other applications, but may be connected to in shared mode. If this bit is set, SC_SCARD_STATE_PRESENT is also set.
When this bit is set, the application may determine that a significant state change has occurred on this reader.
If this bit is set, then SC_SCARD_STATE_CHANGED is also set.
The application can retrieve or modify the state values by calling API functions that are defined in sc_reader_state.h.