Macros
wg0x.cpp File Reference
#include <iomanip>
#include <math.h>
#include <stddef.h>
#include <ethercat_hardware/wg0x.h>
#include <dll/ethercat_dll.h>
#include <al/ethercat_AL.h>
#include <dll/ethercat_device_addressed_telegram.h>
#include <dll/ethercat_frame.h>
#include <boost/crc.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
#include <boost/make_shared.hpp>
#include "ethercat_hardware/wg_util.h"
Include dependency graph for wg0x.cpp:

Go to the source code of this file.

Macros

#define CHECK_SAFETY_BIT(bit)
 
#define ERR_MODE   "\033[41m"
 
#define ERROR_HDR   "\033[41mERROR\033[0m"
 
#define GET_ATTR(a)
 
#define GOOD_MODE   "\033[42m"
 
#define INFO_MODE   "\033[44m"
 
#define STD_MODE   "\033[0m"
 
#define WARN_HDR   "\033[43mERROR\033[0m"
 
#define WARN_MODE   "\033[43m"
 

Macro Definition Documentation

◆ CHECK_SAFETY_BIT

#define CHECK_SAFETY_BIT (   bit)
Value:
do { if (status & SAFETY_##bit) { \
str += prefix + #bit; \
prefix = ", "; \
} } while(0)
uint16_t status

Definition at line 1163 of file wg0x.cpp.

◆ ERR_MODE

#define ERR_MODE   "\033[41m"

Definition at line 53 of file wg0x.cpp.

◆ ERROR_HDR

#define ERROR_HDR   "\033[41mERROR\033[0m"

Definition at line 59 of file wg0x.cpp.

◆ GET_ATTR

#define GET_ATTR (   a)
Value:
{ \
TiXmlElement *c; \
attr = elt->Attribute((a)); \
if (!attr) { \
c = elt->FirstChildElement((a)); \
if (!c || !(attr = c->GetText())) { \
ROS_FATAL("Actuator is missing the attribute "#a); \
exit(EXIT_FAILURE); \
} \
} \
}

Definition at line 536 of file wg0x.cpp.

◆ GOOD_MODE

#define GOOD_MODE   "\033[42m"

Definition at line 56 of file wg0x.cpp.

◆ INFO_MODE

#define INFO_MODE   "\033[44m"

Definition at line 57 of file wg0x.cpp.

◆ STD_MODE

#define STD_MODE   "\033[0m"

Definition at line 54 of file wg0x.cpp.

◆ WARN_HDR

#define WARN_HDR   "\033[43mERROR\033[0m"

Definition at line 60 of file wg0x.cpp.

◆ WARN_MODE

#define WARN_MODE   "\033[43m"

Definition at line 55 of file wg0x.cpp.



ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Tue Mar 28 2023 02:10:20