| /Zephyr-4.2.1/tests/lib/cpp/libcxx/src/ |
| D | main.cpp | 16 std::array<int, 4> array = {1, 2, 3, 4}; variable 21 zassert_equal(array.size(), 4, "unexpected size"); in ZTEST() 22 zassert_equal(array[0], 1, "array[0] wrong"); in ZTEST() 23 zassert_equal(array[3], 4, "array[3] wrong"); in ZTEST() 25 std::array<uint8_t, 2> local = {1, 2}; in ZTEST() 34 for (auto v : array) { in ZTEST() 37 zassert_equal(vector.size(), array.size(), "vector store failed"); in ZTEST()
|
| /Zephyr-4.2.1/tests/unit/util/ |
| D | main.c | 406 uint8_t array[3] = {0}; in ZTEST() local 407 uint8_t *buf = array; in ZTEST() 411 zassert_equal(array[0], 1, "Unexpected value %d", array[0]); in ZTEST() 412 zassert_equal(array[1], 2, "Unexpected value %d", array[1]); in ZTEST() 413 zassert_equal(array[2], 3, "Unexpected value %d", array[2]); in ZTEST() 430 uint8_t array[] = { in ZTEST() local 444 size_t size = ARRAY_SIZE(array); in ZTEST() 447 zassert_equal(array[0], 1, "Unexpected value %d", array[0]); in ZTEST() 448 zassert_equal(array[1], 4, "Unexpected value %d", array[1]); in ZTEST() 449 zassert_equal(array[2], 9, "Unexpected value %d", array[2]); in ZTEST() [all …]
|
| /Zephyr-4.2.1/include/zephyr/sys/ |
| D | util.h | 96 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) argument 105 #define IS_ARRAY(array) \ 107 !__builtin_types_compatible_p(__typeof__(array), __typeof__(&(array)[0]))) 118 #define ARRAY_SIZE(array) ((size_t)(IS_ARRAY(array) + (sizeof(array) / sizeof((array)[0])))) 160 #define IS_ARRAY_ELEMENT(array, ptr) \ argument 161 ((ptr) && POINTER_TO_UINT(array) <= POINTER_TO_UINT(ptr) && \ 162 POINTER_TO_UINT(ptr) < POINTER_TO_UINT(&(array)[ARRAY_SIZE(array)]) && \ 163 (POINTER_TO_UINT(ptr) - POINTER_TO_UINT(array)) % sizeof((array)[0]) == 0) 179 #define ARRAY_INDEX(array, ptr) \ argument 181 __ASSERT_NO_MSG(IS_ARRAY_ELEMENT(array, ptr)); \ [all …]
|
| /Zephyr-4.2.1/scripts/native_simulator/common/src/include/ |
| D | nsi_utils.h | 24 #define NSI_ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) argument
|
| /Zephyr-4.2.1/drivers/net/ |
| D | nsos_netdb.c | 32 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) argument
|
| /Zephyr-4.2.1/samples/arch/smp/pi/src/ |
| D | main.c | 54 int array[LENGTH + 1] = {}; in test_thread() local 59 array[i] = ARRAY_INIT; in test_thread() 66 sum = sum * j + NEW_BASE * array[j]; in test_thread() 67 array[j] = sum % (j * 2 - 1); in test_thread()
|
| /Zephyr-4.2.1/tests/subsys/logging/log_msg/src/ |
| D | main.c | 268 static const uint8_t array[] = {1, 2, 3, 4}; in ZTEST() local 272 Z_LOG_MSG_CREATE3(1, mode, 0, domain, source, level, array, in ZTEST() 273 sizeof(array)); in ZTEST() 276 Z_LOG_MSG_CREATE3(0, mode, 0, domain, source, level, array, in ZTEST() 277 sizeof(array)); in ZTEST() 280 z_log_msg_runtime_create(domain, (void *)source, level, array, in ZTEST() 281 sizeof(array), 0, NULL); in ZTEST() 285 array, sizeof(array), NULL); in ZTEST() 297 static const uint8_t array[] = {1, 2, 3, 4}; in ZTEST() local 301 Z_LOG_MSG_CREATE3(1, mode, 0, domain, source, level, array, in ZTEST() [all …]
|
| /Zephyr-4.2.1/lib/libc/minimal/source/stdlib/ |
| D | bsearch.c | 22 void *bsearch(const void *key, const void *array, size_t count, size_t size, in bsearch() argument 33 pivot = (const char *)array + index * size; in bsearch()
|
| /Zephyr-4.2.1/doc/build/dts/ |
| D | phandles.rst | 73 You can use phandles to make an array of references to other nodes. 89 Zero or more nodes with metadata: phandle-array type 98 These properties have type ``phandle-array``. 102 phandle-array properties 111 Usually, properties with this type are written like ``phandle-array-prop`` in 117 phandle-array-prop = <&foo 1 2>, <&bar 3>, <&baz 4 5>; 135 document more rules about how to use phandle-array properties in practice. 140 Perhaps the most common use case for phandle-array properties is specifying one 143 cases** that are handled in devicetree with phandle-array properties. 158 Instead, you would use a phandle-array property, like this: [all …]
|
| /Zephyr-4.2.1/samples/sensor/amg88xx/ |
| D | README.rst | 2 :name: AMG88XX infrared array sensor 10 This sample application periodically reads the 8x8 temperature array from 39 The sensor array data is output every second.
|
| /Zephyr-4.2.1/scripts/west_commands/runners/ |
| D | canopen_program.py | 322 array = canopen.objectdictionary.Array('Program data', 0x1f50) 325 array.add_member(member) 326 objdict.add_object(array) 328 array = canopen.objectdictionary.Array('Program control', 0x1f51) 331 array.add_member(member) 332 objdict.add_object(array) 334 array = canopen.objectdictionary.Array('Program software ID', 0x1f56) 337 array.add_member(member) 338 objdict.add_object(array) 340 array = canopen.objectdictionary.Array('Flash error ID', 0x1f57) [all …]
|
| /Zephyr-4.2.1/include/zephyr/modem/ |
| D | ubx.h | 83 const struct modem_ubx_match *array; member 93 const struct modem_ubx_match *array; member 153 struct ubx_frame *array, size_t array_size);
|
| /Zephyr-4.2.1/tests/benchmarks/ipi_metric/src/ |
| D | ipi_metric_primitive.c | 40 unsigned long *array = p2; in work_entry() local 47 array[i] = (array[i] + counter) ^ array[i]; in work_entry()
|
| D | ipi_metric_preemptive.c | 41 unsigned long *array = p2; in work_entry() local 48 array[i] = (array[i] + counter) ^ array[i]; in work_entry()
|
| /Zephyr-4.2.1/scripts/dts/python-devicetree/tests/ |
| D | test.dts | 404 array = <1 2 3>; 405 uint8-array = [12 34]; 407 string-array = "foo", "bar", "baz"; 410 phandle-array-foos = <&{/ctrl-1} 1 &{/ctrl-2} 2 3>; 416 compatible = "phandle-array-controller-1"; 417 #phandle-array-foo-cells = <1>; 422 compatible = "phandle-array-controller-2"; 423 #phandle-array-foo-cells = <2>; 428 phandle-array-foos = <&{/ctrl-0-1} 0 &{/ctrl-0-2}>; 429 phandle-array-foo-names = "a", "missing", "b"; [all …]
|
| /Zephyr-4.2.1/include/zephyr/data/ |
| D | json.h | 116 } array; member 239 .array = { \ 300 .array = { \ 350 .array = { \ 409 .array = { \ 444 .array = { \ 533 .array = { \ 591 .array = { \ 850 } array; member 936 .array = { \
|
| /Zephyr-4.2.1/tests/subsys/dsp/utils/src/ |
| D | q15.c | 16 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array) \ argument 17 FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
|
| D | q31.c | 16 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array) \ argument 17 FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
|
| D | q7.c | 16 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array) \ argument 17 FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
|
| D | f32.c | 16 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array) \ argument 17 FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
|
| D | f64.c | 16 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array) \ argument 17 FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
|
| /Zephyr-4.2.1/samples/kernel/metairq_dispatch/src/ |
| D | main.c | 87 static void calc_stats(const uint32_t *array, uint32_t n, in calc_stats() argument 95 *lo = MIN(*lo, array[i]); in calc_stats() 96 *hi = MAX(*hi, array[i]); in calc_stats() 97 tot += array[i]; in calc_stats() 103 int64_t d = (int32_t) (array[i] - *mean); in calc_stats()
|
| /Zephyr-4.2.1/scripts/pylib/display-twister-harness/camera_shield/plugins/ |
| D | signature_plugin.py | 159 phash1 = np.array(sig1["phash"]) 160 phash2 = np.array(sig2["phash"]) 168 dhash1 = np.array(sig1["dhash"]) 169 dhash2 = np.array(sig2["dhash"]) 178 hist1 = np.array(sig1["color_hist"]) 179 hist2 = np.array(sig2["color_hist"]) 190 hist1 = np.array(sig1["gray_hist"]) 191 hist2 = np.array(sig2["gray_hist"]) 208 grad1 = np.array(sig1["gradient_hist"]) 209 grad2 = np.array(sig2["gradient_hist"])
|
| /Zephyr-4.2.1/doc/contribute/style/ |
| D | style-example.dts | 29 /* Wrap array values to conform with line lengths. Indent 42 /* Split array values across multiple lines to help readability. */
|
| /Zephyr-4.2.1/tests/lib/devicetree/api/ |
| D | app.overlay | 51 test_arrays: array-holder { 54 * There should only be one vnd,array-holder in the entire DTS. 56 compatible = "vnd,array-holder", "vnd,undefined-compat"; 123 compatible = "vnd,enum-string-array-holder"; 128 compatible = "vnd,enum-int-array-holder"; 767 test_str_array_token_0: string-array-token-0 { 768 compatible = "vnd,string-array-token"; 774 test_str_array_token_1: string-array-token-1 { 775 compatible = "vnd,string-array-token"; 811 test_stra_unquoted_f0: string-array-unquoted-f0 { [all …]
|