ESP32 Display Controller and Graphics Library
PS2Device Class Reference

Base class for PS2 devices (like mouse or keyboard). More...

#include <ps2device.h>

Inheritance diagram for PS2Device:

Public Member Functions

PS2DeviceType identify ()
 Identifies the device attached to the PS2 port. More...
bool lock (int timeOutMS)
 Gets exclusive access to the device. More...
void resumePort ()
 Resumes PS/2 port releasing CLK line. More...
void sendCommand (uint8_t cmd)
 Sends a raw command to the PS/2 device. More...
bool sendCommand (uint8_t cmd, uint8_t expectedReply)
 Sends a raw command to the PS/2 device and wait for reply. More...
void suspendPort ()
 Suspends PS/2 port driving the CLK line Low. More...
void unlock ()
 Releases device from exclusive access. More...

Detailed Description

Base class for PS2 devices (like mouse or keyboard).

PS2Device connects to one port of the PS2 Controller class (fabgl::PS2Controller).
The PS2 controller uses ULP coprocessor and RTC slow memory to communicate with the PS2 device.

Definition at line 70 of file ps2device.h.

The documentation for this class was generated from the following files: