LSerie Class Reference

#include <LSerie.h>

List of all members.

Public Member Functions

 LSerie ()
 Constructeur de la classe par défaut.
virtual ~LSerie ()
bool open (int numPort, long speedInBaud)
bool open (int numPort, long speedInBaud, int nbBit, int parity, float nbStopBit)
void closeCom ()
bool setTimeOut (DWORD ms)
bool setSpeed (DWORD baudrate)
int sendData (DWORD lg, LPBYTE data)
int sendData (string *data)
int receiveData (DWORD lg, LPBYTE data)
int receiveData (string *data)
bool setRts (bool val)
bool setDtr (bool val)
bool setTxd (bool val)
bool getCts ()
bool getDtr ()
bool getRi ()
bool getCd ()
string getErrorMsg ()

Public Attributes

int currentPort
HANDLE comport

Detailed Description

Definition at line 10 of file LSerie.h.


Constructor & Destructor Documentation

LSerie::LSerie (  ) 

Constructeur de la classe par défaut.

Il paramétre une communication série sur COM1 à 9600 Bauds, 8 bit et pas de parté.

Definition at line 12 of file LSerie.cpp.

LSerie::~LSerie (  )  [virtual]

Definition at line 18 of file LSerie.cpp.


Member Function Documentation

void LSerie::closeCom (  ) 

Definition at line 122 of file LSerie.cpp.

bool LSerie::getCd (  ) 

Definition at line 403 of file LSerie.cpp.

bool LSerie::getCts (  ) 

Definition at line 369 of file LSerie.cpp.

bool LSerie::getDtr (  ) 

Definition at line 380 of file LSerie.cpp.

string LSerie::getErrorMsg (  ) 

Definition at line 416 of file LSerie.cpp.

bool LSerie::getRi (  ) 

Definition at line 391 of file LSerie.cpp.

bool LSerie::open ( int  numPort,
long  speedInBaud,
int  nbBit,
int  parity,
float  nbStopBit 
)

Definition at line 37 of file LSerie.cpp.

bool LSerie::open ( int  numPort,
long  speedInBaud 
)

Definition at line 22 of file LSerie.cpp.

int LSerie::receiveData ( string *  data  ) 

Definition at line 260 of file LSerie.cpp.

int LSerie::receiveData ( DWORD  lg,
LPBYTE  data 
)

Definition at line 283 of file LSerie.cpp.

int LSerie::sendData ( string *  data  ) 

Definition at line 200 of file LSerie.cpp.

int LSerie::sendData ( DWORD  lg,
LPBYTE  data 
)

Definition at line 219 of file LSerie.cpp.

bool LSerie::setDtr ( bool  val  ) 

Definition at line 351 of file LSerie.cpp.

bool LSerie::setRts ( bool  val  ) 

Definition at line 313 of file LSerie.cpp.

bool LSerie::setSpeed ( DWORD  baudrate  ) 

Definition at line 166 of file LSerie.cpp.

bool LSerie::setTimeOut ( DWORD  ms  ) 

Definition at line 140 of file LSerie.cpp.

bool LSerie::setTxd ( bool  val  ) 

Definition at line 332 of file LSerie.cpp.


Member Data Documentation

Definition at line 19 of file LSerie.h.

Definition at line 17 of file LSerie.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Defines
Generated on Sat May 15 15:11:27 2010 for NeuroSky by  doxygen 1.6.3