SDHLibrary-CPP 0.0.2.10SCHUNK GmbH & Co. KG
C++ access library for SCHUNK Dextrous Hand SDH

sdh/canserial-esd.cpp File Reference

Implementation of class SDH::cCANSerial_ESD, a class to access an ESD CAN interface on cygwin/linux and Visual Studio. More...

#include "ntcan.h"
#include "sdhlibrary_settings.h"
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <iostream>
#include <exception>
#include <stdarg.h>
#include <assert.h>
#include "canserial-esd.h"
#include "simpletime.h"
#include "util.h"
Include dependency graph for canserial-esd.cpp:

Classes

class  SDH::cCANSerial_ESD_Internal
 internal hardware specific implementation details of the lowlevel ESD CAN interface More...

Namespaces

namespace  SDH

Defines

#define SDH_CANSERIAL_ESD_DEBUG   1
#define DBG(...)

Functions

char const * ESD_strerror (NTCAN_RESULT rc)

Detailed Description

Implementation of class SDH::cCANSerial_ESD, a class to access an ESD CAN interface on cygwin/linux and Visual Studio.

General file information

Author:
Dirk Osswald
Date:
2007-02-20

Copyright

Copyright (c) 2007 SCHUNK GmbH & Co. KG



Define Documentation

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

instead of guarding every debug output with #if SDH_CANSERIAL_ESD_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_CANSERIAL_ESD_DEBUG

#define SDH_CANSERIAL_ESD_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.


Function Documentation

char const* ESD_strerror ( NTCAN_RESULT  rc)