/mcumgr-2.7.6/samples/omp_svr/mynewt/ |
D | syscfg.yml | 23 REBOOT_LOG_FCB: 1 24 LOG_FCB: 1 25 CONFIG_FCB: 1 28 STATS_CLI: 1 29 LOG_CLI: 1 30 SHELL_TASK: 1 33 STATS_MGMT: 1 34 LOG_MGMT: 1 35 CONFIG_MGMT: 1 45 OC_SERVER: 1 [all …]
|
/mcumgr-2.7.6/samples/smp_svr/mynewt/ |
D | syscfg.yml | 24 REBOOT_LOG_FCB: 1 25 LOG_FCB: 1 26 CONFIG_FCB: 1 29 STATS_CLI: 1 30 LOG_CLI: 1 31 SHELL_TASK: 1 34 STATS_MGMT: 1 35 LOG_MGMT: 1 36 CONFIG_MGMT: 1 48 BLE_ROLE_BROADCASTER: 1 [all …]
|
/mcumgr-2.7.6/cmd/fs_mgmt/include/fs_mgmt/ |
D | fs_mgmt_config.h | 40 * 9 + 1 -- bytes taken by definition of CBOR undefined length map and map 42 * 1 + strlen("off") + [1, N] -- CBOR encoded pair of "off" marker and 44 * 1 + strlen("data") + [1, N] -- CBOR encoded "data" marker; this marker 46 * 1 + strlen("rc") + 1 -- status code of operation; 47 * 1 + strlen("len") + [1, N] -- CBOR encoded "len" marker and complete 55 ((9 + 1) + \ 56 (1 + 3 + CONFIG_FS_MGMT_MAX_OFFSET_LEN) + \ 57 (1 + 4 + CONFIG_FS_MGMT_MAX_OFFSET_LEN) + \ 58 (1 + 2 + 1) + \ 59 (1 + 3 + CONFIG_FS_MGMT_MAX_OFFSET_LEN))
|
/mcumgr-2.7.6/cborattr/test/src/testcases/ |
D | cborattr_decode_int_array.c | 57 * a: [1,2,33,15,-4] in test_encode_int_array() 62 cbor_encode_int(&array, 1); in test_encode_int_array() 91 [1] = { in TEST_CASE() 95 .dflt.integer = 1 in TEST_CASE() 108 .addr.array.maxlen = 1, in TEST_CASE() 111 [1] = { in TEST_CASE() 115 .dflt.integer = 1 in TEST_CASE() 127 TEST_ASSERT(arr_data[0] == 1); in TEST_CASE() 128 TEST_ASSERT(arr_data[1] == 2); in TEST_CASE() 132 TEST_ASSERT(b_int == 1); in TEST_CASE() [all …]
|
D | cborattr_decode_object.c | 82 * p: { bm : 7 }, c: { d : { i : 1 } }, a: 3 in test_encode_data_complex() 97 cbor_encode_int(&sub_sub_obj, 1); in test_encode_data_complex() 121 [1] = { in TEST_CASE() 132 [1] = { in TEST_CASE() 145 [1] = { in TEST_CASE() 156 [1] = { in TEST_CASE() 167 [1] = { in TEST_CASE() 197 TEST_ASSERT(i_val == 1); in TEST_CASE()
|
D | cborattr_decode_unnamed_array.c | 57 * [1,2,33] in test_encode_unnamed_array() 60 cbor_encode_int(&array, 1); in test_encode_unnamed_array() 86 [1] = { in TEST_CASE() 96 TEST_ASSERT(arr_data[0] == 1); in TEST_CASE() 97 TEST_ASSERT(arr_data[1] == 2); in TEST_CASE()
|
D | cborattr_decode_simple.c | 50 uint8_t data[4] = { 0, 1, 2 }; in test_encode_data() 97 [1] = { in TEST_CASE() 122 TEST_ASSERT(c_data[0] == 0 && c_data[1] == 1 && c_data[2] == 2); in TEST_CASE()
|
D | cborattr_decode_obj_array.c | 58 * a: [{ n:"a", v:1}, {n:"b", v:2} ] in test_encode_obj_array() 67 cbor_encode_int(&obj, 1); in test_encode_obj_array() 99 [1] = { in TEST_CASE()
|
D | cborattr_decode_object_array.c | 102 [1] = { in TEST_CASE() 113 [1] = { in TEST_CASE() 124 TEST_ASSERT(!strcmp(arr_objs[1].h_data, "2str")); in TEST_CASE()
|
D | cborattr_decode_string_array.c | 115 [1] = { in TEST_CASE() 124 TEST_ASSERT(arr_cnt == 1); in TEST_CASE() 133 TEST_ASSERT(!strcmp(str_ptrs[1], "k")); in TEST_CASE()
|
D | cborattr_decode_bool_array.c | 88 [1] = { in TEST_CASE() 99 TEST_ASSERT(arr_data[1] == true); in TEST_CASE()
|
/mcumgr-2.7.6/cmd/img_mgmt/port/zephyr/src/ |
D | zephyr_img_mgmt.c | 95 * for Zephyr, as slot 0 of image 0 is image_0, slot 0 of image 1 is 109 case 1: in zephyr_img_mgmt_flash_area_id() 126 fa_id = -1; in zephyr_img_mgmt_flash_area_id() 140 * value is direct (slot + 1) to be used; if checks are positive, then area 141 * ID is returned, -1 is returned otherwise. 149 if (slot < -1) { in img_mgmt_get_unused_slot_area_id() 150 return -1; in img_mgmt_get_unused_slot_area_id() 151 } else if (slot == -1) { in img_mgmt_get_unused_slot_area_id() 160 if (area_id != -1) { in img_mgmt_get_unused_slot_area_id() 165 return -1; in img_mgmt_get_unused_slot_area_id() [all …]
|
/mcumgr-2.7.6/util/src/ |
D | mcumgr_util.c | 39 len = 1; in ull_to_s() 43 if (len >= dst_max_len - 1) { in ull_to_s() 44 return -1; in ull_to_s() 66 if (dst_max_len < 1) { in ll_to_s() 67 return -1; in ll_to_s()
|
/mcumgr-2.7.6/cmd/log_mgmt/include/log_mgmt/ |
D | log_mgmt.h | 34 #define LOG_MGMT_ERR_EUNKNOWN (1) 49 #define LOG_MGMT_ID_CLEAR 1 59 #define LOG_MGMT_TYPE_MEMORY 1 65 #define LOG_MGMT_FLAGS_IMG_HASH (1 << 0) 69 #define LOG_MGMT_ETYPE_CBOR 1 100 /* If min_timestamp == -1: Only access last log entry;
|
/mcumgr-2.7.6/ |
D | protocol.md | 72 #define MGMT_OP_READ_RSP 1 89 0 1 2 3 90 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 151 00000040 63 73 77 63 6e 74 1a 00 14 7e 6a 67 72 75 6e 74 |cswcnt...~jgrunt| 152 00000050 69 6d 65 1a 00 13 9c 4f 6c 6c 61 73 74 5f 63 68 |ime....Ollast_ch| 162 000000f0 74 61 74 65 01 66 73 74 6b 75 73 65 18 1f 66 73 |tate.fstkuse..fs| 163 00000100 74 6b 73 69 7a 19 01 00 66 63 73 77 63 6e 74 1a |tksiz...fcswcnt.| 174 …1 Flags:1 Len:402 Group:0 Seq:0 Id:2 Data:[191 98 114 99 0 101 116 97 115 107 115 191 100 105 100 … 178 bleprph 1 3 4 2691 336 211 0 0 180 ble_ll 0 1 2373 60060 80 58 0 0 [all …]
|
/mcumgr-2.7.6/cmd/img_mgmt/port/mynewt/src/ |
D | mynewt_img_mgmt.c | 33 int best = -1; in img_mgmt_find_best_area_id() 71 * @return -1 if a < b 73 * @return 1 if a > b 79 return -1; in img_mgmt_vercmp() 81 return 1; in img_mgmt_vercmp() 85 return -1; in img_mgmt_vercmp() 87 return 1; in img_mgmt_vercmp() 91 return -1; in img_mgmt_vercmp() 93 return 1; in img_mgmt_vercmp() 130 if (req->off == -1) { in img_mgmt_impl_upload_inspect() [all …]
|
/mcumgr-2.7.6/cmd/os_mgmt/ |
D | syscfg.yml | 31 value: 1 36 value: 1
|
/mcumgr-2.7.6/cmd/img_mgmt/include/img_mgmt/ |
D | img_mgmt_impl.h | 39 * @brief Ensures the spare slot (slot 1) is fully erased. 50 * use case, this is 1. 55 * 1=run image forever. 83 * @brief Writes the specified chunk of image data to slot 1. 85 * @param offset The offset within slot 1 to write to. 117 * @param offset The offset within slot 1 to erase at.
|
D | img_mgmt.h | 51 #define IMG_MGMT_SWAP_TYPE_TEST 1 59 #define IMG_MGMT_ID_UPLOAD 1 69 #define IMG_MGMT_ID_UPLOAD_STATUS_ONGOING 1 78 unsigned long long int off; /* -1 if unspecified */ 79 unsigned long long int size; /* -1 if unspecified */ 89 /** Flash area being written; -1 if no upload in progress. */ 172 * @return 1 if there's pending DFU otherwise 0.
|
/mcumgr-2.7.6/cmd/img_mgmt/src/ |
D | img_mgmt.c | 236 * or -1 if not found. 252 return -1; in img_mgmt_find_by_ver() 257 * or -1 if not found. 273 return -1; in img_mgmt_find_by_hash() 297 g_img_mgmt_state.area_id = -1; in img_mgmt_reset_upload() 314 rc = img_mgmt_read_info(1, &ver, NULL, NULL); in img_mgmt_erase() 318 if (img_mgmt_slot_in_use(1)) { in img_mgmt_erase() 384 rc = img_mgmt_read_info(1, NULL, hash, NULL); in img_mgmt_upload_log() 406 .off = -1, in img_mgmt_upload() 407 .size = -1, in img_mgmt_upload() [all …]
|
D | img_mgmt_state.c | 39 assert(query_slot == 0 || query_slot == 1); in img_mgmt_state_flags() 97 img_mgmt_state_flags(1) & IMG_MGMT_STATE_F_PENDING; in img_mgmt_state_any_pending() 269 * We add 1 to the 32-byte hash buffer as _cbor_value_copy_string() adds in img_mgmt_state_write() 272 uint8_t hash[IMAGE_HASH_LEN + 1]; in img_mgmt_state_write() 286 [1] = { in img_mgmt_state_write()
|
/mcumgr-2.7.6/cborattr/src/ |
D | cborattr.c | 51 return 1; in valid_attr_type() 56 return 1; in valid_attr_type() 61 return 1; in valid_attr_type() 66 return 1; in valid_attr_type() 72 return 1; in valid_attr_type() 77 return 1; in valid_attr_type() 82 return 1; in valid_attr_type() 88 return 1; in valid_attr_type() 93 return 1; in valid_attr_type() 98 return 1; in valid_attr_type() [all …]
|
/mcumgr-2.7.6/util/include/util/ |
D | mcumgr_util.h | 35 * -1 if the buffer is too small. 47 * -1 if the buffer is too small.
|
/mcumgr-2.7.6/transport/ |
D | smp-bluetooth.md | 9 sent in the form of either 1) a GATT Write Command, or 2) a GATT Write Without 24 UUID: `8D53DC1D-1DB7-4CD3-868B-8A527460AA84`
|
/mcumgr-2.7.6/samples/omp_svr/mynewt/src/ |
D | main.c | 56 /* Task 1 */ 106 if (argc == 1) { in test_conf_get() 119 if (argc == 1) { in test_conf_set() 220 fields.tx_pwr_lvl_is_present = 1; in omp_svr_advertise() 226 fields.name_is_complete = 1; in omp_svr_advertise() 231 fields.num_uuids16 = 1; in omp_svr_advertise() 232 fields.uuids16_is_complete = 1; in omp_svr_advertise() 398 hal_gpio_init_out(g_led_pin, 1); in task1_handler() 408 while (1) { in task1_handler() 434 while (1) { in task2_handler() [all …]
|