t
Fork of mbed-dev by
targets/TARGET_Maxim/TARGET_MAX32625/mxc/mxc_errors.h@178:c26431f84b0d, 2017-11-09 (annotated)
- Committer:
- amithy
- Date:
- Thu Nov 09 22:14:37 2017 +0000
- Revision:
- 178:c26431f84b0d
- Parent:
- 150:02e0a0aed4ec
test export
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 150:02e0a0aed4ec | 1 | /******************************************************************************* |
<> | 150:02e0a0aed4ec | 2 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
<> | 150:02e0a0aed4ec | 3 | * |
<> | 150:02e0a0aed4ec | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
<> | 150:02e0a0aed4ec | 5 | * copy of this software and associated documentation files (the "Software"), |
<> | 150:02e0a0aed4ec | 6 | * to deal in the Software without restriction, including without limitation |
<> | 150:02e0a0aed4ec | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
<> | 150:02e0a0aed4ec | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
<> | 150:02e0a0aed4ec | 9 | * Software is furnished to do so, subject to the following conditions: |
<> | 150:02e0a0aed4ec | 10 | * |
<> | 150:02e0a0aed4ec | 11 | * The above copyright notice and this permission notice shall be included |
<> | 150:02e0a0aed4ec | 12 | * in all copies or substantial portions of the Software. |
<> | 150:02e0a0aed4ec | 13 | * |
<> | 150:02e0a0aed4ec | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
<> | 150:02e0a0aed4ec | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
<> | 150:02e0a0aed4ec | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
<> | 150:02e0a0aed4ec | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
<> | 150:02e0a0aed4ec | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
<> | 150:02e0a0aed4ec | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
<> | 150:02e0a0aed4ec | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
<> | 150:02e0a0aed4ec | 21 | * |
<> | 150:02e0a0aed4ec | 22 | * Except as contained in this notice, the name of Maxim Integrated |
<> | 150:02e0a0aed4ec | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
<> | 150:02e0a0aed4ec | 24 | * Products, Inc. Branding Policy. |
<> | 150:02e0a0aed4ec | 25 | * |
<> | 150:02e0a0aed4ec | 26 | * The mere transfer of this software does not imply any licenses |
<> | 150:02e0a0aed4ec | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
<> | 150:02e0a0aed4ec | 28 | * trademarks, maskwork rights, or any other form of intellectual |
<> | 150:02e0a0aed4ec | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
<> | 150:02e0a0aed4ec | 30 | * ownership rights. |
<> | 150:02e0a0aed4ec | 31 | * |
<> | 150:02e0a0aed4ec | 32 | * $Date: 2016-05-18 13:19:43 -0500 (Wed, 18 May 2016) $ |
<> | 150:02e0a0aed4ec | 33 | * $Revision: 22894 $ |
<> | 150:02e0a0aed4ec | 34 | * |
<> | 150:02e0a0aed4ec | 35 | ******************************************************************************/ |
<> | 150:02e0a0aed4ec | 36 | |
<> | 150:02e0a0aed4ec | 37 | /** |
<> | 150:02e0a0aed4ec | 38 | * @file mxc_errors.h |
<> | 150:02e0a0aed4ec | 39 | * @brief List of Common Errors |
<> | 150:02e0a0aed4ec | 40 | * @note A Negative Error Convention is used to avoid conflict with positive |
<> | 150:02e0a0aed4ec | 41 | * Non-Error returns. |
<> | 150:02e0a0aed4ec | 42 | * |
<> | 150:02e0a0aed4ec | 43 | */ |
<> | 150:02e0a0aed4ec | 44 | |
<> | 150:02e0a0aed4ec | 45 | #ifndef _ERRORS_H_ |
<> | 150:02e0a0aed4ec | 46 | #define _ERRORS_H_ |
<> | 150:02e0a0aed4ec | 47 | |
<> | 150:02e0a0aed4ec | 48 | /** No Error */ |
<> | 150:02e0a0aed4ec | 49 | #define E_NO_ERROR 0 |
<> | 150:02e0a0aed4ec | 50 | /** No Error, success */ |
<> | 150:02e0a0aed4ec | 51 | #define E_SUCCESS 0 |
<> | 150:02e0a0aed4ec | 52 | /** Pointer is NULL */ |
<> | 150:02e0a0aed4ec | 53 | #define E_NULL_PTR -1 |
<> | 150:02e0a0aed4ec | 54 | /** No such device */ |
<> | 150:02e0a0aed4ec | 55 | #define E_NO_DEVICE -2 |
<> | 150:02e0a0aed4ec | 56 | /** Parameter not acceptable */ |
<> | 150:02e0a0aed4ec | 57 | #define E_BAD_PARAM -3 |
<> | 150:02e0a0aed4ec | 58 | /** Value not valid or allowed */ |
<> | 150:02e0a0aed4ec | 59 | #define E_INVALID -4 |
<> | 150:02e0a0aed4ec | 60 | /** Module not initialized */ |
<> | 150:02e0a0aed4ec | 61 | #define E_UNINITIALIZED -5 |
<> | 150:02e0a0aed4ec | 62 | /** Busy now, try again later */ |
<> | 150:02e0a0aed4ec | 63 | #define E_BUSY -6 |
<> | 150:02e0a0aed4ec | 64 | /** Operation not allowed in current state */ |
<> | 150:02e0a0aed4ec | 65 | #define E_BAD_STATE -7 |
<> | 150:02e0a0aed4ec | 66 | /** Generic error */ |
<> | 150:02e0a0aed4ec | 67 | #define E_UNKNOWN -8 |
<> | 150:02e0a0aed4ec | 68 | /** General communications error */ |
<> | 150:02e0a0aed4ec | 69 | #define E_COMM_ERR -9 |
<> | 150:02e0a0aed4ec | 70 | /** Operation timed out */ |
<> | 150:02e0a0aed4ec | 71 | #define E_TIME_OUT -10 |
<> | 150:02e0a0aed4ec | 72 | /** Expected response did not occur */ |
<> | 150:02e0a0aed4ec | 73 | #define E_NO_RESPONSE -11 |
<> | 150:02e0a0aed4ec | 74 | /** Operations resulted in unexpected overflow */ |
<> | 150:02e0a0aed4ec | 75 | #define E_OVERFLOW -12 |
<> | 150:02e0a0aed4ec | 76 | /** Operations resulted in unexpected underflow */ |
<> | 150:02e0a0aed4ec | 77 | #define E_UNDERFLOW -13 |
<> | 150:02e0a0aed4ec | 78 | /** Data or resource not available at this time */ |
<> | 150:02e0a0aed4ec | 79 | #define E_NONE_AVAIL -14 |
<> | 150:02e0a0aed4ec | 80 | /** Event was shutdown */ |
<> | 150:02e0a0aed4ec | 81 | #define E_SHUTDOWN -15 |
<> | 150:02e0a0aed4ec | 82 | /** Event was aborted */ |
<> | 150:02e0a0aed4ec | 83 | #define E_ABORT -16 |
<> | 150:02e0a0aed4ec | 84 | /** The requested operation is not supported */ |
<> | 150:02e0a0aed4ec | 85 | #define E_NOT_SUPPORTED -17 |
<> | 150:02e0a0aed4ec | 86 | |
<> | 150:02e0a0aed4ec | 87 | #endif /* _ERRORS_H_ */ |