Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
PS/2 Driver Backend API

Data Structures

struct  ps2_driver_api
  Driver Operations PS/2 driver operations More...

Typedefs

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.

Detailed Description

This group contains the API type definitions, callback signatures, and other helpers required to implement a PS/2 driver.

Typedef Documentation

◆ ps2_config_t

typedef int(* ps2_config_t) (const struct device *dev, ps2_callback_t callback_isr)

#include <zephyr/drivers/ps2.h>

Callback API for configuring a PS/2 device.

See also
ps2_config() for argument descriptions.

◆ ps2_disable_callback_t

typedef int(* ps2_disable_callback_t) (const struct device *dev)

#include <zephyr/drivers/ps2.h>

Callback API for disabling a PS/2 device callback.

◆ ps2_enable_callback_t

typedef int(* ps2_enable_callback_t) (const struct device *dev)

#include <zephyr/drivers/ps2.h>

Callback API for enabling a PS/2 device callback.

See also
ps2_enable_callback() for argument descriptions.

◆ ps2_read_t

typedef int(* ps2_read_t) (const struct device *dev, uint8_t *value)

#include <zephyr/drivers/ps2.h>

Callback API for reading from a PS/2 device.

See also
ps2_read() for argument descriptions.

◆ ps2_write_t

typedef int(* ps2_write_t) (const struct device *dev, uint8_t value)

#include <zephyr/drivers/ps2.h>

Callback API for writing to a PS/2 device.

See also
ps2_write() for argument descriptions.