1 /* 2 * Copyright (c) 2021-2023 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_ZBASIC_H_ 7 #define ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_ZBASIC_H_ 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /** 14 * Command IDs for zephyr basic management group. 15 */ 16 #define ZEPHYR_MGMT_GRP_BASIC_CMD_ERASE_STORAGE 0 /* Command to erase storage partition */ 17 18 /** 19 * Command result codes for statistics management group. 20 */ 21 enum zephyr_basic_group_err_code_t { 22 /** No error, this is implied if there is no ret value in the response */ 23 ZEPHYRBASIC_MGMT_ERR_OK = 0, 24 25 /** Unknown error occurred. */ 26 ZEPHYRBASIC_MGMT_ERR_UNKNOWN, 27 28 /** Opening of the flash area has failed. */ 29 ZEPHYRBASIC_MGMT_ERR_FLASH_OPEN_FAILED, 30 31 /** Querying the flash area parameters has failed. */ 32 ZEPHYRBASIC_MGMT_ERR_FLASH_CONFIG_QUERY_FAIL, 33 34 /** Erasing the flash area has failed. */ 35 ZEPHYRBASIC_MGMT_ERR_FLASH_ERASE_FAILED, 36 }; 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif /* ZEPHYR_INCLUDE_ZEPHYR_MCUMGR_GRP_ZBASIC_H_ */ 43