titusstubs.cpp File Reference
#include <sysinfo/sysinfo.h>
Data Structures |
|
| struct | rawData |
| struct | discoveryParams |
| struct | activateParams |
| struct | discoveryResult |
| struct | _cardInfo |
| struct | _pollRes |
| struct | _cardInfoFull |
| struct | _pollResFull |
| struct | _pollReq |
| struct | authenticationResult |
| struct | getServicesResult |
| struct | authenticationParams |
| struct | getServicesParams |
| struct | doVASInput |
| struct | doVASOutput |
| struct | apduTxData |
| struct | apduRxData |
| struct | apduCommand |
| struct | felicaTxData |
| struct | felicaRxData |
| struct | felicaPolling |
| struct | felicaPollingOutput |
| struct | TX_RX_PARAM |
| struct | callbackFlags |
| struct | callbackText |
| struct | callbackLeds |
| struct | callbackBuzzer |
| struct | callbackInfo |
Namespaces |
|
| vfigui | |
Macros |
|
| #define | UNKNOWN 0x00000000 |
| #define | MIFARE_NO_DESFIRE 0x00000001 |
| #define | ULTRALIGHT 0x00000002 |
| #define | MINI 0x00000004 |
| #define | CLASSIC_1K 0x00000008 |
| #define | CLASSIC_4K 0x00000010 |
| #define | DESFIRE_CL1 0x00000020 |
| #define | DESFIRE_CL2 0x00000040 |
| #define | PLUS_2K_SL_1 0x00000080 |
| #define | PLUS_4K_SL_1 0x00000100 |
| #define | PLUS_2K_SL_2 0x00000200 |
| #define | PLUS_4K_SL_2 0x00000400 |
| #define | PLUS_2K_SL_3 0x00000800 |
| #define | PLUS_4K_SL_3 0x00001000 |
| #define | TNP3xxx 0x00002000 |
| #define | SMART_MX_1K_EMULATION 0x00004000 |
| #define | SMART_MX_4K_EMULATION 0x00008000 |
| #define | SMART_MX 0x00010000 |
| #define | APDU_COMPLIANT 0x00020000 |
| #define | NFC_COMPLIANT 0x00040000 |
| #define | ULTRALIGHT_C 0x00080000 |
| #define | ACTION_DECRYPT 1 |
| #define | ACTION_STORE_WALLET_KEYS 3 |
| #define | ACTION_GET_WALLET_KEYS 4 |
| #define | ACTION_GET_TOKEN 5 |
| #define | ACTION_ENCRYPT_TOKEN 6 |
| #define | CALLBACK_MAX_TEXT_SIZE (64) |
Typedefs |
|
| typedef struct _cardInfo | cardInfo |
| typedef struct _pollRes | pollRes |
| typedef struct _cardInfoFull | cardInfoFull |
| typedef struct _pollResFull | pollResFull |
| typedef struct _pollReq | pollReq |
| typedef void() | NfcCallbackFunction(unsigned char *data, size_t dataSizeBytes) |
Data Structure Documentation
◆ rawData
◆ discoveryParams
| struct discoveryParams |
◆ activateParams
◆ discoveryResult
| struct discoveryResult |
◆ _cardInfo
| struct _cardInfo |
◆ _pollRes
| struct _pollRes |
◆ _cardInfoFull
| struct _cardInfoFull |
◆ _pollResFull
| struct _pollResFull |

[legend]
| Data Fields | ||
|---|---|---|
| cardInfoFull * | cards_info_arr | |
| rawData | custom_poll_result | |
| unsigned int | m_foundTargetsA | |
| unsigned int | m_foundTargetsB | |
| unsigned int | m_foundTargetsF | |
| unsigned int | m_foundTargetsTotalCount | |
◆ _pollReq
| struct _pollReq |
◆ authenticationResult
| struct authenticationResult |
◆ getServicesResult
| struct getServicesResult |
◆ authenticationParams
| struct authenticationParams |
◆ getServicesParams
| struct getServicesParams |
◆ doVASInput
| struct doVASInput |

[legend]
| Data Fields | ||
|---|---|---|
| authenticationParams * | pAuthenticationParams | |
| getServicesParams * | pGetServicesParams | |
◆ doVASOutput
| struct doVASOutput |

