liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
Slave's functions for parsing requests (header) More...
Go to the source code of this file.
Functions | |
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. | |
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. | |
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. | |
ModbusErrorInfo | modbusParseRequest22 (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 (header)
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.
function | function code |
requestPDU | pointer to the PDU section of the request |
requestLength | length of the PDU section in bytes |
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.
function | function code |
requestPDU | pointer to the PDU section of the request |
requestLength | length of the PDU section in bytes |
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.
function | function code |
requestPDU | pointer to the PDU section of the request |
requestLength | length of the PDU section in bytes |
ModbusErrorInfo modbusParseRequest22 | ( | 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 |