92 lines
2.2 KiB
C
92 lines
2.2 KiB
C
/*
|
|
* 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 */
|
|
|
|
|
|
|
|
|