Mbed OS Reference
Loading...
Searching...
No Matches
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 nfc-errors Error Codes
25 * \ingroup nfc
26 * @{
27 * \name Error codes
28 * @{
29 */
30
31#ifndef NFC_ERRORS_H_
32#define NFC_ERRORS_H_
33
34#define NFC_OK 0 ///< No error
35
36#define NFC_ERR_UNKNOWN 1 ///< Unknown error
37#define NFC_ERR_LENGTH 2 ///< Length of parameter is wrong
38#define NFC_ERR_NOT_FOUND 3 ///< Could not find item
39#define NFC_ERR_UNSUPPORTED 4 ///< This action is not supported
40#define NFC_ERR_PARAMS 5 ///< These parameters are not correct
41#define NFC_ERR_BUFFER_TOO_SMALL 6 ///< The buffer is too small to store all data (buffer overflow)
42#define NFC_ERR_TIMEOUT 7 ///< Timeout
43#define NFC_ERR_CRC 8 ///< Checksum does not match
44#define NFC_ERR_NOPEER 9 ///< No target/initiator in vicinity
45#define NFC_ERR_PARITY 10 ///< Parity error
46#define NFC_ERR_FIELD 11 ///< No RF field detected (or RF field lost)
47#define NFC_ERR_COLLISION 12 ///< Collision detected
48#define NFC_ERR_WRONG_COMM 13 ///< Communication error
49#define NFC_ERR_PROTOCOL 14 ///< Protocol is not conformant
50#define NFC_ERR_BUSY 15 ///< Resource is busy
51#define NFC_ERR_CONTROLLER 16 ///< Controller failure
52#define NFC_ERR_HALTED 17 ///< Target has been halted
53#define NFC_ERR_MAC 18 ///< MAC does not match
54#define NFC_ERR_UNDERFLOW 19 ///< Could not send data in time
55#define NFC_ERR_DISCONNECTED 20 ///< Link has disconnected
56#define NFC_ERR_ABORTED 21 ///< Command was aborted
57
58/** Type for NFC errors
59 */
60typedef int nfc_err_t;
61
62#endif /* NFC_ERRORS_H_ */
63
64/**
65 * @}
66 * @}
67 * */
int nfc_err_t
Type for NFC errors.
Definition: nfc_errors.h:60