Macros | Functions
rs232-cygwin.cpp File Reference

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"
Include dependency graph for rs232-cygwin.cpp:

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...
 

Detailed Description

Implementation of class #SDH::cRS232, a class to access serial RS232 port on cygwin/linux.

General file information

Author
Dirk Osswald
Date
2007-02-20

Copyright

Copyright (c) 2007 SCHUNK GmbH & Co. KG


Definition in file rs232-cygwin.cpp.

Macro Definition Documentation

#define DBG (   ...)
Value:
do { \
__VA_ARGS__; \
} while (0)

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.

Function Documentation

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.



sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Sun Aug 18 2019 03:42:20