TactileVestProject  V1.0
Tactile API documentation
 All Classes Functions
Public Member Functions | Protected Attributes | List of all members
Serial Class Reference

Inherits HardwareInterface.

Public Member Functions

 Serial (const Serial &other)
 
Serialoperator= (const Serial &other)
 
virtual bool Open (char *)
 
virtual bool Close (void)
 
virtual int SendData (char *)
 
bool IsOpened (void)
 

Protected Attributes

bool isOpened
 

Member Function Documentation

virtual bool Serial::Close ( void  )
virtual

Close the open serial connection

Returns
true if the connection is successfully closed, false if no connection was open or it failed to close the connection

Implements HardwareInterface.

virtual bool Serial::Open ( char *  )
virtual

Open a serial connection to the given com port

Parameters
char*the com port to connect to
Returns
true if the connection is successfully open, false otherwise

Implements HardwareInterface.

virtual int Serial::SendData ( char *  )
virtual

Sends data through the com port

Parameters
char*a C string to send through the com port
Returns
0 if no error occurred, non-zero otherwise

Implements HardwareInterface.


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