1 #ifndef _SerXInterface_
2 #define _SerXInterface_
4 #define SerXInterface_Name "com.bisque.TheSkyX.staticlibs.serx.SerXInterface/1.0"
42 virtual int open(
const char * pszPort,
43 const unsigned long & dwBaudRate = 9600,
45 const char * pszSession = 0) = 0;
65 const int& nTimeOutMilli) = 0;
74 const unsigned long dwTot,
76 const unsigned long& dwTimeOut = 1000) = 0;
84 const unsigned long& dwTot,
85 unsigned long& dwRote) = 0;
107 bool m_bAbortTimeout;
110 #endif // _SerXInterface_
virtual int bytesWaitingRx(int &nBytesWaiting)=0
@ B_EVENPARITY
Definition: serxinterface.h:28
virtual int writeFile(void *lpBuf, const unsigned long &dwTot, unsigned long &dwRote)=0
virtual bool isConnected(void) const =0
virtual int purgeTxRx(void)=0
virtual void abortTimeout()
Definition: serxinterface.h:96
virtual void setAbortTimeout(const bool &bYes)
Definition: serxinterface.h:104
@ B_ODDPARITY
Definition: serxinterface.h:27
virtual bool didAbortTimeout() const
Definition: serxinterface.h:100
@ B_MARKPARITY
Definition: serxinterface.h:29
virtual int open(const char *pszPort, const unsigned long &dwBaudRate=9600, const Parity &parity=B_NOPARITY, const char *pszSession=0)=0
virtual int flushTx(void)=0
Parity
Definition: serxinterface.h:25
virtual int readFile(void *lpBuf, const unsigned long dwTot, unsigned long &dwRed, const unsigned long &dwTimeOut=1000)=0
The SerXInterface is a cross-plaform serial port.
Definition: serxinterface.h:18
@ B_NOPARITY
Definition: serxinterface.h:26
virtual int waitForBytesRx(const int &nNumber, const int &nTimeOutMilli)=0
@ B_SPACEPARITY
Definition: serxinterface.h:30
X2 Examples
(C) Software Bisque, Inc. All rights reserved.