Exception.h File Reference
#include <WString.h>
Include dependency graph for Exception.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
| IO | |
| IO::Modbus | |
Macros | |
| #define | MODBUS_FUNCTION_MAP(XX) |
Enumerations | |
| enum | IO::Modbus::Exception { IO::Modbus::Exception::Success = 0x00, IO::Modbus::Exception::IllegalFunction = 0x01, IO::Modbus::Exception::IllegalDataAddress = 0x02, IO::Modbus::Exception::IllegalDataValue = 0x03, IO::Modbus::Exception::SlaveDeviceFailure = 0x04 } |
| Modbus exception codes returned in response packets. More... | |
Functions | |
| bool | IO::Modbus::operator! (Exception exception) |
| String | IO::Modbus::toString (Exception exception) |
Macro Definition Documentation
◆ MODBUS_FUNCTION_MAP
| #define MODBUS_FUNCTION_MAP | ( | XX | ) |
Value:
XX(None, 0x00) \
XX(ReadCoils, 0x01) \
XX(ReadDiscreteInputs, 0x02) \
XX(ReadHoldingRegisters, 0x03) \
XX(ReadInputRegisters, 0x04) \
XX(WriteSingleCoil, 0x05) \
XX(WriteSingleRegister, 0x06) \
XX(ReadExceptionStatus, 0x07) \
XX(GetComEventCounter, 0x0b) \
XX(GetComEventLog, 0x0c) \
XX(WriteMultipleCoils, 0x0f) \
XX(WriteMultipleRegisters, 0x10) \
XX(ReportServerId, 0x11) \
XX(MaskWriteRegister, 0x16) \
XX(ReadWriteMultipleRegisters, 0x17)
1.8.13