Aleksandar Kodzhabashev / Mbed 2 deprecated TrackballQuery

Dependencies:   Servo mbed

Embed: (wiki syntax)

« Back to documentation index

PS2MS_INIT Class Reference

PS2MS_INIT Class Reference

PS2 mouse initializer. More...

#include <PS2MS_INIT.h>

Public Member Functions

 PS2MS_INIT (PinName clk_pin, PinName dat_pin)
 Create.
 ~PS2MS_INIT ()
 Destroy.
int send (uint8_t c)
 Send a byte data.
int recv (void)
 Receive a byte data.

Detailed Description

PS2 mouse initializer.

Definition at line 15 of file PS2MS_INIT.h.


Constructor & Destructor Documentation

PS2MS_INIT ( PinName  clk_pin,
PinName  dat_pin 
)

Create.

PS/2 mouse interface control class (Version 0.0.1)

Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) http://shinta.main.jp/ Create.

Definition at line 12 of file PS2MS_INIT.cpp.

~PS2MS_INIT (  )

Destroy.

Definition at line 67 of file PS2MS_INIT.cpp.


Member Function Documentation

int recv ( void   )

Receive a byte data.

Returns:
return a data. Negative value is a error number.

Definition at line 147 of file PS2MS_INIT.cpp.

int send ( uint8_t  c )

Send a byte data.

Parameters:
ca character.
Returns:
Negative value is a error number.

Definition at line 77 of file PS2MS_INIT.cpp.