Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PS2 Class Reference
PS/2 interface control class. More...
#include <PS2.h>
Public Member Functions | |
PS2 (PinName clk_pin, PinName dat_pin) | |
Create. | |
virtual | ~PS2 () |
Destory. | |
virtual int | getc (void)=0 |
Get a data from a PS/2 device. | |
virtual void | setTimeout (int ms)=0 |
Set timeout. |
Detailed Description
PS/2 interface control class.
Definition at line 16 of file PS2.h.
Constructor & Destructor Documentation
PS2 | ( | PinName | clk_pin, |
PinName | dat_pin | ||
) |
Create.
- Parameters:
-
clk_pin Clock pin. dat_pin Data pin.
virtual ~PS2 | ( | ) | [virtual] |
Destory.
Member Function Documentation
virtual int getc | ( | void | ) | [pure virtual] |
Get a data from a PS/2 device.
- Returns:
- A data from a PS/2 device.
virtual void setTimeout | ( | int | ms ) | [pure virtual] |
Set timeout.
- Parameters:
-
ms Timeout ms.
Generated on Wed Jul 20 2022 18:12:36 by