[legend]
| Data Fields | ||
|---|---|---|
| authenticationResult * | pAuthenticationResult | |
| getServicesResult * | pGetServicesResult | |
◆ apduTxData
| struct apduTxData |
◆ apduRxData
| struct apduRxData |
◆ apduCommand
| struct apduCommand |
◆ felicaTxData
| struct felicaTxData |
◆ felicaRxData
◆ felicaPolling
| struct felicaPolling |
◆ felicaPollingOutput
| struct felicaPollingOutput |
◆ TX_RX_PARAM
| struct TX_RX_PARAM |
◆ callbackFlags
| struct callbackFlags |
◆ callbackText
| struct callbackText |
| Data Fields | ||
|---|---|---|
| char | text[CALLBACK_MAX_TEXT_SIZE] | |
◆ callbackLeds
| struct callbackLeds |
◆ callbackBuzzer
| struct callbackBuzzer |
| Data Fields | ||
|---|---|---|
| callbackBuzzerFrequency | frequency | |
| unsigned int | nTimes | |
| unsigned int | off_ms | |
| unsigned int | on_ms | |
◆ callbackInfo
| struct callbackInfo |

[legend]
| Data Fields | ||
|---|---|---|
| callbackBuzzer | buzzer | |
| callbackFlags | flags | |
| callbackLeds | leds | |
| callbackText | text | |
Macro Definition Documentation
◆ ACTION_DECRYPT
| #define ACTION_DECRYPT 1 |
◆ ACTION_ENCRYPT_TOKEN
| #define ACTION_ENCRYPT_TOKEN 6 |
◆ ACTION_GET_TOKEN
| #define ACTION_GET_TOKEN 5 |
◆ ACTION_GET_WALLET_KEYS
| #define ACTION_GET_WALLET_KEYS 4 |
◆ ACTION_STORE_WALLET_KEYS
| #define ACTION_STORE_WALLET_KEYS 3 |
◆ APDU_COMPLIANT
| #define APDU_COMPLIANT 0x00020000 |
◆ CALLBACK_MAX_TEXT_SIZE
| #define CALLBACK_MAX_TEXT_SIZE (64) |
◆ CLASSIC_1K
| #define CLASSIC_1K 0x00000008 |
◆ CLASSIC_4K
| #define CLASSIC_4K 0x00000010 |
◆ DESFIRE_CL1
| #define DESFIRE_CL1 0x00000020 |
◆ DESFIRE_CL2
| #define DESFIRE_CL2 0x00000040 |
◆ MIFARE_NO_DESFIRE
| #define MIFARE_NO_DESFIRE 0x00000001 |
◆ MINI
| #define MINI 0x00000004 |
◆ NFC_COMPLIANT
| #define NFC_COMPLIANT 0x00040000 |
◆ PLUS_2K_SL_1
| #define PLUS_2K_SL_1 0x00000080 |
◆ PLUS_2K_SL_2
| #define PLUS_2K_SL_2 0x00000200 |
◆ PLUS_2K_SL_3
| #define PLUS_2K_SL_3 0x00000800 |
◆ PLUS_4K_SL_1
| #define PLUS_4K_SL_1 0x00000100 |
◆ PLUS_4K_SL_2
| #define PLUS_4K_SL_2 0x00000400 |
◆ PLUS_4K_SL_3
| #define PLUS_4K_SL_3 0x00001000 |
◆ SMART_MX
| #define SMART_MX 0x00010000 |
◆ SMART_MX_1K_EMULATION
| #define SMART_MX_1K_EMULATION 0x00004000 |
◆ SMART_MX_4K_EMULATION
| #define SMART_MX_4K_EMULATION 0x00008000 |
◆ TNP3xxx
| #define TNP3xxx 0x00002000 |
◆ ULTRALIGHT
| #define ULTRALIGHT 0x00000002 |
◆ ULTRALIGHT_C
| #define ULTRALIGHT_C 0x00080000 |
◆ UNKNOWN
| #define UNKNOWN 0x00000000 |
Typedef Documentation
◆ cardInfo
◆ cardInfoFull
| typedef struct _cardInfoFull cardInfoFull |
◆ NfcCallbackFunction
| typedef void() NfcCallbackFunction(unsigned char *data, size_t dataSizeBytes) |
◆ pollReq
◆ pollRes
◆ pollResFull
| typedef struct _pollResFull pollResFull |
Enumeration Type Documentation
◆ callbackBuzzerFrequency
◆ FrameworkState
| enum FrameworkState |
◆ I_MIFARE_CARD_TYPE
| enum I_MIFARE_CARD_TYPE |
◆ MIFARE_KEY_TYPE
| enum MIFARE_KEY_TYPE |
◆ NFC_CARD_TYPE
| enum NFC_CARD_TYPE |
◆ NFC_F_BAUD
| enum NFC_F_BAUD |
◆ NFC_POLL_PARAM_TECH
| enum NFC_POLL_PARAM_TECH |
◆ ResponseCodes
| enum ResponseCodes |
◆ VasStatus
| enum VasStatus |
Function Documentation
◆ isVclEnabled()
| bool isVclEnabled | ( | bool | checkVCLStatus | ) |
◆ isVclTag()
| bool isVclTag | ( | unsigned long | ulTag | ) |
◆ NFC_APDU_Exchange()
| ResponseCodes NFC_APDU_Exchange | ( | apduTxData * | txData, |
| apduRxData * | rxData | ||
| ) |
Data transceive of APDU protocol.
- This command is not allowed on SDI Server external interface
- Parameters
-
[in] txData apduTxData data to send [out] rxData apduRxData data received
- Returns
- EMB_APP_COMMAND_NOT_SUPPORTED
◆ NFC_Callback_Test()
| ResponseCodes NFC_Callback_Test | ( | void | ) |
Undocumented function, just included because part of NFC_Interface.h.
- Returns
- EMB_APP_COMMAND_NOT_SUPPORTED
◆ NFC_Card_Removal()
| ResponseCodes NFC_Card_Removal | ( | void | ) |
◆ NFC_Config_Init()
| ResponseCodes NFC_Config_Init | ( | void | ) |
According NFC documentation: Initializes NFC Configuration. But this function does nothing and always returns error.
- Returns
- EMB_APP_FAILED
◆ NFC_Felica_Exchange()
| ResponseCodes NFC_Felica_Exchange | ( | felicaTxData * | in_buff, |
| felicaRxData * | out_buff | ||
| ) |
Data transive over Felica protocol
- Parameters
-
[in] in_buff binary input [out] out_buff binary output
- Returns
- ResponseCodes
◆ NFC_Felica_Polling()
| ResponseCodes NFC_Felica_Polling | ( | unsigned int | pollTimeout, |
| felicaPolling * | inData, | ||
| felicaPollingOutput * | outData | ||
| ) |
FeliCa Polling request
- Parameters
-
[in] pollTimeout timeout in Milli Seconds [in] inData felicaPolling input data [out] outData felicaPollingOutput result data
- Returns
- ResponseCodes
◆ NFC_Free_Poll_Data()
| void NFC_Free_Poll_Data | ( | pollRes * | outPollRes | ) |
Releases memory allocated in the pollRes *outPollRes when NFC_PT_Polling() was called.
◆ NFC_Free_Poll_DataFull()
| void NFC_Free_Poll_DataFull | ( | pollResFull * | out_pull_res | ) |
◆ NFC_Get_Version()
| ResponseCodes NFC_Get_Version | ( | rawData * | output | ) |
Returns ADK-NFC build and kernels versions as JSON string Depending on return code getNfcSW12() or getNfcClientError() might provide the error reason.
- Parameters
-
[out] output data buffer for the version information
- Returns
- NFC result, EMB_APP_FAILED for other SW12, EMB_APP_COMM_ERROR for client side error
◆ NFC_Mifare_Authenticate()
| ResponseCodes NFC_Mifare_Authenticate | ( | unsigned char | blockNumber, |
| MIFARE_KEY_TYPE | keyType, | ||
| rawData * | Key | ||
| ) |
Authenticates the section with given block address with either key A or B.
- Parameters
-
[in] blockNumber MIFARE block address within the section to authenticate '00' .. 'FF' [in] keyType MIFARE_KEY_TYPE_A or MIFARE_KEY_TYPE_B [in] Key MIFARE key (e.g. MIFARE classic crypto-1 key with 48 bit)
- Returns
- ResponseCodes
◆ NFC_Mifare_Decrement()
| ResponseCodes NFC_Mifare_Decrement | ( | unsigned int | blockNum, |
| int | amount | ||
| ) |
Decrement MIFARE value block by amount and transfer to original location
- Parameters
-
[in] blockNum source and destination block address [in] amount 4 byte signed integer
- Returns
- ResponseCodes
◆ NFC_Mifare_Decrement_Only()
| ResponseCodes NFC_Mifare_Decrement_Only | ( | unsigned int | blockNum, |
| int | amount | ||
| ) |
Decrement MIFARE value block by amount and store at transfer buffer
- Parameters
-
[in] blockNum source block address [in] amount 4 byte signed integer
- Returns
- ResponseCodes
◆ NFC_Mifare_Increment()
| ResponseCodes NFC_Mifare_Increment | ( | unsigned int | blockNum, |
| int | amount | ||
| ) |
Increment MIFARE value block by amount and transfer to original location
- Parameters
-
[in] blockNum source and destination block address [in] amount 4 byte signed integer
- Returns
- ResponseCodes
◆ NFC_Mifare_Increment_Only()
| ResponseCodes NFC_Mifare_Increment_Only | ( | unsigned int | blockNum, |
| int | amount | ||
| ) |
Increment MIFARE value block by amount and store at transfer buffer
- Parameters
-
[in] blockNum source block address [in] amount 4 byte signed integer
- Returns
- ResponseCodes
◆ NFC_Mifare_Read()
| ResponseCodes NFC_Mifare_Read | ( | I_MIFARE_CARD_TYPE | m_cardType, |
| unsigned int | StartBlockNum, | ||
| unsigned int | blockAmount, | ||
| rawData * | out_buff | ||
| ) |
Read block data of up to 15 blocks
- Parameters
-
[in] m_cardType I_MIFARE_CARD_TYPE [in] StartBlockNum address of first block [in] blockAmount number of blocks to read [out] out_buff output buffer, required size is 16*blockAmount
- Returns
- ResponseCodes
◆ NFC_Mifare_Restore()
| ResponseCodes NFC_Mifare_Restore | ( | unsigned int | blockNum | ) |
Write value from source block to transfer buffer
- Parameters
-
[in] blockNum source block address
- Returns
- ResponseCodes
◆ NFC_Mifare_Transfer()
| ResponseCodes NFC_Mifare_Transfer | ( | unsigned int | blockNum | ) |
Write value from transfer buffer to destination block
- Parameters
-
[in] blockNum destination block address
- Returns
- ResponseCodes
◆ NFC_Mifare_Write()
| ResponseCodes NFC_Mifare_Write | ( | I_MIFARE_CARD_TYPE | m_cardType, |
| unsigned int | StartBlockNum, | ||
| unsigned int | blockAmount, | ||
| rawData * | in_buff | ||
| ) |
Write block data of up to 15 blocks
- Parameters
-
[in] m_cardType I_MIFARE_CARD_TYPE [in] StartBlockNum address of first block [in] blockAmount number of blocks to read [in] in_buff data to write of size 16*blockAmount
- Returns
- ResponseCodes
◆ NFC_Ping()
| ResponseCodes NFC_Ping | ( | rawData * | output | ) |
Return NFC Framework State of the NFC framework.
◆ NFC_PT_Activation()
| ResponseCodes NFC_PT_Activation | ( | NFC_CARD_TYPE | cardtype, |
| rawData * | rd_activationData | ||
| ) |
Activates (selects) the card found during polling. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
- Parameters
-
[in] cardtype value from pollRes::cardInfo]n].cardType or pollResFull::cards_info_arr[n].m_modulation [in] rd_activationData value from pollRes::cards_info_arr[n].card_info or pollResFull::card_info_arr[n].mrd_UID
◆ NFC_PT_Adv_TxRx()
| ResponseCodes NFC_PT_Adv_TxRx | ( | TX_RX_PARAM * | comParams, |
| rawData * | in_buff, | ||
| rawData * | out_buff | ||
| ) |
◆ NFC_PT_Cancel_Polling()
| ResponseCodes NFC_PT_Cancel_Polling | ( | void | ) |
Stop polling before timeout. Note: This command has to be send asynchronously while waiting for polling response. Since is not yet supported on SDI Server side there is also no implementation on client side.
- Returns
- EMB_APP_COMMAND_NOT_SUPPORTED
◆ NFC_PT_Close()
| ResponseCodes NFC_PT_Close | ( | ) |
Release NFC L1 driver. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
◆ NFC_PT_FieldOff()
| ResponseCodes NFC_PT_FieldOff | ( | ) |
Turns RF field off. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
◆ NFC_PT_FieldOn()
| ResponseCodes NFC_PT_FieldOn | ( | ) |
Turns RF field on. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
◆ NFC_PT_FtechBaud()
| ResponseCodes NFC_PT_FtechBaud | ( | NFC_F_BAUD | baud | ) |
Changes NFC-F baud rate
- Parameters
-
[in] baud value of NFC_F_BAUD
- Returns
- value of ResponseCodes
◆ NFC_PT_Open()
| ResponseCodes NFC_PT_Open | ( | ) |
Initialise NFC L1 driver. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
◆ NFC_PT_Polling()
| ResponseCodes NFC_PT_Polling | ( | pollReq * | inPollReq, |
| pollRes * | outPollRes | ||
| ) |
Activates polling. See NFC documentation. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
◆ NFC_PT_PollingFull()
| ResponseCodes NFC_PT_PollingFull | ( | pollReq * | inPollReq, |
| pollResFull * | outPollRes | ||
| ) |
Activates polling. See NFC documentation. When the SDI server response is not 90xx or there was a communication problem an appropriate CL_STATUS or CL_STATUS_GENERAL_ERROR is returned. The functions getNfcClientError and getNfcSW12 will provide the error indication.
◆ NFC_PT_TxRx()
| ResponseCodes NFC_PT_TxRx | ( | NFC_CARD_TYPE | cardtype, |
| rawData * | inBuff, | ||
| rawData * | outBuff | ||
| ) |
Sends and receives raw data using ISO 14443-3 protocol (31-08) This function is no more available at SDI server external interface
- Returns
- EMB_APP_COMMAND_NOT_SUPPORTED
◆ NFC_Set_Callback_Function()
| ResponseCodes NFC_Set_Callback_Function | ( | rawData * | id, |
| NfcCallbackFunction * | callbackFunction | ||
| ) |
Set UI callback function handling text, status indicators (LEDs) and buzzer. So far, there is no client side implementation.
- Returns
- EMB_APP_COMMAND_NOT_SUPPORTED
◆ NFC_Terminal_Config()
Terminal wide VAS configuration
- Parameters
-
[in] input JSON string see Terminal Configuration Parameters [out] output nothing - RFU
- Returns
- VasStatus
◆ NFC_TERMINAL_ReadConfig()
Reads the most updated terminal configuration.Static parameter will be returned in case appID is unknown or NFC_VAS_PreLoad() issued without changing Terminal configuration.
- Parameters
-
[in] id application unique identifier [out] output JSON string most updated Read Terminal Configuration Parameters
- Returns
- VasStatus
◆ NFC_VAS_Action()
Key transfer between Counter Top and External PIN pad.
- Not to be used at external SDI Server interface
- Returns
- VasStatus
◆ NFC_VAS_Activate()
Activates NFC interface, runs through wallet kernel flow and retrieves VAS data.
- Parameters
-
[in] id application unique identifier [in] input JSON string set of dynamic parameters to be merged with configuration from data base. [out] output JSON string VAS data received from the mobile.
- Returns
- VasStatus
◆ NFC_VAS_Cancel()
| VasStatus NFC_VAS_Cancel | ( | void | ) |
Stop VAS activate polling before timeout. Note: This command has to be send asynchronously while waiting for polling response. Since is not yet supported on SDI Server side there is also no implementation on client side.
- Returns
- EMB_APP_COMMAND_NOT_SUPPORTED
◆ NFC_VAS_CancelConfig()
Clears all the VAS configuration by application ID
- Parameters
-
[in] id application unique identifier
- Returns
- VasStatus
◆ NFC_VAS_CancelPreLoad()
Clear preloaded configuration by application ID and pulls latest static configuration from data base.
- Parameters
-
[in] id application unique identifier
- Returns
- VasStatus
◆ NFC_VAS_Decrypt()
Decrypts an encrypted VAS response.
- Parameters
-
[in] id application unique identifier [in] input The json in the same format of the Vas Data Response with the included encrypted message [out] output The json in the same format of the Vas Data Response with the included decrypted message
- Returns
- VasStatus
◆ NFC_VAS_PreLoad()
Configures the terminal with wallet specific parameters. NFC_VAS_Activate() has to be called to get VAS data. Only single PreLoaded configuration is available.
- Parameters
-
[in] id application unique identifier [in] input input Set of PreLoad parameters to be merged with configuration from data base. [out] output none - RFU
- Returns
- VasStatus
◆ NFC_VAS_ReadConfig()
Reads the most updated wallets configuration.
- Parameters
-
[in] id application unique identifier [out] output JSON string most updated configuration for terminal and all wallets
- Returns
- VasStatus
◆ NFC_VAS_UpdateConfig()
Configures the terminal with wallet specific parameters.
- Parameters
-
[in] id application unique identifier [in] input JSON string set of parameters to configure ome or multiple wallets [out] output none - RFU
- Returns
- VasStatus
◆ VCL_DecryptMSR()
| bool VCL_DecryptMSR | ( | ) |
◆ VCL_EncryptEMV()
| bool VCL_EncryptEMV | ( | ) |











