15d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*
25d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Copyright (C) 2010 NXP Semiconductors
35d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
45d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Licensed under the Apache License, Version 2.0 (the "License");
55d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * you may not use this file except in compliance with the License.
65d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * You may obtain a copy of the License at
75d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
85d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *      http://www.apache.org/licenses/LICENSE-2.0
95d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Unless required by applicable law or agreed to in writing, software
115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * distributed under the License is distributed on an "AS IS" BASIS,
125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * See the License for the specific language governing permissions and
145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * limitations under the License.
155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*!
185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* =========================================================================== *
195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                                                             *
205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                                                             *
215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \file  phHciNfc_RFReader.h                                                  *
225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \brief HCI Header for the RF Reader Management Gate.                        *
235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                                                             *
245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                                                             *
255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* Project: NFC-FRI-1.1                                                        *
265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                                                             *
275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Date: Fri Aug 14 17:01:28 2009 $                                           *
285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Author: ing04880 $                                                         *
295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Revision: 1.17 $                                                            *
305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $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 $                                                                *
315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                                                             *
325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* =========================================================================== *
335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef PHHCINFC_RFREADER_H
375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHHCINFC_RFREADER_H
385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@}*/
405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \name HCI
445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * File: \ref phHciNfc_RFReader.h
465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@{*/
495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHHCINFC_RF_READER_FILEREVISION "$Revision: 1.17 $" /**< \ingroup grp_file_attributes */
505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHHCINFC_RF_READER_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 */
515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@}*/
525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*
545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly***************************** Header File Inclusion ****************************
555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#include <phHciNfc_Generic.h>
585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*
605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly****************************** Macro Definitions *******************************
615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Events Requested by the Reader Application Gates */
635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define EVT_READER_REQUESTED            0x10U
645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define EVT_END_OPERATION               0x11U
655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Events Triggered by the Reader RF Gates */
675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define EVT_TARGET_DISCOVERED           0x10U
685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Commands from ETSI HCI Specification */
705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define WR_XCHGDATA                     0x10U
715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* NXP Additional Commands apart from ETSI HCI Specification */
735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Command to Check the presence of the card */
745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_WR_PRESCHECK                0x30U
755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Command to Activate the next card present in the field */
775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_WR_ACTIVATE_NEXT            0x31U
785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Command to Activate a card with its UID */
805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_WR_ACTIVATE_ID              0x32U
815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Command to Dispatch the card to UICC */
835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_WR_DISPATCH_TO_UICC         0x33U
845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* NXP Additional Events apart from ETSI HCI Specification */
865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Event to Release the Target and Restart The Wheel */
875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_EVT_RELEASE_TARGET          0x35U
885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Type Macro to Update the  RF Reader Information */
915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define HCI_RDR_ENABLE_TYPE             0x01U
935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define UICC_CARD_ACTIVATION_SUCCESS    0x00U
955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define UICC_CARD_ACTIVATION_ERROR      0x01U
965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define UICC_RDR_NOT_INTERESTED         0x02U
975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*
1005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly******************** Enumeration and Structure Definition **********************
1015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
1025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*
1065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*********************** Function Prototype Declaration *************************
1075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
1085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
1105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
1115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Initialise function creates and the opens RF Reader
1135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  Management Gate
1145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
1165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
1175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
1185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
1195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Reader RF Mgmt Gate Initialisation is pending.
1215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
1225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
1235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
1245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
1265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
1275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
1285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Initialise(
1295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t     *psHciContext,
1305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                void                    *pHwRef
1315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                         );
1325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
1335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
1345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Release function closes the opened RF Reader pipes
1365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  between the Host Controller Device and the NFC Device.
1375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
1395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
1405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
1415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
1425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Release of the Reader RF Management gate
1445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      resources are pending.
1455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
1465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
1475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
1485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
1505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
1515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
1525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Release(
1535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t     *psHciContext,
1545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                void                    *pHwRef
1555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                     );
1565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
1585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
1595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Update_Sequence function Resets/Updates the sequence
1615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  to the Specified RF Reader Sequence .
1625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
1645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
1655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  reader_seq              reader_seq is the Type of sequence update
1665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      required to reset .
1675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_SUCCESS           Updates/Resets the Sequence of the Reader
1695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                       RF Management gate Successsfully.
1705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
1715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
1725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval
1735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *   NFCSTATUS_INVALID_HCI_INFORMATION  The RF Reader Management information is
1745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      invalid.
1755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
1775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
1795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
1805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Update_Sequence(
1815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t     *psHciContext,
1825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_eSeqType_t     reader_seq
1835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                             );
1845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
1855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
1865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
1875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Enable_Discovery function Enables the RF Reader
1895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  Gates to discover the corresponding PICC Tags .
1905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
1925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
1935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
1945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
1955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
1965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Enable of the Reader RF Management gate
1975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Discovery is pending.
1985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
1995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
2005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
2015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
2035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
2055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
2065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Enable_Discovery(
2075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t     *psHciContext,
2085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                void                    *pHwRef
2095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                             );
2105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
2125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
2135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Discovery function Enables/Disables/Restart/Continue
2155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  the RF Reader Gates to discover the corresponding PICC Tags .
2165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
2185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
2195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
2205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
2215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Enable of the Reader RF Management gate
2235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Discovery is pending.
2245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
2255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
2265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
2275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
2295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
2325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
2335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Disable_Discovery function Disables the RF Reader
2355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  Gates discovery .
2365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
2385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
2395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
2405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
2415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Disable of the Reader RF Management gate
2435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Discovery is pending.
2445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
2455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
2465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
2475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
2495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
2515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
2525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Disable_Discovery(
2535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t     *psHciContext,
2545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                void                    *pHwRef
2555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                             );
2565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
2595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
2605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Info_Sequence function Gets the information
2625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  of the Tag discovered .
2635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
2655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
2665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
2675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
2685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Reception the information of the discoverd
2705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      tag is ongoing.
2715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
2725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
2735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
2745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
2765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
2785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
2795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Info_Sequence(
2805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                   phHciNfc_sContext_t      *psHciContext,
2815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                   void                     *pHwRef
2825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                               );
2835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
2845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
2855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
2865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Select function connects the
2885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  the selected tag by performing certain operation.
2895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
2915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
2925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
2935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
2945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  target_type             target_type is the type of the
2955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Target Device to be connected .
2965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
2975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           The selected tag initialisation for
2985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      transaction ongoing.
2995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
3005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
3015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
3025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
3035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
3045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
3065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
3075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Select(
3085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHciNfc_sContext_t     *psHciContext,
3095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    void                    *pHwRef,
3105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHal_eRemDevType_t     target_type
3115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                );
3125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
3155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
3165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
3175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Reactivate function reactivates the
3185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  the tag by performing reactivate operation.
3195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
3205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
3215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
3225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
3235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
3245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  target_type             target_type is the type of the
3255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Target Device to be reactivated .
3265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
3275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           The tag reactivation ongoing.
3285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
3295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
3305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
3315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
3325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
3335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
3365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
3375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Reactivate(
3385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHciNfc_sContext_t     *psHciContext,
3395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    void                    *pHwRef,
3405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHal_eRemDevType_t     target_type
3415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                );
3425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
3445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc
3455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   The phHciNfc_ReaderMgmt_Presence_Check function performs presence on ISO
3475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   cards.
3485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
3505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                       context Structure.
3515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \param[in]  pHwRef                  pHwRef is the Information of
3525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                       the Device Interface Link .
3535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \retval NFCSTATUS_PENDING           The presence check for tag is ongoing.
3555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
3565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                       could not be interpreted properly.
3575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*  \retval Other errors                Errors related to the other layers
3585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
3605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
3625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
3635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Presence_Check(
3645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                  phHciNfc_sContext_t       *psHciContext,
3655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                  void                      *pHwRef
3665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                  );
3675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
3695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc
3705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   The phHciNfc_ReaderMgmt_Activate_Next function activates and selects next
3725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   tag or target present in the RF Field .
3735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
3755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                       context Structure.
3765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \param[in]  pHwRef                  pHwRef is the Information of
3775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                       the Device Interface Link .
3785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \retval NFCSTATUS_PENDING           The activation of the next tag is ongoing.
3805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*   \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
3815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*                                       could not be interpreted properly.
3825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*  \retval Other errors                Errors related to the other layers
3835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*
3845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/
3855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
3875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
3885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Activate_Next(
3895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                  phHciNfc_sContext_t       *psHciContext,
3905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                  void                  *pHwRef
3915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                  );
3925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
3945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
3955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
3965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
3975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_UICC_Dispatch function de-activates the
3985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  the selected tag by de-selecting the tag and dispatch the Card to UICC.
3995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
4015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
4025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
4035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
4045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  target_type             target_type is the type of the
4055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Target Device to be de-selected .
4065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  re_poll                 If True: Start re-polling of the target
4075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      after the Target Device is de-activated
4085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      or else - continue discovery with next
4095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      technology.
4105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Dispatching the selected tag to UICC
4135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      is ongoing.
4145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
4155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
4165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
4175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
4195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
4215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
4225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_UICC_Dispatch(
4235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHciNfc_sContext_t     *psHciContext,
4245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    void                    *pHwRef,
4255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHal_eRemDevType_t     target_type
4265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                );
4275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
4305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
4315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Deselect function de-activates the
4335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  the selected tag by de-selecting the tag and restarting the discovery.
4345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
4365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
4375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
4385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
4395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  target_type             target_type is the type of the
4405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      Target Device to be de-selected .
4415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Terminating the operations between selected
4435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      tag is ongoing.
4445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
4455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
4465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
4475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
4495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
4515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
4525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Deselect(
4535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHciNfc_sContext_t     *psHciContext,
4545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    void                    *pHwRef,
4555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHal_eRemDevType_t     target_type,
4565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    uint8_t                 re_poll
4575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                );
4585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
4605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
4615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_ReaderMgmt_Exchange_Data function exchanges the
4635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  data to/from the selected tag .
4645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the pointer to HCI Layer
4665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      context Structure.
4675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
4685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
4695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  p_xchg_info             The tag exchange info contains the command type,
4705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      addr and data to be sent to the connected
4715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      remote target device.
4725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           Exchange of the data between the selected
4745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      tag is ongoing.
4755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
4765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
4775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
4785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
4805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
4825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
4835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_ReaderMgmt_Exchange_Data(
4845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHciNfc_sContext_t     *psHciContext,
4855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    void                    *pHwRef,
4865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                    phHciNfc_XchgInfo_t     *p_xchg_info
4875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                );
4885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
4915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
4925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
4935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_Send_RFReader_Command function sends the HCI Reader Gate
4955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  Specific Commands to the HCI Controller device.
4965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
4975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the context of
4985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the HCI Layer.
4995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
5005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
5015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pipe_id                 The Reader pipe to which the
5025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      command is being sent.
5035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  cmd                     The HCI Reader Gate specific command
5045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      sent to a Reader pipe .
5055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           ETSI HCI RF Reader gate Command
5085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      to be sent is pending.
5095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
5105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
5115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
5125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
5145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
5155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
5165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
5175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_Send_RFReader_Command (
5185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t *psHciContext,
5195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                void                *pHwRef,
5205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                uint8_t             pipe_id,
5215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                uint8_t             cmd
5225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                    );
5235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
5245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**
5255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * \ingroup grp_hci_nfc
5265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  The phHciNfc_Send_RFReader_Event function sends the HCI Reader Gate
5285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  Specific Events to the HCI Controller device.
5295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  psHciContext            psHciContext is the context of
5315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the HCI Layer.
5325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pHwRef                  pHwRef is the Information of
5335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      the Device Interface Link .
5345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  pipe_id                 The Reader pipe to which the
5355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      command is being sent.
5365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \param[in]  event                   The HCI Reader Gate specific event
5375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      sent to a Reader pipe .
5385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_PENDING           ETSI HCI RF Reader gate Event
5415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      to be sent is pending.
5425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters
5435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *                                      could not be interpreted properly.
5445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *  \retval Other errors                Errors related to the other layers
5455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *
5465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */
5475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
5485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern
5495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS
5505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_Send_RFReader_Event (
5515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                phHciNfc_sContext_t *psHciContext,
5525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                void                *pHwRef,
5535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                uint8_t             pipe_id,
5545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                                uint8_t             event
5555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly                    );
5565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
5575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif /* PHHCINFC_RFREADER_H */
5585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly
559