• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /**
19  * \file phNfcIoctlCode.h
20  * \brief IOCTL Code Definition.
21  *
22  *  This file contains control codes for the IOCTL function.
23  *
24  *
25  * Project: NFC MW / HAL
26  *
27  * $Date: Wed May 26 16:44:03 2010 $
28  * $Author: ing04880 $
29  * $Revision: 1.11 $
30  * $Aliases: NFC_FRI1.1_WK1023_R35_1 $
31  *
32  */
33 
34 
35 #ifndef PHNFCIOCTLCODE_H /* */
36 #define PHNFCIOCTLCODE_H /* */
37 
38 /**
39  *  \name IOCTL Codes
40  *
41  *  File: \ref phNfcIoctlCode.h
42  *
43  */
44 /*@{*/
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 */
47 /*@}*/
48 
49 
50 
51 /* The Return Status for the IOCTL Operation */
52 #define NFC_IO_SUCCESS                      (0x90U)
53 #define NFC_IO_ERROR                        (0x9FU)
54 
55 
56 
57 
58 #define	NFC_GPIO_READ				        (0xF82AU)
59 
60 #define	NFC_FW_DOWNLOAD				        (0x09FFU)
61 #define	NFC_FW_DOWNLOAD_CHECK		        (0x09F7U)
62 
63 #define NFC_ANTENNA_CWG                     (0x989FU)
64 
65 
66 /* The PN544 DEVICE Management Control : 0x90*/
67 #define DEVMGMT_CTL							(0x90U)
68 
69 
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))
76 
77 #define NFC_MEM_READ                        (0xD0U)
78 #define NFC_MEM_WRITE                       (0xD1U)
79 
80 #define NFC_SWITCH_SWP_MODE                 (0xEE)
81 
82 
83 #if 0
84 #define	DEVMGMT_HOSTINTERFACE_TEST		    ((DEVMGMT_CTL << 8)|(0x23U))
85 #endif
86 
87 
88 #endif /* PHNFCIOCTLCODE */
89 
90 
91 
92 
93