WPOCT Software Developer's Kit (SDK)
SDK For using Wasatch Photonics OCT Spectrometers
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CSerial Class Reference

Public Member Functions

bool Open (const std::string &comName, int nBaud=9600, int stopBits=1, int timeout=1000)
 
bool Close (void)
 
int Read (void *, int)
 
std::string ReadStringUntil (std::string delim)
 
std::string ReadExisting ()
 
int Write (const char *, int)
 
int WriteString (const std::string &s)
 
int ReadDataWaiting (void)
 
bool IsOpen (void)
 
void SetReadDelay (int ms)
 

Protected Member Functions

BOOL WriteCommByte (unsigned char)
 

Protected Attributes

HANDLE _hIDComDev
 
OVERLAPPED _overlappedRead
 
OVERLAPPED _overlappedWrite
 
bool _opened
 
char * _buff
 
int _maxBuf
 
int _readDelay
 

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