> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/modules/group__sdinfc.md).

# SDI client NFC interface

[Data Structures](#nested-classes) | [Functions](#func-members)

|                 |                                                                                |
| --------------- | ------------------------------------------------------------------------------ |
| Data Structures |                                                                                |
| struct          | [SDIClient::NFCCardCount](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_count) |
| struct          | [SDIClient::NFCCard](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card)            |
| struct          | [SDIClient::NFCCardExt](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_ext)     |

|           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| int       | [nfcInit](#ga90c57226b537a74b5c9357df70bfc1a2) (unsigned char conn\_type)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| int       | [nfcPing](#ga3fc70eebef2f49bd93d0ab7bb08f6378) ([bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&raw)                                                                                                                                                                                                                                                                                                                                                                                                                               |
| int       | [nfcGetVersion](#ga50992a2eed938a4b17e1643d115d2beb) (std::string \&version)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| int       | [nfcConfigInit](#gab52bb0d6ab152dbf267370bf2fe6bf84) ()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| int       | [nfcOpen](#gae1a17e48bafbed18e7ddf35594ddb7b3) ()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| int       | [nfcClose](#gacc97d09c5adc4930391f51fd3d5e1958) ()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| int       | [nfcFieldOn](#ga6c023513763ed591ab3d0cd6891b54ae) ()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| int       | [nfcFieldOff](#ga4e07c4d5452cffc8896ec366538a7113) ()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| int       | [nfcFieldPolling](#ga481592aaac8fdb0cf2cf7e92906eaee9) (unsigned tech\_bm, unsigned timeout, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&in, unsigned char \&return\_code, [NFCCardCount](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_count) \&card\_count, [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&out, std::vector< [NFCCard](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card) > \&cards)           |
| int       | [nfcFieldPollingExt](#ga0f773a1596af025b096deb3f5367303b) (unsigned tech\_bm, unsigned timeout, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&in, unsigned char \&return\_code, [NFCCardCount](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_count) \&card\_count, [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&out, std::vector< [NFCCardExt](#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_ext) > \&cards) |
| int       | [nfcFieldCancelPolling](#ga6a60efabb56ef2499dc99c3543e5bf16) ()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| int       | [nfcFieldActivation](#ga2c7c386897d84e93c119bec795c7c31b) (unsigned modulation, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&info)                                                                                                                                                                                                                                                                                                                                                                                        |
| int       | [nfcFtechBaud](#ga6db25cbe2c6ab6c94b4d48b5993186a4) (unsigned char baud)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| int       | [nfcMifareAuthenticate](#ga5f11c79e6891f87fe57a141a1f12dfff) (unsigned char blocknum, unsigned char keytype, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&key)                                                                                                                                                                                                                                                                                                                                                            |
| int       | [nfcMifareRead](#gafbd29075a9072ebb220b906c651f0491) (unsigned char type, unsigned char startblock, unsigned char blockcount, [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&out)                                                                                                                                                                                                                                                                                                                                                 |
| int       | [nfcMifareWrite](#ga20d7cccce43865ff57d3bab82019c6cc) (unsigned char type, unsigned char startblock, unsigned char blockcount, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&in)                                                                                                                                                                                                                                                                                                                                           |
| int       | [nfcMifareIncrement](#gaa2dfd7a1663696da6e08d83e36720c4d) (unsigned char block, unsigned char [value](/s-adk-5.1-programmers-guide/readme/files/dir_30aba3d9bf6279a25d84abe4015711f7/dir_f7a957c8f5c8e80b5a8d4b37f193d419/dir_e8da2933844aa72825eccee783cf08f3/_web_service_wrappers_8c.md#a6e248376c0290338633d8137822eb209))                                                                                                                                                                                                                                                                                                                |
| int       | [nfcMifareDecrement](#ga808a470b1bdfd6ecba40a74ab01c3271) (unsigned char block, unsigned char [value](/s-adk-5.1-programmers-guide/readme/files/dir_30aba3d9bf6279a25d84abe4015711f7/dir_f7a957c8f5c8e80b5a8d4b37f193d419/dir_e8da2933844aa72825eccee783cf08f3/_web_service_wrappers_8c.md#a6e248376c0290338633d8137822eb209))                                                                                                                                                                                                                                                                                                                |
| int       | [nfcMifareIncrementOnly](#ga5d1a0b3c3c8c1657a4010c90e792515d) (unsigned char block, unsigned char [value](/s-adk-5.1-programmers-guide/readme/files/dir_30aba3d9bf6279a25d84abe4015711f7/dir_f7a957c8f5c8e80b5a8d4b37f193d419/dir_e8da2933844aa72825eccee783cf08f3/_web_service_wrappers_8c.md#a6e248376c0290338633d8137822eb209))                                                                                                                                                                                                                                                                                                            |
| int       | [nfcMifareDecrementOnly](#gadf248f668829a0e45410d8da4df35a3a) (unsigned char block, unsigned char [value](/s-adk-5.1-programmers-guide/readme/files/dir_30aba3d9bf6279a25d84abe4015711f7/dir_f7a957c8f5c8e80b5a8d4b37f193d419/dir_e8da2933844aa72825eccee783cf08f3/_web_service_wrappers_8c.md#a6e248376c0290338633d8137822eb209))                                                                                                                                                                                                                                                                                                            |
| int       | [nfcMifareRestore](#ga79b9623744e2f7e68caf915ef64b881e) (unsigned char block)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| int       | [nfcMifareTransfer](#ga2a7c1fff0de7a01610c4ac3b27d58f13) (unsigned char block)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| int       | [nfcFelicaSendReceive](#gae6f8ba4e80589e748b7f4c5da1d2849b) (unsigned timeout, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&in, [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&out)                                                                                                                                                                                                                           |
| int       | [nfcFelicaPolling](#gaaaff9ec57c95708d789871f7b5eb6690) (unsigned poll\_timeout, unsigned recv\_timeout, unsigned short system\_code, unsigned char req\_code, unsigned char time\_slot, [Array](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/structvfisdi_1_1_array.md)< 8 > \&uid, [Array](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/structvfisdi_1_1_array.md)< 8 > \&pad, unsigned short \&system\_code\_out)                                                                                                                                                                  |
| int       | [nfcApduSendReceive](#gae418dc534ceeabbb6117dea269f6fc99) (const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&in, [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&out, unsigned short \&cardsw1sw2)                                                                                                                                                                                                                  |
| int       | [nfcTxRx](#gacd1f1f0cfd1cc09b87adcc25db707d0b) (unsigned card\_type, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&in, [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&out)                                                                                                                                                                                                                                     |

### DetailedDescription <a href="#detailed-description" id="detailed-description"></a>

***

### DataStructure Documentation <a href="#data-structure-documentation" id="data-structure-documentation"></a>

### vfisdi::SDIClient::NFCCardCount <a href="#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_count" id="structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_count"></a>

struct vfisdi::SDIClient::NFCCardCount

NFC card counts

|               |            |                                                |
| ------------- | ---------- | ---------------------------------------------- |
| Data Fields   |            |                                                |
| unsigned char | cardACount | total number of cards found (DFDB28)           |
| unsigned char | cardBCount | total number of cards of type A found (DFDB29) |
| unsigned char | cardFCount | total number of cards of type B found (DFDB2A) |
| unsigned char | totalCount |                                                |

### vfisdi::SDIClient::NFCCard <a href="#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card" id="structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card"></a>

struct vfisdi::SDIClient::NFCCard

NFC card type

|                                                                                                                                                          |      |                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | ------------------ |
| Data Fields                                                                                                                                              |      |                    |
| [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) | info | card info (DFDB22) |
| unsigned char                                                                                                                                            | type | card type (DFDB21) |

### vfisdi::SDIClient::NFCCardExt <a href="#structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_ext" id="structvfisdi_1_1_s_d_i_client_1_1_n_f_c_card_ext"></a>

struct vfisdi::SDIClient::NFCCardExt

extended NFC card type

|                                                                                                                                                          |          |                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------ |
| Data Fields                                                                                                                                              |          |                                                  |
| unsigned short                                                                                                                                           | ATQ      |                                                  |
| [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) | info     | card info (DFDB22)                               |
| [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) | RFU      | RFU of the card (DFDB2F)                         |
| unsigned char                                                                                                                                            | SAK      | SAK of the card (DFDB2D)                         |
| unsigned char                                                                                                                                            | type     | card type (DFDB21)                               |
| unsigned                                                                                                                                                 | typeFull | ATQ of the card (DFDB2E) full card type (DFDB27) |

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### nfcApduSendReceive() <a href="#gae418dc534ceeabbb6117dea269f6fc99" id="gae418dc534ceeabbb6117dea269f6fc99"></a>

int nfcApduSendReceive

NFC: Send and receive data using APDU protocol (31-1C)

**Parameters**

\[in] **in** input data (DFA204) \[out] **out** output data (DFA205) \[out] **cardsw1sw2** SW1/SW2 from card (DFA219)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcClose() <a href="#gacc97d09c5adc4930391f51fd3d5e1958" id="gacc97d09c5adc4930391f51fd3d5e1958"></a>

int nfcClose

NFC pass-through: Release L1 driver (31-02)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcConfigInit() <a href="#gab52bb0d6ab152dbf267370bf2fe6bf84" id="gab52bb0d6ab152dbf267370bf2fe6bf84"></a>

int nfcConfigInit

Initialize NFC configuration (31-12)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFelicaPolling() <a href="#gaaaff9ec57c95708d789871f7b5eb6690" id="gaaaff9ec57c95708d789871f7b5eb6690"></a>

int nfcFelicaPolling

Felica: Polling request (31-14)

**Parameters**

\[in] **poll\_timeout** poll timeout (DFA211) \[in] **recv\_timeout** receive timeout (DFA212) \[in] **system\_code** system code (DFA213) \[in] **req\_code** request code (DFA214) \[in] **time\_slot** time slot (DFA215) \[out] **uid** UID (DFA216) \[out] **pad** PAD (DFA217) \[out] **system\_code\_out** system code (DFA213)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFelicaSendReceive() <a href="#gae6f8ba4e80589e748b7f4c5da1d2849b" id="gae6f8ba4e80589e748b7f4c5da1d2849b"></a>

int nfcFelicaSendReceive

Felica: Send and receive raw data (31-0F)

**Parameters**

\[in] **timeout** timeout (DFA218) \[in] **in** input data (DFA206) \[out] **out** output data (DFA206)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFieldActivation() <a href="#ga2c7c386897d84e93c119bec795c7c31b" id="ga2c7c386897d84e93c119bec795c7c31b"></a>

int nfcFieldActivation

NFC pass-through: Activate (select) the card found during polling

**Parameters**

\[in] **modulation** NFC card type / modulation (DFDB21) \[in] **info** NFC card info (DFDB22)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFieldCancelPolling() <a href="#ga6a60efabb56ef2499dc99c3543e5bf16" id="ga6a60efabb56ef2499dc99c3543e5bf16"></a>

int nfcFieldCancelPolling

NFC pass-throuhg: Cancel polling process (31-06)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFieldOff() <a href="#ga4e07c4d5452cffc8896ec366538a7113" id="ga4e07c4d5452cffc8896ec366538a7113"></a>

int nfcFieldOff

NFC pass-through: Turn RF field off (31-04)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFieldOn() <a href="#ga6c023513763ed591ab3d0cd6891b54ae" id="ga6c023513763ed591ab3d0cd6891b54ae"></a>

int nfcFieldOn

NFC pass-through: Turn RF field on (31-03)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFieldPolling() <a href="#ga481592aaac8fdb0cf2cf7e92906eaee9" id="ga481592aaac8fdb0cf2cf7e92906eaee9"></a>

int nfcFieldPolling

NFC pass-through: Open the field and execute polling loop (31-05)

**Parameters**

\[in] **tech\_bm** technology bitmap (NFCPollingBitmap) (DFA202) \[in] **timeout** poll timeout (DFA203) \[in] **in** custom data (DFA207) \[out] **return\_code** NFC return code (DFAB20) \[out] **card\_count** number of cards found \[out] **out** custom poll result (DFDB2C) \[out] **cards** detected cards (FFDB20)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcFieldPollingExt() <a href="#ga0f773a1596af025b096deb3f5367303b" id="ga0f773a1596af025b096deb3f5367303b"></a>

int nfcFieldPollingExt

NFC pass-through: Open the field and execute polling loop (31-13)

**Parameters**

\[in] **tech\_bm** technology bitmap (NFCPollingBitmap) (DFA202) \[in] **timeout** poll timeout (DFA203) \[in] **in** custom data (DFA207) \[out] **return\_code** NFC return code (DFAB20) \[out] **card\_count** number of cards found \[out] **out** custom poll result (DFDB2C) \[out] **cards** detected cards (FFDB20)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066)) (<=0)

### nfcFtechBaud() <a href="#ga6db25cbe2c6ab6c94b4d48b5993186a4" id="ga6db25cbe2c6ab6c94b4d48b5993186a4"></a>

int nfcFtechBaud

NFC pass-through: Change NFC-F baud rate

**Parameters**

\[in] **baud** baud rate: 0=INF\_BAUD212, 1=INF\_BAUD424

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcGetVersion() <a href="#ga50992a2eed938a4b17e1643d115d2beb" id="ga50992a2eed938a4b17e1643d115d2beb"></a>

int nfcGetVersion

Return NFC version information (31-11)

**Parameters**

\[out] **version** build and kernel versions in JSON format

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcInit() <a href="#ga90c57226b537a74b5c9357df70bfc1a2" id="ga90c57226b537a74b5c9357df70bfc1a2"></a>

int nfcInit

Initialize NFC client (31-10)

**Parameters**

\[in] **conn\_type** connection type: 0=CL\_TYPE\_CLIENT\_SERVER, 1=CL\_TYPE\_FUNCTION

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareAuthenticate() <a href="#ga5f11c79e6891f87fe57a141a1f12dfff" id="ga5f11c79e6891f87fe57a141a1f12dfff"></a>

int nfcMifareAuthenticate

Mifare: Authenticate block number with key (31-0A)

**Parameters**

\[in] **blocknum** block number (DFA208) \[in] **keytype** key type (DFA209) \[in] **key** key (DFA20A)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareDecrement() <a href="#ga808a470b1bdfd6ecba40a74ab01c3271" id="ga808a470b1bdfd6ecba40a74ab01c3271"></a>

int nfcMifareDecrement

Mifare: Decrement value of block (31-0E)

**Parameters**

\[in] **block** block number (DFA208) \[in] **value** decrement value (DFA210)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareDecrementOnly() <a href="#gadf248f668829a0e45410d8da4df35a3a" id="gadf248f668829a0e45410d8da4df35a3a"></a>

int nfcMifareDecrementOnly

Mifare: Decrement value of block (31-16)

**Parameters**

\[in] **block** block number (DFA208) \[in] **value** decrement value (DFA210)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareIncrement() <a href="#gaa2dfd7a1663696da6e08d83e36720c4d" id="gaa2dfd7a1663696da6e08d83e36720c4d"></a>

int nfcMifareIncrement

Mifare: Increment value of block (31-0D)

**Parameters**

\[in] **block** block number (DFA208) \[in] **value** increment value (DFA210)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareIncrementOnly() <a href="#ga5d1a0b3c3c8c1657a4010c90e792515d" id="ga5d1a0b3c3c8c1657a4010c90e792515d"></a>

int nfcMifareIncrementOnly

Mifare: Increment value of block (31-15)

**Parameters**

\[in] **block** block number (DFA208) \[in] **value** increment value (DFA210)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareRead() <a href="#gafbd29075a9072ebb220b906c651f0491" id="gafbd29075a9072ebb220b906c651f0491"></a>

int nfcMifareRead

Mifare: Read *blockcount* blocks of data starting from block *startblock* (31-0B)

**Parameters**

\[in] **type** Mifare card type (DFA20B) \[in] **startblock** start block (DFA20C) \[in] **blockcount** number of blocks to read (up to 15) (DFA20D) \[out] **out** output data (DFA20E)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareRestore() <a href="#ga79b9623744e2f7e68caf915ef64b881e" id="ga79b9623744e2f7e68caf915ef64b881e"></a>

int nfcMifareRestore

Mifare: Restore a value block to transfer buffer (31-18)

**Parameters**

\[in] **block** block number (DFA208)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareTransfer() <a href="#ga2a7c1fff0de7a01610c4ac3b27d58f13" id="ga2a7c1fff0de7a01610c4ac3b27d58f13"></a>

int nfcMifareTransfer

Mifare: Store a value block from transfer buffer (31-17)

**Parameters**

\[in] **block** block number (DFA208)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcMifareWrite() <a href="#ga20d7cccce43865ff57d3bab82019c6cc" id="ga20d7cccce43865ff57d3bab82019c6cc"></a>

int nfcMifareWrite

Mifare: Write *blockcount* blocks of data starting from block *startblock* (31-0C)

**Parameters**

\[in] **type** Mifare card type (DFA20B) \[in] **startblock** start block (DFA20C) \[in] **blockcount** number of blocks to read (up to 15) (DFA20D) \[in] **in** input data (DFA20F)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcOpen() <a href="#gae1a17e48bafbed18e7ddf35594ddb7b3" id="gae1a17e48bafbed18e7ddf35594ddb7b3"></a>

int nfcOpen

NFC pass-through: Initialize L1 driver (31-01)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcPing() <a href="#ga3fc70eebef2f49bd93d0ab7bb08f6378" id="ga3fc70eebef2f49bd93d0ab7bb08f6378"></a>

int nfcPing

Return NFC framework state of the NFC framework (31-00)

**Parameters**

\[out] **raw** NFC framework state: 1=IDLE, 2=BUSY

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### nfcTxRx() <a href="#gacd1f1f0cfd1cc09b87adcc25db707d0b" id="gacd1f1f0cfd1cc09b87adcc25db707d0b"></a>

int nfcTxRx

NFC: Send and receive raw data usingISO 14443-3 protocol (31-08)

**Parameters**

\[in] **card\_type** NFC card type (DFDB21) \[in] **in** input data (DFA206) \[out] **out** output data (DFA206)

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/modules/group__sdinfc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
