liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
Loading...
Searching...
No Matches
slave_func.h
Go to the documentation of this file.
1#ifndef LIGHTMODBUS_SLAVE_FUNC_H
2#define LIGHTMODBUS_SLAVE_FUNC_H
3
4#include "base.h"
5#include "slave.h"
6
13 ModbusSlave *status,
14 uint8_t function,
15 const uint8_t *requestPDU,
16 uint8_t requestLength);
17
19 ModbusSlave *status,
20 uint8_t function,
21 const uint8_t *requestPDU,
22 uint8_t requestLength);
23
25 ModbusSlave *status,
26 uint8_t function,
27 const uint8_t *requestPDU,
28 uint8_t requestLength);
29
31 ModbusSlave *status,
32 uint8_t function,
33 const uint8_t *requestPDU,
34 uint8_t requestLength);
35
36#endif
Common types and functions (header)
#define LIGHTMODBUS_RET_ERROR
Return type for library functions returning ModbusErrorInfo that should be handled properly.
Definition base.h:49
Slave's types and basic functions (header)
ModbusErrorInfo modbusParseRequest1516(ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength)
Handles requests 15 and 16 (Write Multiple XX) and generates response.
Definition slave_func.impl.h:190
ModbusErrorInfo modbusParseRequest0506(ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength)
Handles requests 05 and 06 (Write Single XX) and generates response.
Definition slave_func.impl.h:131
ModbusErrorInfo modbusParseRequest22(ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength)
Handles request 22 (Mask Write Register) and generates response.
Definition slave_func.impl.h:270
ModbusErrorInfo modbusParseRequest01020304(ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength)
Handles requests 01, 02, 03 and 04 (Read Multiple XX) and generates response.
Definition slave_func.impl.h:21
Slave device status.
Definition slave.h:90