|
| 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 |
|
Represents a Modbus slave device.