status.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
7  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
8  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
9  * IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
10  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
11  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
14  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
15  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
16  * THE POSSIBILITY OF SUCH DAMAGE.
17  */
18 
19 #ifndef STATUS_H
20 #define STATUS_H
21 
35 /*******************************************************************************
36  * Definitions
37  ******************************************************************************/
38 
44 typedef enum
45 {
46  /* Generic error codes */
47  STATUS_SUCCESS = 0x000U,
48  STATUS_ERROR = 0x001U,
49  STATUS_BUSY = 0x002U,
50  STATUS_TIMEOUT = 0x003U,
51  STATUS_UNSUPPORTED = 0x004U,
52  /* MCU specific error codes */
58  /* I2C specific error codes */
63  STATUS_I2C_ABORTED = 0x204U,
65  /* CAN specific error codes */
68  /* Security specific error codes */
95  /* SPI specific error codes */
98  STATUS_SPI_ABORTED = 0x502U,
99  /* UART specific error codes */
106  /* I2S specific error codes */
110  /* SBC specific error codes */
111  SBC_NVN_ERROR = 0x800U,
113  SBC_COMM_ERROR = 0x801U,
114  SBC_CMD_ERROR = 0x802U,
115  SBC_ERR_NA = 0x803U,
116  SBC_MTPNV_LOCKED = 0x804U,
118  /* FLASH specific error codes */
123  /* SAI specific error codes */
126  /* ENET specific error codes */
131  /* FCCU specific error codes */
143  /* EMIOS specific error codes */
149  /* EEE specific error codes */
157  /* uSDHC specific error codes */
161  /* TDM specific error codes */
164  /* PHY specific error codes */
167 } status_t;
168 
169 #endif /* STATUS_H */
170 
171 /*******************************************************************************
172  * EOF
173  ******************************************************************************/
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
Definition: status.h:44