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_RFReaderB.h *
22 * \brief HCI Reader B Management Routines. *
25 * Project: NFC-FRI-1.1 *
27 * $Date: Fri Aug 14 17:01:26 2009 $ *
28 * $Author: ing04880 $ *
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 $ *
32 * =========================================================================== *
35 #ifndef PHHCINFC_RFREADERB_H
36 #define PHHCINFC_RFREADERB_H
44 * File: \ref phHciNfc_ReaderB.h
48 #define PHHCINFC_RFREADERB_FILEREVISION "$Revision: 1.5 $" /**< \ingroup grp_file_attributes */
49 #define PHHCINFC_RFREADERB_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 */
53 ***************************** Header File Inclusion ****************************
56 #include <phHciNfc_Generic.h>
59 ****************************** Macro Definitions *******************************
62 /* Enable the reader B */
63 #define HCI_READER_B_ENABLE 0x01U
64 #define HCI_READER_B_INFO_SEQ 0x02U
67 ******************** Enumeration and Structure Definition **********************
69 typedef enum phHciNfc_ReaderB_Seq{
73 RDR_B_HIGHER_LAYER_RESP,
74 RDR_B_HIGHER_LAYER_DATA,
77 } phHciNfc_ReaderB_Seq_t;
79 /* Information structure for the reader B Gate */
80 typedef struct phHciNfc_ReaderB_Info{
81 /* Current running Sequence of the reader B Management */
82 phHciNfc_ReaderB_Seq_t current_seq;
83 /* Next running Sequence of the reader B Management */
84 phHciNfc_ReaderB_Seq_t next_seq;
85 /* Pointer to the reader B pipe information */
86 phHciNfc_Pipe_Info_t *p_pipe_info;
88 /* Flag to say about the multiple targets */
89 uint8_t multiple_tgts_found;
90 /* Reader B information */
91 phHal_sRemoteDevInformation_t reader_b_info;
92 /* Enable or disable reader gate */
93 uint8_t enable_rdr_b_gate;
94 /* UICC re-activation status */
95 uint8_t uicc_activation;
96 } phHciNfc_ReaderB_Info_t;
99 *********************** Function Prototype Declaration *************************
103 * \brief Allocates the resources of reader B management gate.
105 * This function Allocates the resources of the reader B management
106 * gate Information Structure.
111 phHciNfc_ReaderB_Init_Resources(
112 phHciNfc_sContext_t *psHciContext
116 * \ingroup grp_hci_nfc
118 * The phHciNfc_ReaderB_Get_PipeID function gives the pipe id of the reader B
121 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
123 * \param[in] pHwRef pHwRef is the Information of
124 * the Device Interface Link
126 * \retval NFCSTATUS_SUCCESS Function execution is successful.
127 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
128 * could not be interpreted properly.
133 phHciNfc_ReaderB_Get_PipeID(
134 phHciNfc_sContext_t *psHciContext,
140 * \ingroup grp_hci_nfc
142 * The phHciNfc_ReaderB_Update_PipeInfo function updates the pipe_id of the reader B
143 * gate management Structure.
145 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
147 * \param[in] pipeID pipeID of the reader B gate
148 * \param[in] pPipeInfo Update the pipe Information of the reader
151 * \retval NFCSTATUS_SUCCESS Function execution is successful.
152 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
153 * could not be interpreted properly.
159 phHciNfc_ReaderB_Update_PipeInfo(
160 phHciNfc_sContext_t *psHciContext,
162 phHciNfc_Pipe_Info_t *pPipeInfo
166 * \ingroup grp_hci_nfc
168 * The phHciNfc_ReaderB_Info_Sequence function executes the sequence of operations, to
169 * get the PUPI, AFI, APPLICATION_DATA etc.
171 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
173 * \param[in] pHwRef pHwRef is the Information of
174 * the Device Interface Link
176 * \retval NFCSTATUS_SUCCESS Function execution is successful.
177 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
178 * could not be interpreted properly.
183 phHciNfc_ReaderB_Info_Sequence (
189 * \ingroup grp_hci_nfc
191 * The phHciNfc_ReaderB_Update_Info function updates the reader B information.
193 * \param[in] psHciContext psHciContext is the pointer to HCI Layer
195 * \param[in] infotype To enable the reader B gate
196 * \param[in] rdr_b_info reader B gate info
198 * \retval NFCSTATUS_SUCCESS Function execution is successful.
199 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
200 * could not be interpreted properly.
205 phHciNfc_ReaderB_Update_Info(
206 phHciNfc_sContext_t *psHciContext,
212 * \ingroup grp_hci_nfc
214 * The phHciNfc_ReaderB_Set_LayerData function updates higher layer data
217 * \param[in] psContext psContext is the pointer to HCI Layer
219 * \param[in] pHwRef pHwRef is the Information of
220 * the Device Interface Link
221 * \param[in] layer_data_info layer data information
223 * \retval NFCSTATUS_SUCCESS Function execution is successful.
224 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
225 * could not be interpreted properly.
230 phHciNfc_ReaderB_Set_LayerData(
233 phNfc_sData_t *layer_data_info
237 * \ingroup grp_hci_nfc
239 * The phHciNfc_ReaderB_Set_AFI function updates application family
240 * identifier registry
242 * \param[in] psContext psContext is the pointer to HCI Layer
244 * \param[in] pHwRef pHwRef is the Information of
245 * the Device Interface Link
246 * \param[in] afi_value to afi value update
248 * \retval NFCSTATUS_SUCCESS Function execution is successful.
249 * \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
250 * could not be interpreted properly.
255 phHciNfc_ReaderB_Set_AFI(
260 #endif /* #ifndef PHHCINFC_RFREADERB_H */