Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ps2_driver_api Struct Reference

Driver Operations PS/2 driver operations More...

#include <zephyr/drivers/ps2.h>

Data Fields

ps2_config_t config
  REQ Configure a PS/2 device instance.
ps2_read_t read
  REQ Read slave-to-host values from PS/2 device.
ps2_write_t write
  REQ Write to a PS/2 device.
ps2_disable_callback_t disable_callback
  OPT Disables callback.
ps2_enable_callback_t enable_callback
  OPT Enables callback.

Detailed Description

Driver Operations PS/2 driver operations

This is the driver API structure any PS/2 driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.

Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ config

ps2_config_t ps2_driver_api::config

REQ Configure a PS/2 device instance.

◆ disable_callback

ps2_disable_callback_t ps2_driver_api::disable_callback

OPT Disables callback.

◆ enable_callback

ps2_enable_callback_t ps2_driver_api::enable_callback

OPT Enables callback.

◆ read

ps2_read_t ps2_driver_api::read

REQ Read slave-to-host values from PS/2 device.

◆ write

ps2_write_t ps2_driver_api::write

REQ Write to a PS/2 device.


The documentation for this struct was generated from the following file: