1 /** 2 * \file 3 * 4 * \brief Error code definitions. 5 * 6 * This file defines various status codes returned by functions, 7 * indicating success or failure as well as what kind of failure. 8 * 9 * Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. 10 * 11 * \asf_license_start 12 * 13 * \page License 14 * 15 * Subject to your compliance with these terms, you may use Microchip 16 * software and any derivatives exclusively with Microchip products. 17 * It is your responsibility to comply with third party license terms applicable 18 * to your use of third party software (including open source software) that 19 * may accompany Microchip software. 20 * 21 * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, 22 * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, 23 * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, 24 * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE 25 * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL 26 * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE 27 * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE 28 * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT 29 * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY 30 * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, 31 * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. 32 * 33 * \asf_license_stop 34 * 35 */ 36 37 #ifndef ERROR_CODES_H_INCLUDED 38 #define ERROR_CODES_H_INCLUDED 39 40 #define ERR_NONE 0 41 #define ERR_INVALID_DATA -1 42 #define ERR_NO_CHANGE -2 43 #define ERR_ABORTED -3 44 #define ERR_BUSY -4 45 #define ERR_SUSPEND -5 46 #define ERR_IO -6 47 #define ERR_REQ_FLUSHED -7 48 #define ERR_TIMEOUT -8 49 #define ERR_BAD_DATA -9 50 #define ERR_NOT_FOUND -10 51 #define ERR_UNSUPPORTED_DEV -11 52 #define ERR_NO_MEMORY -12 53 #define ERR_INVALID_ARG -13 54 #define ERR_BAD_ADDRESS -14 55 #define ERR_BAD_FORMAT -15 56 #define ERR_BAD_FRQ -16 57 #define ERR_DENIED -17 58 #define ERR_ALREADY_INITIALIZED -18 59 #define ERR_OVERFLOW -19 60 #define ERR_NOT_INITIALIZED -20 61 #define ERR_SAMPLERATE_UNAVAILABLE -21 62 #define ERR_RESOLUTION_UNAVAILABLE -22 63 #define ERR_BAUDRATE_UNAVAILABLE -23 64 #define ERR_PACKET_COLLISION -24 65 #define ERR_PROTOCOL -25 66 #define ERR_PIN_MUX_INVALID -26 67 #define ERR_UNSUPPORTED_OP -27 68 #define ERR_NO_RESOURCE -28 69 #define ERR_NOT_READY -29 70 #define ERR_FAILURE -30 71 #define ERR_WRONG_LENGTH -31 72 73 #endif 74