2 * Copyright (C) 2010 NXP Semiconductors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 * =========================================================================== *
\r
21 * \file phHciNfc_Emulation.h *
\r
22 * \brief HCI emulation management routines. *
\r
25 * Project: NFC-FRI-1.1 *
\r
27 * $Date: Fri Aug 14 17:01:26 2009 $ *
\r
28 * $Author: ing04880 $ *
\r
29 * $Revision: 1.10 $ *
\r
30 * $Aliases: NFC_FRI1.1_WK934_R31_1,NFC_FRI1.1_WK941_PREP1,NFC_FRI1.1_WK941_PREP2,NFC_FRI1.1_WK941_1,NFC_FRI1.1_WK943_R32_1,NFC_FRI1.1_WK949_PREP1,NFC_FRI1.1_WK943_R32_10,NFC_FRI1.1_WK943_R32_13,NFC_FRI1.1_WK943_R32_14,NFC_FRI1.1_WK1007_R33_1,NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1023_R35_1 $ *
\r
32 * =========================================================================== *
\r
36 #ifndef PHHCINFC_EMULATION_H
\r
37 #define PHHCINFC_EMULATION_H
\r
45 * File: \ref phHciNfc_Emulation.h
\r
49 #define PHHCINFC_EMULATION_FILEREVISION "$Revision: 1.10 $" /**< \ingroup grp_file_attributes */
\r
50 #define PHHCINFC_EMULATION_FILEALIASES "$Aliases: NFC_FRI1.1_WK934_R31_1,NFC_FRI1.1_WK941_PREP1,NFC_FRI1.1_WK941_PREP2,NFC_FRI1.1_WK941_1,NFC_FRI1.1_WK943_R32_1,NFC_FRI1.1_WK949_PREP1,NFC_FRI1.1_WK943_R32_10,NFC_FRI1.1_WK943_R32_13,NFC_FRI1.1_WK943_R32_14,NFC_FRI1.1_WK1007_R33_1,NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1023_R35_1 $" /**< \ingroup grp_file_attributes */
\r
54 ***************************** Header File Inclusion ****************************
\r
57 #include <phHciNfc_Generic.h>
\r
60 ****************************** Macro Definitions *******************************
\r
62 /* Connectivity Gate Command Support */
\r
63 #define PRO_HOST_REQUEST (0x10U)
\r
65 /* Connectivity Gate Event Support */
\r
66 #define EVT_CONNECTIVITY (0x10U)
\r
67 #define EVT_END_OF_TRANSACTION (0x11U)
\r
68 #define EVT_TRANSACTION (0x12U)
\r
69 #define EVT_OPERATION_ENDED (0x13U)
\r
71 #define TRANSACTION_MIN_LEN (0x03U)
\r
72 #define TRANSACTION_AID (0x81U)
\r
73 #define TRANSACTION_PARAM (0x82U)
\r
75 #define HOST_CE_MODE_ENABLE (0x02U)
\r
76 #define HOST_CE_MODE_DISABLE (0xFFU)
\r
78 #define NXP_PIPE_CONNECTIVITY (0x60U)
\r
81 /* Card Emulation Gate Events */
\r
82 #define CE_EVT_NFC_SEND_DATA (0x10U)
\r
83 #define CE_EVT_NFC_FIELD_ON (0x11U)
\r
84 #define CE_EVT_NFC_DEACTIVATED (0x12U)
\r
85 #define CE_EVT_NFC_ACTIVATED (0x13U)
\r
86 #define CE_EVT_NFC_FIELD_OFF (0x14U)
\r
89 ******************** Enumeration and Structure Definition **********************
\r
95 *********************** Function Prototype Declaration *************************
\r
100 phHciNfc_Uicc_Update_PipeInfo(
\r
101 phHciNfc_sContext_t *psHciContext,
\r
103 phHciNfc_Pipe_Info_t *pPipeInfo
\r
108 phHciNfc_EmuMgmt_Update_Seq(
\r
109 phHciNfc_sContext_t *psHciContext,
\r
110 phHciNfc_eSeqType_t seq_type
\r
115 phHciNfc_EmuMgmt_Initialise(
\r
116 phHciNfc_sContext_t *psHciContext,
\r
122 phHciNfc_EmuMgmt_Release(
\r
123 phHciNfc_sContext_t *psHciContext,
\r
130 phHciNfc_Emulation_Cfg (
\r
131 phHciNfc_sContext_t *psHciContext,
\r
133 phHciNfc_eConfigType_t cfg_type
\r
138 phHciNfc_Uicc_Get_PipeID(
\r
139 phHciNfc_sContext_t *psHciContext,
\r
145 phHciNfc_Uicc_Connect_Status(
\r
146 phHciNfc_sContext_t *psHciContext,
\r
152 phHciNfc_Uicc_Connectivity(
\r
153 phHciNfc_sContext_t *psHciContext,
\r
158 #endif /* PHHCINFC_EMULATION_H */
\r