Tizen Native API
|
Functions | |
int | nfc_se_enable_card_emulation () |
Enable card emulation mode. | |
int | nfc_se_disable_card_emulation () |
Disable card emulation mode. | |
int | nfc_se_get_card_emulation_mode (nfc_se_card_emulation_mode_type_e *type) |
Get the current card emulation mode. | |
Typedefs | |
typedef void * | nfc_se_h |
The handle to NFC secure element instance. |
The Card Emulation api provide functions to exchange data with Secure Element.
#include <nfc.h>
The Card Emulation api provide functions to exchange data with Secure Element.
This API is related with the following features:
It is recommended to design feature related codes in your application for reliability.
You can check if a devrice supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
int nfc_se_disable_card_emulation | ( | ) |
Disable card emulation mode.
NFC_ERROR_NONE | Successful |
NFC_ERROR_NOT_SUPPORTED | Not supported NFC |
NFC_ERROR_NOT_INITIALIZED | Not intialized NFC |
NFC_ERROR_NOT_ACTIVATED | NFC is not activated |
NFC_ERROR_INVALID_PARAMETER | Invalid parameter |
NFC_ERROR_OPERATION_FAILED | Operation failed |
NFC_ERROR_PERMISSION_DENIED | Security Restricted by SMACK |
NFC_ERROR_SECURITY_RESTRICTED | Security Restricted |
NFC_ERROR_DEVICE_BUSY | Device is too busy to handle your request |
NFC_ERROR_OUT_OF_MEMORY | Out of memory |
int nfc_se_enable_card_emulation | ( | ) |
Enable card emulation mode.
NFC_ERROR_NONE | Successful |
NFC_ERROR_NOT_SUPPORTED | Not supported NFC |
NFC_ERROR_NOT_INITIALIZED | Not intialized NFC |
NFC_ERROR_NOT_ACTIVATED | NFC is not activated |
NFC_ERROR_INVALID_PARAMETER | Invalid parameter |
NFC_ERROR_OPERATION_FAILED | Operation failed |
NFC_ERROR_PERMISSION_DENIED | Security Restricted by SMACK |
NFC_ERROR_SECURITY_RESTRICTED | Security Restricted |
NFC_ERROR_DEVICE_BUSY | Device is too busy to handle your request |
NFC_ERROR_OUT_OF_MEMORY | Out of memory |
Get the current card emulation mode.
[out] | type | The current card emulation mode type |
NFC_ERROR_NONE | Successful |
NFC_ERROR_NOT_SUPPORTED | Not supported NFC |
NFC_ERROR_NOT_INITIALIZED | Not intialized NFC |
NFC_ERROR_NOT_ACTIVATED | NFC is not activated |
NFC_ERROR_OPERATION_FAILED | Operation failed |
NFC_ERROR_PERMISSION_DENIED | Security Restricted by SMACK |
NFC_ERROR_DEVICE_BUSY | Device is too busy to handle your request |
NFC_ERROR_OUT_OF_MEMORY | Out of memory |