Lines Matching +full:keyboard +full:- +full:scan
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public API for Keyboard scan matrix devices.
11 * and users can later decode keys using their desired scan code tables in
30 * @defgroup kscan_interface Keyboard Scan Driver APIs
40 * @brief Keyboard scan callback called when user press/release
41 * a key on a matrix keyboard.
56 * Keyboard scan driver API definition and system call entry points.
76 * @brief Configure a Keyboard scan instance.
79 * @param callback called when keyboard devices reply to a keyboard
92 (struct kscan_driver_api *)dev->api; in z_impl_kscan_config()
94 return api->config(dev, callback); in z_impl_kscan_config()
109 (const struct kscan_driver_api *)dev->api; in z_impl_kscan_enable_callback()
111 if (api->enable_callback == NULL) { in z_impl_kscan_enable_callback()
112 return -ENOSYS; in z_impl_kscan_enable_callback()
115 return api->enable_callback(dev); in z_impl_kscan_enable_callback()
131 (const struct kscan_driver_api *)dev->api; in z_impl_kscan_disable_callback()
133 if (api->disable_callback == NULL) { in z_impl_kscan_disable_callback()
134 return -ENOSYS; in z_impl_kscan_disable_callback()
137 return api->disable_callback(dev); in z_impl_kscan_disable_callback()