Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
nfc_errors.h
00001 /* 00002 * Copyright (c) 2013-2018, ARM Limited, All Rights Reserved 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00006 * not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 /** 00018 * \file nfc_errors.h 00019 * \copyright Copyright (c) ARM Ltd 2013 00020 * \author Donatien Garnier 00021 * \details NFC Error codes 00022 */ 00023 00024 /** \addtogroup Core 00025 * @{ 00026 * \name Error codes 00027 * @{ 00028 */ 00029 00030 #ifndef NFC_ERRORS_H_ 00031 #define NFC_ERRORS_H_ 00032 00033 #define NFC_OK 0 ///< No error 00034 00035 #define NFC_ERR_UNKNOWN 1 ///< Unknown error 00036 #define NFC_ERR_LENGTH 2 ///< Length of parameter is wrong 00037 #define NFC_ERR_NOT_FOUND 3 ///< Could not find item 00038 #define NFC_ERR_UNSUPPORTED 4 ///< This action is not supported 00039 #define NFC_ERR_PARAMS 5 ///< These parameters are not correct 00040 #define NFC_ERR_BUFFER_TOO_SMALL 6 ///< The buffer is too small to store all data (buffer overflow) 00041 #define NFC_ERR_TIMEOUT 7 ///< Timeout 00042 #define NFC_ERR_CRC 8 ///< Checksum does not match 00043 #define NFC_ERR_NOPEER 9 ///< No target/initiator in vicinity 00044 #define NFC_ERR_PARITY 10 ///< Parity error 00045 #define NFC_ERR_FIELD 11 ///< No RF field detected (or RF field lost) 00046 #define NFC_ERR_COLLISION 12 ///< Collision detected 00047 #define NFC_ERR_WRONG_COMM 13 ///< Communication error 00048 #define NFC_ERR_PROTOCOL 14 ///< Protocol is not conformant 00049 #define NFC_ERR_BUSY 15 ///< Resource is busy 00050 #define NFC_ERR_CONTROLLER 16 ///< Controller failure 00051 #define NFC_ERR_HALTED 17 ///< Target has been halted 00052 #define NFC_ERR_MAC 18 ///< MAC does not match 00053 #define NFC_ERR_UNDERFLOW 19 ///< Could not send data in time 00054 #define NFC_ERR_DISCONNECTED 20 ///< Link has disconnected 00055 #define NFC_ERR_ABORTED 21 ///< Command was aborted 00056 00057 /** Type for NFC errors 00058 */ 00059 typedef int nfc_err_t; 00060 00061 #endif /* NFC_ERRORS_H_ */ 00062 00063 /** 00064 * @} 00065 * @} 00066 * */
Generated on Tue Aug 9 2022 00:37:16 by
