MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/ModbusDiscreteInput.hh
2024-06-07 11:12:56 +03:00

41 lines
746 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* ModbusRtuDiscreteInput.hh
*
* Created on: 27 авг. 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_DRIVER_MODBUSDISCRETEINPUT_HH_
#define UMLIBRARY_DRIVER_MODBUSRTUDISCRETEINPUT_HH_
#include <stdint.h>
#include "../systemic/IStatus.hh"
#include "IModBus.hh"
namespace driver {
namespace modbus {
class ModbusDiscreteInput : public IModBusDispatch {
typedef IModBusDispatch::Status Status;
systemic::IStatus & status;
const bool inversion; //!<Признак инверсии выхода.
public:
ModbusDiscreteInput( systemic::IStatus & value, bool inversion );
Status read( uint16_t & reg );
Status write( uint16_t reg );
};
}
}
#endif /* UMLIBRARY_DRIVER_MODBUSDISCRETEINPUT_HH_ */