Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Public API for PS/2 devices such as keyboard and mouse. More...
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/device.h>
#include <zephyr/syscalls/ps2.h>
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. | |
Functions | |
int | ps2_config (const struct device *dev, ps2_callback_t callback_isr) |
Configure a ps2 instance. | |
int | ps2_write (const struct device *dev, uint8_t value) |
Write to PS/2 device. | |
int | ps2_read (const struct device *dev, uint8_t *value) |
Read slave-to-host values from PS/2 device. | |
int | ps2_enable_callback (const struct device *dev) |
Enables callback. | |
int | ps2_disable_callback (const struct device *dev) |
Disables callback. | |
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.