sl_status.h

1 /*
2 * Copyright 2018, Silicon Laboratories Inc. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 
17 #pragma once
18 
19 #include "sl_wifi_status.h"
20 
21 typedef enum
22 {
23  SL_SUCCESS = 0,
24  SL_PENDING = 1,
25  SL_TIMEOUT = 2,
26  SL_PARTIAL_RESULTS = 3,
27  SL_ERROR = 4,
28  SL_BAD_ARG = 5,
29  SL_BAD_OPTION = 6,
30  SL_UNSUPPORTED = 7,
31  SL_ERROR_OUT_OF_BUFFERS = 8,
32  SL_ERROR_OUT_OF_HEAP = 9,
33  SL_COMMAND_ARGUMENT_ERROR = 10,
34  SL_WIFI_FRAME_RECEIVED = 11,
35  SL_WIFI_STATUS_LIST( SL_WIFI )
36 
37  SL_FORCE_ENUM_TO_32_BIT = 0xFFFFFFFF,
38 } sl_status_t;
39