iop_modbus.cpp File Reference

Process image via modbus/tcp. More...

#include "iop_modbus.h"

Go to the source code of this file.

Namespaces

 faudes
 libFAUDES resides within the namespace faudes.
 

Macros

#define MB_PDUOFF   7
 
#define MB_SETINT(p, v)   { mMessage[p] = ((v)>>8); mMessage[p+1] = ((v) & 0xff); }
 
#define MB_GETINT(p)   ( ( mMessage[p] << 8) + ((int) mMessage[p+1]) )
 
#define MB_SETBYTE(p, v)   { mMessage[p] = (v);}
 
#define MB_GETBYTE(p)   ( mMessage[p] )
 

Variables

AutoRegisterType< mbDevice > faudes::gRtiRegisterSpiDevice ("ModbusDevice")
 

Detailed Description

Process image via modbus/tcp.

Definition in file iop_modbus.cpp.

Macro Definition Documentation

◆ MB_GETBYTE

#define MB_GETBYTE (   p)    ( mMessage[p] )

Definition at line 367 of file iop_modbus.cpp.

◆ MB_GETINT

#define MB_GETINT (   p)    ( ( mMessage[p] << 8) + ((int) mMessage[p+1]) )

Definition at line 365 of file iop_modbus.cpp.

◆ MB_PDUOFF

#define MB_PDUOFF   7

Definition at line 363 of file iop_modbus.cpp.

◆ MB_SETBYTE

#define MB_SETBYTE (   p,
 
)    { mMessage[p] = (v);}

Definition at line 366 of file iop_modbus.cpp.

◆ MB_SETINT

#define MB_SETINT (   p,
 
)    { mMessage[p] = ((v)>>8); mMessage[p+1] = ((v) & 0xff); }

Definition at line 364 of file iop_modbus.cpp.

libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen