1 /* 2 * Copyright (c) 2019 Henrik Brix Andersen <henrik@brixandersen.dk> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 8 #ifndef ZEPHYR_INCLUDE_DRIVERS_LED_HT16K33_H_ 9 #define ZEPHYR_INCLUDE_DRIVERS_LED_HT16K33_H_ 10 11 #include <zephyr/drivers/kscan.h> 12 13 /** 14 * Register a HT16K33 keyscan device to be notified of relevant 15 * keyscan events by the keyscan interrupt thread in the HT16K33 16 * parent driver. 17 * 18 * @param parent HT16K33 parent device. 19 * @param child HT16K33 child device. 20 * @param callback Keyscan callback function. 21 * @return 0 if successful, negative errno code on failure. 22 */ 23 int ht16k33_register_keyscan_callback(const struct device *parent, 24 const struct device *child, 25 kscan_callback_t callback); 26 27 #endif /* ZEPHYR_INCLUDE_DRIVERS_LED_HT16K33_H_ */ 28