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_Jewel.h * 225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \brief HCI Jewel Management Routines. * 235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* * 245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* * 255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* Project: NFC-FRI-1.1 * 265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* * 275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Date: Mon Mar 29 17:34:50 2010 $ * 285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Author: ing04880 $ * 295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Revision: 1.3 $ * 305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Aliases: 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#ifndef PHHCINFC_JEWEL_H 365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHHCINFC_JEWEL_H 375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@}*/ 395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \name HCI 435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* File: \ref phHciNfc_Jewel.h 455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@{*/ 485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHHCINFC_JEWEL_FILEREVISION "$Revision: 1.3 $" /**< \ingroup grp_file_attributes */ 495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHHCINFC_JEWEL_FILEALIASES "$Aliases: 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 */ 505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@}*/ 515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly***************************** Header File Inclusion **************************** 545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#include <phHciNfc_Generic.h> 575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly****************************** Macro Definitions ******************************* 605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Commands exposed to the upper layer */ 635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Enable the Jewel */ 655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define HCI_JEWEL_ENABLE 0x01U 665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define HCI_JEWEL_INFO_SEQ 0x02U 675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Jewel read write commands */ 695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_JEWEL_RAW 0x23U 705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly******************** Enumeration and Structure Definition ********************** 735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellytypedef enum phHciNfc_Jewel_Seq{ 755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly JEWEL_READID_SEQUENCE, 765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly JEWEL_END_SEQUENCE, 775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly JEWEL_INVALID_SEQ 785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly} phHciNfc_Jewel_Seq_t; 795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Information structure for the Jewel Gate */ 815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellytypedef struct phHciNfc_Jewel_Info{ 825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* Current running Sequence of the Jewel Management */ 835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_Jewel_Seq_t current_seq; 845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* Next running Sequence of the Jewel Management */ 855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_Jewel_Seq_t next_seq; 865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* Pointer to the Jewel pipe information */ 875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_Pipe_Info_t *p_pipe_info; 885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t pipe_id; 895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* Flag to say about the multiple targets */ 905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t multiple_tgts_found; 915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* Jewel information */ 925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHal_sRemoteDevInformation_t s_jewel_info; 935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* Enable or disable reader gate */ 945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t enable_jewel_gate; 955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly /* UICC re-activation status */ 965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t uicc_activation; 975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly} phHciNfc_Jewel_Info_t; 985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 1005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*********************** Function Prototype Declaration ************************* 1015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 1025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*! 1045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \brief Allocates the resources of Jewel management gate. 1055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* This function Allocates the resources of the Jewel management 1075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* gate Information Structure. 1085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 1105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 1115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 1125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Jewel_Init_Resources( 1135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_sContext_t *psHciContext 1145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ); 1155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 1175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc 1185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* The phHciNfc_Jewel_Get_PipeID function gives the pipe id of the Jewel 1205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* gate 1215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] psHciContext psHciContext is the pointer to HCI Layer 1235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* context Structure. 1245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] pHwRef pHwRef is the Information of 1255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* the Device Interface Link 1265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_SUCCESS Function execution is successful. 1285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters 1295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* could not be interpreted properly. 1305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 1325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 1335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 1345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Jewel_Get_PipeID( 1355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_sContext_t *psHciContext, 1365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t *ppipe_id 1375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ); 1385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 1415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc 1425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* The phHciNfc_Jewel_Update_PipeInfo function updates the pipe_id of the Jewel 1445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* gate management Structure. 1455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] psHciContext psHciContext is the pointer to HCI Layer 1475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* context Structure. 1485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] pipeID pipeID of the Jewel gate 1495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] pPipeInfo Update the pipe Information of the reader 1505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* A gate 1515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_SUCCESS Function execution is successful. 1535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters 1545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* could not be interpreted properly. 1555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 1575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 1595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 1605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Jewel_Update_PipeInfo( 1615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_sContext_t *psHciContext, 1625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t pipeID, 1635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_Pipe_Info_t *pPipeInfo 1645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ); 1655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 1675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc 1685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* The phHciNfc_Jewel_Update_Info function updated the jewel gate info. 1705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] psHciContext psHciContext is the pointer to HCI Layer 1725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* context Structure. 1735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] infotype To enable the jewel gate 1745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] jewel_info Jewel gate info 1755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_SUCCESS Function execution is successful. 1775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters 1785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* could not be interpreted properly. 1795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 1805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 1815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 1825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Jewel_Update_Info( 1835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_sContext_t *psHciContext, 1845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t infotype, 1855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly void *jewel_info 1865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ); 1875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 1895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc 1905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* The phHciNfc_Jewel_Info_Sequence function executes the sequence of operations, to 1925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* get the ID. 1935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] psHciContext psHciContext is the pointer to HCI Layer 1955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* context Structure. 1965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] pHwRef pHwRef is the Information of 1975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* the Device Interface Link 1985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 1995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_SUCCESS Function execution is successful. 2005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters 2015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* could not be interpreted properly. 2025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 2045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 2055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 2065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Jewel_Info_Sequence ( 2075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly void *psHciHandle, 2085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly void *pHwRef 2095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ); 2105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 2125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc 2135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* The phHciNfc_Send_Jewel_Command function executes the command sent by the 2155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* upper layer, depending on the commands defined. 2165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] psContext psContext 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* \param[in] pipe_id pipeID of the jewel gate 2225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] cmd command that needs to be sent to the device 2235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] length information length sent by the caller 2245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] params information related to the command 2255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_SUCCESS Function execution is successful. 2275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters 2285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* could not be interpreted properly. 2295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 2305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 2315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 2325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Send_Jewel_Command( 2335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_sContext_t *psContext, 2345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly void *pHwRef, 2355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t pipe_id, 2365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly uint8_t cmd 2375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ); 2385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 2405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \ingroup grp_hci_nfc 2415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* The phHciNfc_Jewel_GetRID function executes the command to read the ID 2435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] psHciContext psHciContext is the pointer to HCI Layer 2455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* context Structure. 2465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \param[in] pHwRef pHwRef is the Information of 2475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* the Device Interface Link 2485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 2495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_SUCCESS Function execution is successful. 2505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \retval NFCSTATUS_INVALID_PARAMETER One or more of the supplied parameters 2515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* could not be interpreted properly. 2525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 2535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pellyextern 2545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyNFCSTATUS 2555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick PellyphHciNfc_Jewel_GetRID( 2565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly phHciNfc_sContext_t *psHciContext, 2575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly void *pHwRef); 2585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif /* #ifndef PHHCINFC_JEWEL_H */ 2605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 262