Mistake on this page?
Report an issue in GitHub or email us
nfc_errors.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2018, ARM Limited, All Rights Reserved
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 /**
18  * \file nfc_errors.h
19  * \copyright Copyright (c) ARM Ltd 2013
20  * \author Donatien Garnier
21  * \details NFC Error codes
22  */
23 
24 /** \addtogroup Core
25  * @{
26  * \name Error codes
27  * @{
28  */
29 
30 #ifndef NFC_ERRORS_H_
31 #define NFC_ERRORS_H_
32 
33 #define NFC_OK 0 ///< No error
34 
35 #define NFC_ERR_UNKNOWN 1 ///< Unknown error
36 #define NFC_ERR_LENGTH 2 ///< Length of parameter is wrong
37 #define NFC_ERR_NOT_FOUND 3 ///< Could not find item
38 #define NFC_ERR_UNSUPPORTED 4 ///< This action is not supported
39 #define NFC_ERR_PARAMS 5 ///< These parameters are not correct
40 #define NFC_ERR_BUFFER_TOO_SMALL 6 ///< The buffer is too small to store all data (buffer overflow)
41 #define NFC_ERR_TIMEOUT 7 ///< Timeout
42 #define NFC_ERR_CRC 8 ///< Checksum does not match
43 #define NFC_ERR_NOPEER 9 ///< No target/initiator in vicinity
44 #define NFC_ERR_PARITY 10 ///< Parity error
45 #define NFC_ERR_FIELD 11 ///< No RF field detected (or RF field lost)
46 #define NFC_ERR_COLLISION 12 ///< Collision detected
47 #define NFC_ERR_WRONG_COMM 13 ///< Communication error
48 #define NFC_ERR_PROTOCOL 14 ///< Protocol is not conformant
49 #define NFC_ERR_BUSY 15 ///< Resource is busy
50 #define NFC_ERR_CONTROLLER 16 ///< Controller failure
51 #define NFC_ERR_HALTED 17 ///< Target has been halted
52 #define NFC_ERR_MAC 18 ///< MAC does not match
53 #define NFC_ERR_UNDERFLOW 19 ///< Could not send data in time
54 #define NFC_ERR_DISCONNECTED 20 ///< Link has disconnected
55 #define NFC_ERR_ABORTED 21 ///< Command was aborted
56 
57 /** Type for NFC errors
58  */
59 typedef int nfc_err_t;
60 
61 #endif /* NFC_ERRORS_H_ */
62 
63 /**
64  * @}
65  * @}
66  * */
int nfc_err_t
Type for NFC errors.
Definition: nfc_errors.h:59
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.