2#ifndef ModbusRTUMaster_H_
3#define ModbusRTUMaster_H_
8#include "Configuration.h"
9#include "PassiveTimer.h"
11#include "ModbusTypes.h"
12#include "ModbusClient.h"
29 virtual void cleanupChannel()
override;
31 void setSpeed( ComPort::Speed s );
32 void setSpeed(
const std::string& s );
33 ComPort::Speed getSpeed();
35 void setParity( ComPort::Parity parity );
36 ComPort::Parity getParity();
37 void setCharacterSize( ComPort::CharacterSize csize );
38 ComPort::CharacterSize getCharacterSize();
39 void setStopBits( ComPort::StopBits sBit );
40 ComPort::StopBits getStopBits();
42 timeout_t getTimeout()
const;
52 virtual size_t getNextData(
unsigned char* buf,
size_t len )
override;
57 virtual ModbusRTU::mbErrCode sendData(
unsigned char* buf,
size_t len )
override;
Definition ModbusClient.h:19
Definition ModbusRTUMaster.h:22
std::string dev
Definition ModbusRTUMaster.h:64
virtual ModbusRTU::mbErrCode query(ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusMessage &msg, ModbusRTU::ModbusMessage &reply, timeout_t timeout) override
Definition ModbusRTUMaster.cc:191
ComPort * port
Definition ModbusRTUMaster.h:65
virtual size_t getNextData(unsigned char *buf, size_t len) override
Definition ModbusRTUMaster.cc:164
virtual void setChannelTimeout(timeout_t msec) override
Definition ModbusRTUMaster.cc:170
Definition Calibration.h:27
Definition ModbusTypes.h:211