S32 SDK
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 = 0x0U,
48  STATUS_ERROR = 0x1U,
49  STATUS_BUSY = 0x2U,
50  STATUS_TIMEOUT = 0x3U,
52  /* MCU specific error codes */
58  /* I2C specific error codes */
63  STATUS_I2C_ABORTED = 0x204U,
65  /* CAN specific error codes */
68  /* CSEc specific error codes */
86  /* SPI specific error codes */
89  STATUS_SPI_ABORTED = 0x502U,
90  /* UART specific error codes */
94  /* I2S specific error codes */
97  STATUS_I2S_ABORTED = 0x702U,
98  /* SBC specific error codes */
99  SBC_NVN_ERROR = 0x800U,
101  SBC_COMM_ERROR = 0x801U,
102  SBC_CMD_ERROR = 0x802U,
103  SBC_ERR_NA = 0x803U,
104  SBC_MTPNV_LOCKED = 0x804U,
105  /* SAI specific error codes */
108  /* EMIOS specific error codes */
113  /* FLASH specific error codes */
117  /* FCCU specific error codes */
128  /* ENET specific error codes */
131 } status_t;
132 
133 #endif /* STATUS_H */
134 
135 /*******************************************************************************
136  * EOF
137  ******************************************************************************/
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
Definition: status.h:44