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.
18 * =========================================================================== *
21 * \file phHciNfc_WI .h *
22 * \brief HCI wired interface gate Management Routines. *
25 * Project: NFC-FRI-1.1 *
27 * $Date: Fri Jan 16 10:33:47 2009 $ *
28 * $Author: ravindrau $ *
30 * $Aliases: NFC_FRI1.1_WK904_PREP1,NFC_FRI1.1_WK904_R17_1,NFC_FRI1.1_WK906_R18_1,NFC_FRI1.1_WK908_PREP1,NFC_FRI1.1_WK908_R19_1,NFC_FRI1.1_WK910_PREP1,NFC_FRI1.1_WK910_R20_1,NFC_FRI1.1_WK912_PREP1,NFC_FRI1.1_WK912_R21_1,NFC_FRI1.1_WK914_PREP1,NFC_FRI1.1_WK914_R22_1,NFC_FRI1.1_WK914_R22_2,NFC_FRI1.1_WK916_R23_1,NFC_FRI1.1_WK918_R24_1,NFC_FRI1.1_WK920_PREP1,NFC_FRI1.1_WK920_R25_1,NFC_FRI1.1_WK922_PREP1,NFC_FRI1.1_WK922_R26_1,NFC_FRI1.1_WK924_PREP1,NFC_FRI1.1_WK924_R27_1,NFC_FRI1.1_WK926_R28_1,NFC_FRI1.1_WK926_R28_2,NFC_FRI1.1_WK926_R28_3,NFC_FRI1.1_WK928_R29_1,NFC_FRI1.1_WK930_R30_1,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 $ *
32 * =========================================================================== *
40 * File: \ref phHciNfc_WI.h
44 #define PHHCINFC_WIRED_FILEREVISION "$Revision: 1.11 $" /**< \ingroup grp_file_attributes */
45 #define PHHCINFC_WIREDINTERFACE_FILEALIASES "$Aliases: NFC_FRI1.1_WK904_PREP1,NFC_FRI1.1_WK904_R17_1,NFC_FRI1.1_WK906_R18_1,NFC_FRI1.1_WK908_PREP1,NFC_FRI1.1_WK908_R19_1,NFC_FRI1.1_WK910_PREP1,NFC_FRI1.1_WK910_R20_1,NFC_FRI1.1_WK912_PREP1,NFC_FRI1.1_WK912_R21_1,NFC_FRI1.1_WK914_PREP1,NFC_FRI1.1_WK914_R22_1,NFC_FRI1.1_WK914_R22_2,NFC_FRI1.1_WK916_R23_1,NFC_FRI1.1_WK918_R24_1,NFC_FRI1.1_WK920_PREP1,NFC_FRI1.1_WK920_R25_1,NFC_FRI1.1_WK922_PREP1,NFC_FRI1.1_WK922_R26_1,NFC_FRI1.1_WK924_PREP1,NFC_FRI1.1_WK924_R27_1,NFC_FRI1.1_WK926_R28_1,NFC_FRI1.1_WK926_R28_2,NFC_FRI1.1_WK926_R28_3,NFC_FRI1.1_WK928_R29_1,NFC_FRI1.1_WK930_R30_1,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 */
48 /****************************** Header File Inclusion *****************************/
49 #include <phHciNfc_Generic.h>
50 #include <phHciNfc_Emulation.h>
52 /******************************* Macro Definitions ********************************/
54 /******************** Enumeration and Structure Definition ***********************/
57 /* enable /disable notifications */
58 typedef enum phHciNfc_WI_Events{
61 } phHciNfc_WI_Events_t;
63 typedef enum phHciNfc_WI_Seq{
69 /* Information structure for WI Gate */
70 typedef struct phHciNfc_WI_Info{
72 /* Pointer to WI gate pipe information */
73 phHciNfc_Pipe_Info_t *p_pipe_info;
74 /* WI gate pipe Identifier */
76 /* Application ID of the Transaction performed */
77 uint8_t aid[MAX_AID_LEN];
80 /* Current WI gate Internal Sequence type */
81 phHciNfc_WI_Seq_t current_seq;
82 /*Current WI gate next Sequence ID */
83 phHciNfc_WI_Seq_t next_seq;
87 /************************ Function Prototype Declaration *************************/
89 * \brief Allocates the resources required for WI gate management.
91 * This function Allocates necessary resources as requiered by WI gate management
93 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
95 * \retval NFCSTATUS_SUCCESS Function execution is successful
97 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the given inputs are not valid
101 phHciNfc_WI_Init_Resources(phHciNfc_sContext_t *psHciContext);
104 * \ingroup grp_hci_nfc
106 * \brief Allocates the resources required for WI gate management.
108 * This function Allocates necessary resources as requiered by WI gate management
110 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
112 * \retval NFCSTATUS_SUCCESS Function execution is successful
114 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the given inputs are not valid
119 phHciNfc_WIMgmt_Initialise(
120 phHciNfc_sContext_t *psHciContext,
124 * \ingroup grp_hci_nfc
126 * \brief Allocates the resources required for WI gate management.
128 * This function Allocates necessary resources as requiered by WI gate management
130 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
132 * \retval NFCSTATUS_SUCCESS Function execution is successful
134 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the given inputs are not valid
138 phHciNfc_WI_Update_PipeInfo(
139 phHciNfc_sContext_t *psHciContext,
141 phHciNfc_Pipe_Info_t *pPipeInfo
145 * \ingroup grp_hci_nfc
147 * \brief Allocates the resources required for WI gate management.
149 * This function Allocates necessary resources as requiered by WI gate management
151 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
153 * \retval NFCSTATUS_SUCCESS Function execution is successful
155 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the given inputs are not valid
159 phHciNfc_WI_Configure_Mode(
162 phHal_eSmartMX_Mode_t cfg_Mode
167 phHciNfc_WI_Configure_Notifications(
170 phHciNfc_WI_Events_t eNotification
175 phHciNfc_WI_Get_PipeID(
176 phHciNfc_sContext_t *psHciContext,
182 phHciNfc_WI_Configure_Default(
190 phHciNfc_WI_Get_Default(
196 #endif /* #ifndef PHHCINFC_WI_H */