Classes | Macros | Functions
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:

Go to the source code of this file.

Classes

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

Macros

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

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


Definition in file canserial-esd.cpp.

Macro Definition Documentation

◆ DBG

#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

Definition at line 161 of file canserial-esd.cpp.

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

Definition at line 154 of file canserial-esd.cpp.

Function Documentation

◆ ESD_strerror()

char const* ESD_strerror ( NTCAN_RESULT  rc)

Definition at line 232 of file canserial-esd.cpp.



sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58