This of module is in charge of handling communication with Smart Cards while conforming to the EMV Level-1 specification.
§ pci_smartcard_config()
int pci_smartcard_config |
( |
SCARD_CONF |
sconf | ) |
|
Configures the Smart Card communication.
- Parameters
-
[in] | sconf | The smart card configuration |
- Returns
- See error codes
§ pci_smartcard_transact_APDU()
int pci_smartcard_transact_APDU |
( |
unsigned char |
APDU_Res[], |
|
|
unsigned int * |
APDU_Res_len, |
|
|
unsigned int |
timeout, |
|
|
unsigned char |
APDU_Req[], |
|
|
unsigned int * |
APDU_Req_len |
|
) |
| |
Performs an APDU exchange with the smart card. This function conforms to the EMV-Level 1 specification.
- Parameters
-
| APDU_Res | The apdu resource |
| APDU_Res_len | The apdu resource length |
[in] | timeout | The timeout |
| APDU_Req | The apdu request |
[in] | APDU_Req_len | The apdu request length |
- Returns
- See error codes
§ pci_smartcard_wait_card_insertion()
int pci_smartcard_wait_card_insertion |
( |
unsigned int |
timeout | ) |
|
Wait for the smart card being inserted.
- Parameters
-
- Returns
- See error codes
§ pci_smartcard_wait_card_removal()
int pci_smartcard_wait_card_removal |
( |
unsigned int |
timeout | ) |
|
Wait for the smart card being removed.
- Parameters
-
- Returns
- See error codes