2 * Copyright (C) 2010 NXP Semiconductors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * Project: NFC-FRI 1.1
22 * $Workfile:: phLibNfc_1.1.h $
31 #define LIBNFC_SE_INVALID_HANDLE 0
32 #define LIBNFC_SE_SUPPORTED 2
33 #define LIBNFC_SE_BASE_HANDLE 0xABCDEF
35 #define LIBNFC_SE_SMARTMX_INDEX 0
36 #define LIBNFC_SE_UICC_INDEX 1
38 #define PAUSE_PHASE 0x0824 /*Indicates the Pause phase duration*/
39 #define EMULATION_PHASE 0x5161 /*Indicates the Emulation phase duration*/
41 typedef struct phLibNfc_SeCallbackInfo
43 /* SE set mode callback and its context */
44 pphLibNfc_SE_SetModeRspCb_t pSEsetModeCb;
46 /* Store SE discovery notification callback and its context */
47 pphLibNfc_SE_NotificationCb_t pSeListenerNtfCb;
48 void *pSeListenerCtxt;
50 }phLibNfc_SECallbackInfo_t;
54 phLibNfc_eSeInvalid = 0x00,
62 /* Context for secured element */
63 typedef struct phLibNfc_SeCtxt
66 /* UICC Status in Virtual Mode */
67 uint8_t uUiccActivate;
69 /* SMX Status in Virtual Mode */
72 /* Count of the Secure Elements Present */
76 phLibNfc_Handle hSetemp;
79 phLibNfc_SeState_t eSE_State;
83 phLibNfc_eSE_ActivationMode eActivatedMode;
85 /* SE callback information */
86 phLibNfc_SECallbackInfo_t sSeCallabackInfo;
90 extern phLibNfc_SE_List_t sSecuredElementInfo[PHLIBNFC_MAXNO_OF_SE];