Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Public API for PS/2 devices such as keyboard and mouse. Callers of this API are responsible for setting the typematic rate and decode keys using their desired scan code tables. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | ps2_callback_t) (const struct device *dev, uint8_t data) |
PS/2 callback called when user types or click a mouse. More... | |
Functions | |
int | ps2_config (const struct device *dev, ps2_callback_t callback_isr) |
Configure a ps2 instance. More... | |
int | ps2_write (const struct device *dev, uint8_t value) |
Write to PS/2 device. More... | |
int | ps2_read (const struct device *dev, uint8_t *value) |
Read slave-to-host values from PS/2 device. More... | |
int | ps2_enable_callback (const struct device *dev) |
Enables callback. More... | |
int | ps2_disable_callback (const struct device *dev) |
Disables callback. More... | |
Public API for PS/2 devices such as keyboard and mouse. Callers of this API are responsible for setting the typematic rate and decode keys using their desired scan code tables.