|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Main header file for PS/2 (Personal System/2) driver API. 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.
Data Structures | |
| struct | ps2_driver_api |
| Driver Operations PS/2 driver operations More... | |
Typedefs | |
| typedef void(* | ps2_callback_t) (const struct device *dev, uint8_t data) |
| PS/2 callback called when user types or click a mouse. | |
| typedef int(* | ps2_config_t) (const struct device *dev, ps2_callback_t callback_isr) |
| Callback API for configuring a PS/2 device. | |
| typedef int(* | ps2_read_t) (const struct device *dev, uint8_t *value) |
| Callback API for reading from a PS/2 device. | |
| typedef int(* | ps2_write_t) (const struct device *dev, uint8_t value) |
| Callback API for writing to a PS/2 device. | |
| typedef int(* | ps2_disable_callback_t) (const struct device *dev) |
| Callback API for disabling a PS/2 device callback. | |
| typedef int(* | ps2_enable_callback_t) (const struct device *dev) |
| Callback API for enabling a PS/2 device callback. | |
Functions | |
| int | ps2_config (const struct device *dev, ps2_callback_t callback_isr) |
| Configure a PS/2 device instance. | |
| int | ps2_write (const struct device *dev, uint8_t value) |
| Write to a 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. | |
Main header file for PS/2 (Personal System/2) driver API.