mbed-os5 only for TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Committer:
kenjiArai
Date:
Tue Dec 31 06:02:27 2019 +0000
Revision:
1:9db0e321a9f4
Parent:
0:5b88d5760320
updated based on mbed-os5.15.0

Who changed what in which revision?

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