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.
19 * \file phNfcIoctlCode.h
20 * \brief IOCTL Code Definition.
22 * This file contains control codes for the IOCTL function.
25 * Project: NFC MW / HAL
27 * $Date: Wed May 26 16:44:03 2010 $
30 * $Aliases: NFC_FRI1.1_WK1023_R35_1 $
35 #ifndef PHNFCIOCTLCODE_H /* */
36 #define PHNFCIOCTLCODE_H /* */
41 * File: \ref phNfcIoctlCode.h
45 #define PHNFCIOCTLCODE_FILEREVISION "$Revision: 1.11 $" /**< \ingroup grp_file_attributes */
46 #define PHNFCIOCTLCODE_FILEALIASES "$Aliases: NFC_FRI1.1_WK1023_R35_1 $" /**< \ingroup grp_file_attributes */
51 /* The Return Status for the IOCTL Operation */
52 #define NFC_IO_SUCCESS (0x90U)
53 #define NFC_IO_ERROR (0x9FU)
58 #define NFC_GPIO_READ (0xF82AU)
60 #define NFC_FW_DOWNLOAD (0x09FFU)
61 #define NFC_FW_DOWNLOAD_CHECK (0x09F7U)
63 #define NFC_ANTENNA_CWG (0x989FU)
66 /* The PN544 DEVICE Management Control : 0x90*/
67 #define DEVMGMT_CTL (0x90U)
70 /* Ioctl codes for PN544 System Tests */
71 #define DEVMGMT_TEST_MASK (0xFFU)
72 #define DEVMGMT_ANTENNA_TEST ((DEVMGMT_CTL << 8)|(0x20U))
73 #define DEVMGMT_SWP_TEST ((DEVMGMT_CTL << 8)|(0x21U))
74 #define DEVMGMT_NFCWI_TEST ((DEVMGMT_CTL << 8)|(0x22U))
75 #define DEVMGMT_PRBS_TEST ((DEVMGMT_CTL << 8)|(0x25U))
77 #define NFC_MEM_READ (0xD0U)
78 #define NFC_MEM_WRITE (0xD1U)
80 #define NFC_SWITCH_SWP_MODE (0xEE)
84 #define DEVMGMT_HOSTINTERFACE_TEST ((DEVMGMT_CTL << 8)|(0x23U))
88 #endif /* PHNFCIOCTLCODE */