Tizen Native API
Functions | Typedefs
Card Emulation
NFC

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.

Required Header

#include <nfc.h>

Overview

The Card Emulation api provide functions to exchange data with Secure Element.

Related Features

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.


Function Documentation

Disable card emulation mode.

Since :
2.3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/nfc.cardemulation
Remarks:
Security level can be determined by the manufacturer usage.
If a security issue is occurred, contact with the manufacturer of the product.
If you want to know about security level in detail, See the GSMA specification.
(http://www.gsma.com/digitalcommerce/wp-content/uploads/2013/12/GSMA-NFC05-NFC-Handset-APIs-Requirement-Specification-version-4-1.pdf)
Returns:
0 on success, otherwise a negative error value.
Return values:
NFC_ERROR_NONESuccessful
NFC_ERROR_NOT_SUPPORTEDNot supported NFC
NFC_ERROR_NOT_INITIALIZEDNot intialized NFC
NFC_ERROR_NOT_ACTIVATEDNFC is not activated
NFC_ERROR_INVALID_PARAMETERInvalid parameter
NFC_ERROR_OPERATION_FAILEDOperation failed
NFC_ERROR_PERMISSION_DENIEDSecurity Restricted by SMACK
NFC_ERROR_SECURITY_RESTRICTEDSecurity Restricted
NFC_ERROR_DEVICE_BUSYDevice is too busy to handle your request
NFC_ERROR_OUT_OF_MEMORYOut of memory
See also:
nfc_se_enable_card_emulation()

Enable card emulation mode.

Since :
2.3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/nfc.cardemulation
Remarks:
Security level can be determined by the manufacturer usage.
If a security issue is occurred, contact with the manufacturer of the product.
If you want to know about security level in detail, See the GSMA specification.
(http://www.gsma.com/digitalcommerce/wp-content/uploads/2013/12/GSMA-NFC05-NFC-Handset-APIs-Requirement-Specification-version-4-1.pdf)
Returns:
0 on success, otherwise a negative error value.
Return values:
NFC_ERROR_NONESuccessful
NFC_ERROR_NOT_SUPPORTEDNot supported NFC
NFC_ERROR_NOT_INITIALIZEDNot intialized NFC
NFC_ERROR_NOT_ACTIVATEDNFC is not activated
NFC_ERROR_INVALID_PARAMETERInvalid parameter
NFC_ERROR_OPERATION_FAILEDOperation failed
NFC_ERROR_PERMISSION_DENIEDSecurity Restricted by SMACK
NFC_ERROR_SECURITY_RESTRICTEDSecurity Restricted
NFC_ERROR_DEVICE_BUSYDevice is too busy to handle your request
NFC_ERROR_OUT_OF_MEMORYOut of memory
See also:
nfc_se_disable_card_emulation()

Get the current card emulation mode.

Since :
2.3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/nfc.cardemulation
Parameters:
[out]typeThe current card emulation mode type
Returns:
0 on success, otherwise a negative error value.
Return values:
NFC_ERROR_NONESuccessful
NFC_ERROR_NOT_SUPPORTEDNot supported NFC
NFC_ERROR_NOT_INITIALIZEDNot intialized NFC
NFC_ERROR_NOT_ACTIVATEDNFC is not activated
NFC_ERROR_OPERATION_FAILEDOperation failed
NFC_ERROR_PERMISSION_DENIEDSecurity Restricted by SMACK
NFC_ERROR_DEVICE_BUSYDevice is too busy to handle your request
NFC_ERROR_OUT_OF_MEMORYOut of memory
See also:
nfc_se_enable_card_emulation()
nfc_se_disable_card_emulation()

Except as noted, this content - excluding the Code Examples - is licensed under Creative Commons Attribution 3.0 and all of the Code Examples contained herein are licensed under BSD-3-Clause.
For details, see the Content License