FabGL
ESP32 Display Controller and Graphics Library
fabgl::PS2Device Class Reference

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

#include <ps2device.h>

Inheritance diagram for fabgl::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 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.

Member Function Documentation

◆ identify()

PS2DeviceType fabgl::PS2Device::identify ( )
inline

Identifies the device attached to the PS2 port.

Returns
The identification ID sent by keyboard.

◆ lock()

bool fabgl::PS2Device::lock ( int  timeOutMS)

Gets exclusive access to the device.

Parameters
timeOutMSTimeout in milliseconds to wait before fail.
Returns
True if the device has been locked.

◆ unlock()

void fabgl::PS2Device::unlock ( )

Releases device from exclusive access.


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