liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
(Very) experimental liblightmodbus C++ interface More...
Go to the source code of this file.
Data Structures | |
class | llm::RequestError |
Request error exception class. More... | |
class | llm::ResponseError |
Response error exception class. More... | |
class | llm::GeneralError |
General error exception class. More... | |
class | llm::Slave |
Represents a Modbus slave device. More... | |
class | llm::Master |
Represents a Modbus master device. More... | |
Namespaces | |
namespace | llm |
The liblightmodbus C++ namepsace. | |
Macros | |
#define | LIGHTMODBUS_DEFINE_MEMBER_BUILD_PDU_HEADER(f_suffix, ...) void buildRequest##f_suffix##PDU(__VA_ARGS__) |
#define | LIGHTMODBUS_DEFINE_MEMBER_BUILD_PDU_BODY(f_suffix, ...) |
#define | LIGHTMODBUS_DEFINE_MEMBER_BUILD_RTU_HEADER(f_suffix, ...) void buildRequest##f_suffix##RTU(uint8_t address, __VA_ARGS__) |
#define | LIGHTMODBUS_DEFINE_MEMBER_BUILD_RTU_BODY(f_suffix, ...) |
#define | LIGHTMODBUS_DEFINE_MEMBER_BUILD_TCP_HEADER(f_suffix, ...) void buildRequest##f_suffix##TCP(uint16_t transactionID, uint8_t unitID, __VA_ARGS__) |
#define | LIGHTMODBUS_DEFINE_MEMBER_BUILD_TCP_BODY(f_suffix, ...) |
Functions | |
static void | llm::throwErrorInfo (ModbusErrorInfo err) |
Throws an exception based on ModbusErrorInfo. | |
(Very) experimental liblightmodbus C++ interface
#define LIGHTMODBUS_DEFINE_MEMBER_BUILD_PDU_BODY | ( | f_suffix, | |
... | |||
) |
#define LIGHTMODBUS_DEFINE_MEMBER_BUILD_PDU_HEADER | ( | f_suffix, | |
... | |||
) | void buildRequest##f_suffix##PDU(__VA_ARGS__) |
#define LIGHTMODBUS_DEFINE_MEMBER_BUILD_RTU_BODY | ( | f_suffix, | |
... | |||
) |
#define LIGHTMODBUS_DEFINE_MEMBER_BUILD_RTU_HEADER | ( | f_suffix, | |
... | |||
) | void buildRequest##f_suffix##RTU(uint8_t address, __VA_ARGS__) |
#define LIGHTMODBUS_DEFINE_MEMBER_BUILD_TCP_BODY | ( | f_suffix, | |
... | |||
) |
#define LIGHTMODBUS_DEFINE_MEMBER_BUILD_TCP_HEADER | ( | f_suffix, | |
... | |||
) | void buildRequest##f_suffix##TCP(uint16_t transactionID, uint8_t unitID, __VA_ARGS__) |