|
liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
Represents a Modbus slave device. More...
#include <lightmodbus.hpp>
Collaboration diagram for llm::Slave:Public Member Functions | |
| Slave (ModbusRegisterCallback registerCallback, ModbusSlaveExceptionCallback exceptionCallback=nullptr, ModbusAllocator allocator=modbusDefaultAllocator, ModbusSlaveFunctionHandler *functions=modbusSlaveDefaultFunctions, uint16_t functionCount=modbusSlaveDefaultFunctionCount) | |
| ~Slave () | |
| Slave (const Slave &)=delete | |
| Slave (Slave &&)=delete | |
| Slave & | operator= (const Slave &)=delete |
| Slave & | operator= (Slave &&)=delete |
| void | parseRequestPDU (const uint8_t *frame, uint16_t length) |
| void | parseRequestRTU (uint8_t address, const uint8_t *frame, uint16_t length) |
| void | parseRequestTCP (const uint8_t *frame, uint16_t length) |
| void | buildExceptionPDU (uint8_t function, ModbusExceptionCode code) |
| void | buildExceptionRTU (uint8_t address, uint8_t function, ModbusExceptionCode code) |
| void | buildExceptionTCP (uint16_t transactionID, uint8_t unitID, uint8_t function, ModbusExceptionCode code) |
| const uint8_t * | getResponse () const |
| uint16_t | getResponseLength () const |
| void | freeResponse () |
| void | setUserPointer (void *ptr) |
| void * | getUserPointer () const |
Protected Attributes | |
| ModbusSlave | m_slave |
| bool | m_ok = false |
Represents a Modbus slave device.
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
delete |
|
delete |
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
protected |
|
protected |