LSerie Class Reference

#include <LSerie.h>

Inheritance diagram for LSerie:
NoninCom

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 ()
bool isConnect ()
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 19 of file LSerie.cpp.


Member Function Documentation

void LSerie::closeCom (  ) 

Definition at line 127 of file LSerie.cpp.

bool LSerie::getCd (  ) 

Definition at line 408 of file LSerie.cpp.

bool LSerie::getCts (  ) 

Definition at line 374 of file LSerie.cpp.

bool LSerie::getDtr (  ) 

Definition at line 385 of file LSerie.cpp.

string LSerie::getErrorMsg (  ) 

Definition at line 421 of file LSerie.cpp.

bool LSerie::getRi (  ) 

Definition at line 396 of file LSerie.cpp.

bool LSerie::isConnect (  ) 

Definition at line 443 of file LSerie.cpp.

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

Definition at line 39 of file LSerie.cpp.

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

Definition at line 24 of file LSerie.cpp.

int LSerie::receiveData ( string *  data  ) 

Definition at line 265 of file LSerie.cpp.

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

Definition at line 288 of file LSerie.cpp.

int LSerie::sendData ( string *  data  ) 

Definition at line 205 of file LSerie.cpp.

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

Definition at line 224 of file LSerie.cpp.

bool LSerie::setDtr ( bool  val  ) 

Definition at line 356 of file LSerie.cpp.

bool LSerie::setRts ( bool  val  ) 

Definition at line 318 of file LSerie.cpp.

bool LSerie::setSpeed ( DWORD  baudrate  ) 

Definition at line 171 of file LSerie.cpp.

bool LSerie::setTimeOut ( DWORD  ms  ) 

Definition at line 145 of file LSerie.cpp.

bool LSerie::setTxd ( bool  val  ) 

Definition at line 337 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 Enumerations Enumerator Defines
Generated on Fri Oct 15 10:23:40 2010 for Nonin by  doxygen 1.6.3