nfc_se_reader_set_technology_types()
Set the technology types (protocols) that are to be emulated.
Synopsis:
#include <nfc/nfc_se_access.h>
NFC_API nfc_result_t nfc_se_reader_set_technology_types(uint32_t hSESession, uint32_t technologyTypes)
Arguments:
- hSESession
-
The handle to the open session.
- technologyTypes
-
The technology types to emulate. This bit field must be constructed from the technology_types_t constants. To enable card emulation, set this parameter to an appropriate technology type; to disable card emulation, set it to TECHNOLOGY_TYPE_NONE.
Library:
libnfcDescription:
Use this function to enable or disable UICC-based card emulation.
Returns:
NFC_RESULT_SUCCESS if the technology types are set successfully; or one of the following:
- NFC_RESULT_SERVICE_CONNECTION_ERROR: An attempt to connect to the NFC system failed.
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_SE_INVALID_HANDLE: The hSESession is invalid.
- NFC_RESULT_OPERATION_REJECTED: The UICC secure element is not the currently active secure element. Call the nfc_se_set_uicc_active() function in order to set the UICC to be the active secure element.