1#ifndef LIGHTMODBUS_SLAVE_FUNC_H
2#define LIGHTMODBUS_SLAVE_FUNC_H
15 const uint8_t *requestPDU,
16 uint8_t requestLength);
21 const uint8_t *requestPDU,
22 uint8_t requestLength);
27 const uint8_t *requestPDU,
28 uint8_t requestLength);
33 const uint8_t *requestPDU,
34 uint8_t requestLength);
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