Implementation of class #SDH::cRS232, a class to access serial RS232 port on cygwin/linux. More...
#include "sdhlibrary_settings.h"
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/select.h>
#include <sys/ioctl.h>
#include <iostream>
#include <exception>
#include <string>
#include <stdarg.h>
#include <cstring>
#include "rs232-cygwin.h"
#include "simpletime.h"
Go to the source code of this file.
Macros | |
#define | DBG(...) |
#define | SDH_RS232_CYGWIN_DEBUG 1 |
Functions | |
USING_NAMESPACE_SDH char * | StrDupNew (char *const s) |
helper function, duplicate string s into a char array allocated with new[] More... | |
Implementation of class #SDH::cRS232, a class to access serial RS232 port on cygwin/linux.
Copyright (c) 2007 SCHUNK GmbH & Co. KG
Definition in file rs232-cygwin.cpp.
#define DBG | ( | ... | ) |
instead of guarding every debug output with #if SDH_RS232_CYGWIN_DEBUG / #endif we use this DBG macro that expands to a stream output to a dbg object or to ";" depending on the value of SDH_RS232_CYGWIN_DEBUG
Definition at line 79 of file rs232-cygwin.cpp.
#define SDH_RS232_CYGWIN_DEBUG 1 |
Flag, if true then code for debug messages is included.
The debug messages must still be enabled at run time by setting the some_cRS232_object.dbg.SetFlag(1)
.
This 2 level scheme is used since this is the lowlevel communication, so debug outputs might really steal some performance.
Definition at line 72 of file rs232-cygwin.cpp.
USING_NAMESPACE_SDH char* StrDupNew | ( | char *const | s | ) |
helper function, duplicate string s into a char array allocated with new[]
Definition at line 100 of file rs232-cygwin.cpp.