|
liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
Slave's functions for parsing requests (implementation) More...
Include dependency graph for slave_func.impl.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| ModbusErrorInfomodbusParseRequest01020304 (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. | |
| ModbusErrorInfomodbusParseRequest0506 (ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength) | |
| Handles requests 05 and 06 (Write Single XX) and generates response. | |
| ModbusErrorInfomodbusParseRequest1516 (ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength) | |
| Handles requests 15 and 16 (Write Multiple XX) and generates response. | |
| ModbusErrorInfomodbusParseRequest22 (ModbusSlave *status, uint8_t function, const uint8_t *requestPDU, uint8_t requestLength) | |
| Handles request 22 (Mask Write Register) and generates response. | |
Slave's functions for parsing requests (implementation)
| ModbusErrorInfomodbusParseRequest01020304 | ( | 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.
| function | function code |
| requestPDU | pointer to the PDU section of the request |
| requestLength | length of the PDU section in bytes |
Here is the call graph for this function:| ModbusErrorInfomodbusParseRequest0506 | ( | ModbusSlave * | status, |
| uint8_t | function, | ||
| const uint8_t * | requestPDU, | ||
| uint8_t | requestLength ) |
Handles requests 05 and 06 (Write Single XX) and generates response.
| function | function code |
| requestPDU | pointer to the PDU section of the request |
| requestLength | length of the PDU section in bytes |
Here is the call graph for this function:| ModbusErrorInfomodbusParseRequest1516 | ( | ModbusSlave * | status, |
| uint8_t | function, | ||
| const uint8_t * | requestPDU, | ||
| uint8_t | requestLength ) |
Handles requests 15 and 16 (Write Multiple XX) and generates response.
| function | function code |
| requestPDU | pointer to the PDU section of the request |
| requestLength | length of the PDU section in bytes |
Here is the call graph for this function:| ModbusErrorInfomodbusParseRequest22 | ( | ModbusSlave * | status, |
| uint8_t | function, | ||
| const uint8_t * | requestPDU, | ||
| uint8_t | requestLength ) |
Handles request 22 (Mask Write Register) and generates response.
| function | function code |
| requestPDU | pointer to the PDU section of the request |
| requestLength | length of the PDU section in bytes |
Here is the call graph for this function: