blob: a9e3f1ff3c8f8da4217dc72b5da710917a6bca66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*
* Copyright (C) 2010 NXP Semiconductors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* \file phNfcIoctlCode.h
* \brief IOCTL Code Definition.
*
* This file contains control codes for the IOCTL function.
*
*
* Project: NFC MW / HAL
*
* $Date: Wed May 26 16:44:03 2010 $
* $Author: ing04880 $
* $Revision: 1.11 $
* $Aliases: NFC_FRI1.1_WK1023_R35_1 $
*
*/
#ifndef PHNFCIOCTLCODE_H /* */
#define PHNFCIOCTLCODE_H /* */
/**
* \name IOCTL Codes
*
* File: \ref phNfcIoctlCode.h
*
*/
/*@{*/
#define PHNFCIOCTLCODE_FILEREVISION "$Revision: 1.11 $" /**< \ingroup grp_file_attributes */
#define PHNFCIOCTLCODE_FILEALIASES "$Aliases: NFC_FRI1.1_WK1023_R35_1 $" /**< \ingroup grp_file_attributes */
/*@}*/
/* The Return Status for the IOCTL Operation */
#define NFC_IO_SUCCESS (0x90U)
#define NFC_IO_ERROR (0x9FU)
#define NFC_GPIO_READ (0xF82AU)
#define NFC_FW_DOWNLOAD (0x09FFU)
#define NFC_FW_DOWNLOAD_CHECK (0x09F7U)
#define NFC_ANTENNA_CWG (0x989FU)
/* The PN544 DEVICE Management Control : 0x90*/
#define DEVMGMT_CTL (0x90U)
/* Ioctl codes for PN544 System Tests */
#define DEVMGMT_TEST_MASK (0xFFU)
#define DEVMGMT_ANTENNA_TEST ((DEVMGMT_CTL << 8)|(0x20U))
#define DEVMGMT_SWP_TEST ((DEVMGMT_CTL << 8)|(0x21U))
#define DEVMGMT_NFCWI_TEST ((DEVMGMT_CTL << 8)|(0x22U))
#define DEVMGMT_PRBS_TEST ((DEVMGMT_CTL << 8)|(0x25U))
#define NFC_MEM_READ (0xD0U)
#define NFC_MEM_WRITE (0xD1U)
#define NFC_SWITCH_SWP_MODE (0xEE)
#if 0
#define DEVMGMT_HOSTINTERFACE_TEST ((DEVMGMT_CTL << 8)|(0x23U))
#endif
#endif /* PHNFCIOCTLCODE */
|