Home | History | Annotate | Download | only in src
      1 /*
      2  * Copyright (C) 2010 NXP Semiconductors
      3  *
      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
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     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.
     15  */
     16 
     17 /*!
     18 *\file  phLibNfc_ioctl.h
     19 *\brief Contains LibNfc IOCTL details.
     20 *Project:   NFC-FRI 1.1
     21 * $Workfile:: phLibNfc_ioctl.h $
     22 * $Modtime::          $
     23 * $Author: ing07299 $
     24 * $Revision: 1.9 $
     25 * $Aliases: NFC_FRI1.1_WK949_PREP1,NFC_FRI1.1_WK949_SDK_INT,NFC_FRI1.1_WK943_R32_10,NFC_FRI1.1_WK943_R32_13,NFC_FRI1.1_WK1003_SDK,NFC_FRI1.1_WK943_R32_14,NFC_FRI1.1_WK1007_R33_1,NFC_FRI1.1_WK1008_SDK,NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1007_SDK,NFC_FRI1.1_WK1014_SDK,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1019_SDK,NFC_FRI1.1_WK1024_SDK $
     26 *\defgroup grp_lib_ioctl IOCTL code details
     27 */
     28 
     29 
     30 #ifndef PHLIBNFCIOCTL_H /* */
     31 #define PHLIBNFCIOCTL_H /* */
     32 
     33 #include <phNfcIoctlCode.h>
     34 #include<phLibNfc.h>
     35 
     36 /**
     37 * \ingroup  grp_lib_ioctl
     38 * \brief   Allows to initiate firmware download to connected PN544
     39 *
     40 */
     41 #define PHLIBNFC_FW_DOWNLOAD    NFC_FW_DOWNLOAD
     42 /**
     43 * \ingroup  grp_lib_ioctl
     44 * \brief   Allows to read memory from connected PN544 .
     45 *
     46 */
     47 #define PHLIBNFC_MEM_READ       NFC_MEM_READ
     48 
     49 /**
     50 * \ingroup  grp_lib_ioctl
     51 * \brief   Allows to write PN544 memory.
     52 *
     53 */
     54 #define PHLIBNFC_MEM_WRITE      NFC_MEM_WRITE
     55 
     56 /**
     57 * \ingroup  grp_lib_ioctl
     58 * \brief   Allows to do Antenna test.
     59 *
     60 */
     61 #define	PHLIBNFC_ANTENNA_TEST    DEVMGMT_ANTENNA_TEST
     62 /**
     63 * \ingroup  grp_lib_ioctl
     64 * \brief   Allows to do SWP test.
     65 *
     66 */
     67 #define	PHLIBNFC_SWP_TEST		 DEVMGMT_SWP_TEST
     68 /**
     69 * \ingroup  grp_lib_ioctl
     70 * \brief   Allows to do PRBS test.
     71 *
     72 */
     73 #define	PHLIBNFC_PRBS_TEST       DEVMGMT_PRBS_TEST
     74 
     75 /**
     76 * \ingroup  grp_lib_ioctl
     77 * \brief   Allows to switch UICC mode.
     78 *
     79 */
     80 #define	PHLIBNFC_SWITCH_SWP_MODE   NFC_SWITCH_SWP_MODE
     81 
     82 typedef struct
     83 {
     84   void                          *pCliCntx;
     85   pphLibNfc_IoctlCallback_t     CliRspCb;
     86   phHal_sHwReference_t          *psHwReference;
     87   phNfc_sData_t*                pOutParam;
     88   uint16_t                      IoctlCode;
     89 }phLibNfc_Ioctl_Cntx_t;
     90 
     91 #endif /* PHLIBNFCIOCTL_H */
     92 
     93 
     94 
     95 
     96