Lines Matching full:inst
50 #define BUTTON_CODE(inst) DT_INST_PROP_OR(inst, button_input_code, -1) argument
51 #define ROTATION_CODE(inst) DT_INST_PROP(inst, rotation_input_code) argument
53 #define ASSERT_PROPERTIES(inst) \ argument
54 BUILD_ASSERT(IN_RANGE(ROTATION_CODE(inst), 0, 65536), \
56 BUILD_ASSERT(!DT_INST_NODE_HAS_PROP(inst, button_input_code) || \
57 IN_RANGE(BUTTON_CODE(inst), 0, 65536), \
59 BUILD_ASSERT(ROTATION_CODE(inst) != BUTTON_CODE(inst), \
62 #define LVGL_ENCODER_INPUT_DEFINE(inst) \ argument
63 ASSERT_PROPERTIES(inst); \
64 LVGL_INPUT_DEFINE(inst, encoder, CONFIG_LV_Z_ENCODER_INPUT_MSGQ_COUNT, \
66 static const struct lvgl_encoder_input_config lvgl_encoder_input_config_##inst = { \
67 .common_config.event_msgq = &LVGL_INPUT_EVENT_MSGQ(inst, encoder), \
68 .rotation_input_code = ROTATION_CODE(inst), \
69 .button_input_code = BUTTON_CODE(inst), \
71 static struct lvgl_common_input_data lvgl_common_input_data_##inst; \
72 DEVICE_DT_INST_DEFINE(inst, NULL, NULL, &lvgl_common_input_data_##inst, \
73 &lvgl_encoder_input_config_##inst, POST_KERNEL, \