PC/SC BAL Windows. More...

Data Structures | |
| struct | phbalReg_PcscWin_DataParams_t |
| PCSC (Windows) BAL parameter structure. More... | |
Macros | |
| #define | PHBAL_REG_PCSCWIN_ID 0x06U |
| ID for PCSC BAL component (Win32) | |
Functions | |
| phStatus_t | phbalReg_PcscWin_Init (phbalReg_PcscWin_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, uint8_t *pAtrBuffer, uint16_t wAtrBufSize) |
| Initialise the PCSC BAL component. More... | |
BAL Communication Configs | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 0) |
| Used Protocol; e.g. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_SHARE (PH_CONFIG_CUSTOM_BEGIN + 1) |
| Used Access mode; e.g. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_USE_WARM_ATR (PH_CONFIG_CUSTOM_BEGIN + 2) |
| Define if the warm atr should used. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_CARD_STATE (PH_CONFIG_CUSTOM_BEGIN + 3) |
| Current state of the smart card in the reader. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_ACTIVE_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 4) |
| Get the used Protocol; e.g. More... | |
| #define | PHBAL_REG_PCSCWIN_CONFIG_PEGODA2_MODE (PH_CONFIG_CUSTOM_BEGIN + 5) |
| Define if the Pegoda 2 Mode should used. More... | |
Custom Option Bits: Can be used for \ref phhalHw_Exchange. | |
| #define | PHBAL_REG_PCSCWIN_OPTION_SCARDCONTROL 0x0010U |
| Calls SCardControl with given parameters. More... | |
BAL Communication Configuration values | |
| #define | PHBAL_REG_PCSCWIN_VALUE_PROTOCOL_T0 0x0000U |
| T=0 protocol. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_PROTOCOL_T1 0x0001U |
| T=1 protocol. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_PROTOCOL_RAW 0x0002U |
| RAW protocol. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_PROTOCOL_AUTO 0x0003U |
| Use T=0|T=1|RAW protocol. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_PROTOCOL_UNDEFINED 0x0004U |
| UNDEFINED protocol. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_SHARE_SHARED 0x0000U |
| SHARED access. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_SHARE_EXCLUSIVE 0x0001U |
| EXCLUSIVE access. | |
| #define | PHBAL_REG_PCSCWIN_VALUE_SHARE_DIRECT 0x0002U |
| DIRECT access. | |
PC/SC BAL Windows.
Smartcard Interface.
| #define PHBAL_REG_PCSCWIN_OPTION_SCARDCONTROL 0x0010U |
Calls SCardControl with given parameters.
Make sure pTxBuffer contents are as follows:
| #define PHBAL_REG_PCSCWIN_CONFIG_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 0) |
Used Protocol; e.g.
| #define PHBAL_REG_PCSCWIN_CONFIG_SHARE (PH_CONFIG_CUSTOM_BEGIN + 1) |
Used Access mode; e.g.
| #define PHBAL_REG_PCSCWIN_CONFIG_USE_WARM_ATR (PH_CONFIG_CUSTOM_BEGIN + 2) |
Define if the warm atr should used.
Values: PH_ON, PH_OFF.
| #define PHBAL_REG_PCSCWIN_CONFIG_CARD_STATE (PH_CONFIG_CUSTOM_BEGIN + 3) |
Current state of the smart card in the reader.
See SCardStatus
| #define PHBAL_REG_PCSCWIN_CONFIG_ACTIVE_PROTOCOL (PH_CONFIG_CUSTOM_BEGIN + 4) |
Get the used Protocol; e.g.
| #define PHBAL_REG_PCSCWIN_CONFIG_PEGODA2_MODE (PH_CONFIG_CUSTOM_BEGIN + 5) |
Define if the Pegoda 2 Mode should used.
Values: PH_ON, PH_OFF.
| phStatus_t phbalReg_PcscWin_Init | ( | phbalReg_PcscWin_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams, | ||
| uint8_t * | pAtrBuffer, | ||
| uint16_t | wAtrBufSize | ||
| ) |
Initialise the PCSC BAL component.
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS | Parameter structure size is invalid. |
| PH_ERR_INVALID_PARAMETER | wAtrBufSize is invalid. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |
| [in] | pAtrBuffer | [In] Pointer to buffer used for storing the ATR after card activation. |
| [in] | wAtrBufSize | [In] Size of the ATR buffer. |