2 * Copyright (C) 2010 NXP Semiconductors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
19 * \file phNfcIoctlCode.h
\r
20 * \brief IOCTL Code Definition.
\r
22 * This file contains control codes for the IOCTL function.
\r
25 * Project: NFC MW / HAL
\r
27 * $Date: Wed May 26 16:44:03 2010 $
\r
28 * $Author: ing04880 $
\r
30 * $Aliases: NFC_FRI1.1_WK1023_R35_1 $
\r
35 #ifndef PHNFCIOCTLCODE_H /* */
\r
36 #define PHNFCIOCTLCODE_H /* */
\r
41 * File: \ref phNfcIoctlCode.h
\r
45 #define PHNFCIOCTLCODE_FILEREVISION "$Revision: 1.11 $" /**< \ingroup grp_file_attributes */
\r
46 #define PHNFCIOCTLCODE_FILEALIASES "$Aliases: NFC_FRI1.1_WK1023_R35_1 $" /**< \ingroup grp_file_attributes */
\r
51 /* The Return Status for the IOCTL Operation */
\r
52 #define NFC_IO_SUCCESS (0x90U)
\r
53 #define NFC_IO_ERROR (0x9FU)
\r
58 #define NFC_GPIO_READ (0xF82AU)
\r
60 #define NFC_FW_DOWNLOAD (0x09FFU)
\r
61 #define NFC_FW_DOWNLOAD_CHECK (0x09F7U)
\r
63 #define NFC_ANTENNA_CWG (0x989FU)
\r
66 /* The PN544 DEVICE Management Control : 0x90*/
\r
67 #define DEVMGMT_CTL (0x90U)
\r
70 /* Ioctl codes for PN544 System Tests */
\r
71 #define DEVMGMT_TEST_MASK (0xFFU)
\r
72 #define DEVMGMT_ANTENNA_TEST ((DEVMGMT_CTL << 8)|(0x20U))
\r
73 #define DEVMGMT_SWP_TEST ((DEVMGMT_CTL << 8)|(0x21U))
\r
74 #define DEVMGMT_NFCWI_TEST ((DEVMGMT_CTL << 8)|(0x22U))
\r
75 #define DEVMGMT_PRBS_TEST ((DEVMGMT_CTL << 8)|(0x25U))
\r
77 #define NFC_MEM_READ (0xD0U)
\r
78 #define NFC_MEM_WRITE (0xD1U)
\r
80 #define NFC_SWITCH_SWP_MODE (0xEE)
\r
84 #define DEVMGMT_HOSTINTERFACE_TEST ((DEVMGMT_CTL << 8)|(0x23U))
\r
88 #endif /* PHNFCIOCTLCODE */
\r