Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ht16k33.h File Reference
#include <drivers/kscan.h>

Go to the source code of this file.

Functions

int ht16k33_register_keyscan_callback (const struct device *parent, const struct device *child, kscan_callback_t callback)
 

Function Documentation

◆ ht16k33_register_keyscan_callback()

int ht16k33_register_keyscan_callback ( const struct device parent,
const struct device child,
kscan_callback_t  callback 
)

Register a HT16K33 keyscan device to be notified of relevant keyscan events by the keyscan interrupt thread in the HT16K33 parent driver.

Parameters
parentHT16K33 parent device.
childHT16K33 child device.
callbackKeyscan callback function.
Returns
0 if successful, negative errno code on failure.