Home
last modified time | relevance | path

Searched refs:kscan_dev (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/drivers/kscan/kscan_api/src/
Dtest_kscan.c24 const struct device *const kscan_dev = DEVICE_DT_GET(DT_ALIAS(kscan0)); in test_kb_callback() local
26 if (!device_is_ready(kscan_dev)) { in test_kb_callback()
31 if (kscan_config(kscan_dev, kb_callback) != 0) { in test_kb_callback()
41 const struct device *const kscan_dev = DEVICE_DT_GET(DT_ALIAS(kscan0)); in test_null_callback() local
43 if (!device_is_ready(kscan_dev)) { in test_null_callback()
48 if (kscan_config(kscan_dev, NULL) != -EINVAL) { in test_null_callback()
58 const struct device *const kscan_dev = DEVICE_DT_GET(DT_ALIAS(kscan0)); in test_disable_enable_callback() local
60 if (!device_is_ready(kscan_dev)) { in test_disable_enable_callback()
65 if (kscan_config(kscan_dev, kb_callback) != 0) { in test_disable_enable_callback()
70 if (kscan_disable_callback(kscan_dev) != 0) { in test_disable_enable_callback()
[all …]
/Zephyr-latest/samples/drivers/kscan/src/
Dmain.c17 const struct device *const kscan_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_keyboard_scan)); variable
142 kscan_disable_callback(kscan_dev); in block_matrix_callback()
146 kscan_enable_callback(kscan_dev); in block_matrix_callback()
155 if (!device_is_ready(kscan_dev)) { in main()
156 LOG_ERR("kscan device %s not ready", kscan_dev->name); in main()
160 kscan_config(kscan_dev, kb_callback); in main()
/Zephyr-latest/tests/drivers/kscan/kscan_input/src/
Dmain.c13 static const struct device *kscan_dev = DEVICE_DT_GET( variable
41 kscan_config(kscan_dev, kscan_callback); in ZTEST()
42 kscan_enable_callback(kscan_dev); in ZTEST()