PCSC HAL component. More...

Modules | |
| Instruction | |
| PCSC command functions. | |
Data Structures | |
| struct | phhalHw_Pcsc_DataParams_t |
| PCSC HAL component. More... | |
Macros | |
| #define | PHHAL_HW_PCSC_ID 0x11U |
| ID for PCSC HAL component. | |
Functions | |
| phStatus_t | phhalHw_Pcsc_Init (phhalHw_Pcsc_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pBalDataParams, void *pKeyStoreDataParams, uint8_t *pTxBuffer, uint16_t wTxBufSize, uint8_t *pRxBuffer, uint16_t wRxBufSize) |
| Initializes the PCSC HAL component. More... | |
PCSC specific set/get configurations. | |
| #define | PHHAL_HW_PCSC_CONFIG_FSDI (PH_CONFIG_CUSTOM_BEGIN + 0x01U) |
| Frame size for IFD Integer (FSDI). | |
| #define | PHHAL_HW_PCSC_CONFIG_FSCI (PH_CONFIG_CUSTOM_BEGIN + 0x02U) |
| Frame size for ICC Integer (FSCI). | |
| #define | PHHAL_HW_PCSC_CONFIG_FWTI (PH_CONFIG_CUSTOM_BEGIN + 0x03U) |
| Frame waiting Time Integer (FWTI) of the current ICC. | |
| #define | PHHAL_HW_PCSC_CONFIG_MAX_SPEED (PH_CONFIG_CUSTOM_BEGIN + 0x04U) |
| Maximum communication speed supported by the IFD. | |
| #define | PHHAL_HW_PCSC_CONFIG_CURRENT_SPEED (PH_CONFIG_CUSTOM_BEGIN + 0x05U) |
| Communication speed is set or will be set for the current ICC. | |
| #define | PHHAL_HW_PCSC_CONFIG_MOD_INDEX (PH_CONFIG_CUSTOM_BEGIN + 0x06U) |
| Modulation index (can be used for all ICCs, where modulation index is required). | |
| #define | PHHAL_HW_PCSC_CONFIG_PCB (PH_CONFIG_CUSTOM_BEGIN + 0x07U) |
| PCB for ISO/IEC 14443. | |
| #define | PHHAL_HW_PCSC_CONFIG_CID (PH_CONFIG_CUSTOM_BEGIN + 0x08U) |
| CID for ISO/IEC 14443. | |
| #define | PHHAL_HW_PCSC_CONFIG_NAD (PH_CONFIG_CUSTOM_BEGIN + 0x09U) |
| NAD for ISO/IEC 14443. | |
| #define | PHHAL_HW_PCSC_CONFIG_DATA_CODING (PH_CONFIG_CUSTOM_BEGIN + 0x0BU) |
| Data coding (IFD to ICC) for ISO/IEC 15693. | |
| #define | PHHAL_HW_PCSC_CONFIG_EXCHANGE (PH_CONFIG_CUSTOM_BEGIN + 0x0CU) |
| Set/Get HAL exchange.type; PHHAL_HW_PCSC_TRANSPARENT or PHHAL_HW_PCSC_NORMAL (default). | |
| #define | PHHAL_HW_PCSC_CONFIG_STATUS_BYTES (PH_CONFIG_CUSTOM_BEGIN + 0x0DU) |
| Get error status code (SW1 SW2). | |
| #define | PHHAL_HW_PCSC_CONFIG_KEY_LOCATION (PH_CONFIG_CUSTOM_BEGIN + 0x0EU) |
| Key location for PCSC load key command (PHHAL_HW_PCSC_KEY_LOC_VOLATILE or PHHAL_HW_PCSC_KEY_LOC_NONVOLATILE). | |
PCSC Communication modes. | |
| #define | PHHAL_HW_PCSC_TRANSPARENT 0U |
| Exchange using PCSC transparent exchange command phhalHw_Pcsc_Cmd_Transceive. | |
| #define | PHHAL_HW_PCSC_NORMAL 1U |
| Exchange the data as it is; No formatting done by HAL; Just calls BAL exchange. | |
PCSC HAL component.
| phStatus_t phhalHw_Pcsc_Init | ( | phhalHw_Pcsc_DataParams_t * | pDataParams, |
| uint16_t | wSizeOfDataParams, | ||
| void * | pBalDataParams, | ||
| void * | pKeyStoreDataParams, | ||
| uint8_t * | pTxBuffer, | ||
| uint16_t | wTxBufSize, | ||
| uint8_t * | pRxBuffer, | ||
| uint16_t | wRxBufSize | ||
| ) |
Initializes the PCSC HAL component.
This function has to be called as part of the initialization of the HAL layer of the application that intends to use any PCSC reader.
| [in] | pDataParams | [In] Pointer to data parameter of this HAL layer. |
| [in] | wSizeOfDataParams | [In] Size of the data parameter passed. |
| [in] | pBalDataParams | [In] Pointer to BAL parameter structure. |
| [in] | pKeyStoreDataParams | [In] Pointer to Key Store parameter structure. |
| [in] | pTxBuffer | [In] Pointer to global transmit buffer that will be used by Exchange(). |
| [in] | wTxBufSize | [In] size of the global transmit buffer. |
| [in] | pRxBuffer | [In] Pointer to global receive buffer that will be used by Exchange(). |
| [in] | wRxBufSize | [In] Size of the global receive buffer. |