Searched refs:DT_ENUM_HAS_VALUE_BY_IDX (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/lib/devicetree/api/src/ |
D | main.c | 2137 zassert_true(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 0, foo)); in ZTEST() 2138 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 0, bar)); in ZTEST() 2139 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 0, baz)); in ZTEST() 2140 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 0, zoo)); in ZTEST() 2141 zassert_true(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 1, zoo)); in ZTEST() 2142 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 1, foo)); in ZTEST() 2143 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 1, bar)); in ZTEST() 2144 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 1, baz)); in ZTEST() 2145 zassert_true(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2, foo)); in ZTEST() 2146 zassert_false(DT_ENUM_HAS_VALUE_BY_IDX(DT_NODELABEL(test_enum_string_array), val, 2, baz)); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/ |
D | devicetree.h | 1034 #define DT_ENUM_HAS_VALUE_BY_IDX(node_id, prop, idx, value) \ macro 1045 DT_ENUM_HAS_VALUE_BY_IDX(node_id, prop, 0, value) 4128 DT_ENUM_HAS_VALUE_BY_IDX(DT_DRV_INST(inst), prop, idx, value)
|