1 /***************************************************************************/ /** 2 * @file 3 * @brief 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2019 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 #pragma once 31 typedef enum { 32 RSI_ERROR_NONE = 0, 33 RSI_ERROR_TIMEOUT = -1, 34 RSI_ERROR_INVALID_PARAM = -2, 35 RSI_ERROR_COMMAND_GIVEN_IN_WRONG_STATE = -3, 36 RSI_ERROR_PKT_ALLOCATION_FAILURE = -4, 37 RSI_ERROR_COMMAND_NOT_SUPPORTED = -5, 38 RSI_ERROR_INSUFFICIENT_BUFFER = -6, 39 RSI_ERROR_IN_OS_OPERATION = -7, 40 RSI_ERROR_INVALID_MEMORY = -8, 41 RSI_ERROR_BOOTUP_OPTIONS_NOT_SAVED = -9, 42 RSI_ERROR_BOOTUP_OPTIONS_CHECKSUM_FAIL = -10, 43 RSI_ERROR_BOOTLOADER_VERSION_NOT_MATCHING = -11, 44 RSI_ERROR_WAITING_FOR_BOARD_READY = -12, 45 RSI_ERROR_INVALID_ADDRESS = -13, 46 RSI_ERROR_VALID_FIRMWARE_NOT_PRESENT = -14, 47 RSI_ERROR_INVALID_OPTION = -15, 48 RSI_ERROR_EXCEEDS_MAX_CALLBACKS = -16, 49 RSI_ERROR_SET_ITIMER = -17, 50 RSI_ERROR_SIG_ACTION = -18, 51 RSI_ERROR_NOT_IN_CONNECTED_STATE = -19, 52 RSI_ERROR_NOT_IN_IPCONFIG_STATE = -20, 53 RSI_ERROR_SPI_BUSY = -21, 54 RSI_ERROR_SPI_FAIL = -22, 55 RSI_ERROR_SPI_TIMEOUT = -23, 56 RSI_ERROR_CARD_READY_TIMEOUT = -24, 57 RSI_ERROR_BOARD_READY_TIMEOUT = -25, 58 RSI_ERROR_INVALID_PACKET = -26, 59 RSI_ERROR_FW_UPGRADE_TIMEOUT = -27, 60 RSI_ERROR_FW_LOAD_OR_UPGRADE_TIMEOUT = -28, 61 RSI_ERROR_GPIO_WAKEUP_TIMEOUT = -29, 62 RSI_ERROR_RESPONSE_TIMEOUT = -30, 63 RSI_ERROR_BLE_DEV_BUF_FULL = -31, 64 RSI_ERROR_NWK_CMD_IN_PROGRESS = -32, 65 RSI_ERROR_SOCKET_CMD_IN_PROGRESS = -33, 66 RSI_ERROR_WLAN_CMD_IN_PROGRESS = -34, 67 RSI_ERROR_COMMON_CMD_IN_PROGRESS = -35, 68 RSI_ERROR_ANT_DEV_BUF_FULL = -36, 69 RSI_ERROR_BT_BLE_CMD_IN_PROGRESS = -37, 70 RSI_ERROR_ANT_CMD_IN_PROGRESS = -38, 71 RSI_ERROR_BLE_ATT_CMD_IN_PROGRESS = -39, 72 RSI_ERROR_MEMORY_NOT_ALIGNED = -40, 73 RSI_ERROR_SEMAPHORE_CREATE_FAILED = -41, 74 RSI_ERROR_SEMAPHORE_DESTROY_FAILED = -42, 75 RSI_ERROR_IN_WLAN_CMD = -43, 76 RSI_ERROR_RX_BUFFER_CHECK = -44, 77 RSI_ERROR_PARAMETER_LENGTH_EXCEEDS_MAX_VAL = -45, 78 RSI_ERROR_IN_COMMON_CMD = -46, 79 RSI_ERROR_TX_BUFFER_FULL = -47, 80 RSI_ERROR_SDIO_TIMEOUT = -48, 81 RSI_ERROR_SDIO_WRITE_FAIL = -49, 82 RSI_ERROR_INVALID_SET_CONFIG_FLAG = -50, 83 RSI_ERROR_BLE_DEV_BUF_IS_IN_PROGRESS = -51, 84 RSI_ERROR_SET_REGION_NOT_ENABLED = -52, 85 RSI_ERROR_BLE_INVALID_CALLBACK_CNT = -53, 86 RSI_ERROR_BLE_ADV_EXT_COMMAND_NOT_ALLOWED = -54, 87 RSI_ERROR_BLE_LEGACY_COMMAND_NOT_ALLOWED = -55, 88 RSI_ERROR_TRNG_DUPLICATE_ENTROPY = -56 89 } si91x_status_t; 90