|
liblightmodbus
2.0
A lightweight, cross-platform Modbus RTU library
|
Functions | |
| ModbusError | modbusBuildRequest0102 (ModbusMaster *status, uint8_t function, uint8_t address, uint16_t index, uint16_t count) |
| Builds request 01 (read multiple coils) or 02 (read multiple discrete inputs) frame. More... | |
| ModbusError | modbusBuildRequest05 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t value) |
| Builds request 05 (write a single coil) frame. More... | |
| ModbusError | modbusBuildRequest15 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t count, uint8_t *values) |
| Builds request 15 (write multiple coils) frame. More... | |
| ModbusError modbusBuildRequest0102 | ( | ModbusMaster * | status, |
| uint8_t | function, | ||
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | count | ||
| ) |
Builds request 01 (read multiple coils) or 02 (read multiple discrete inputs) frame.
F01M or F02M module (see Building liblightmodbus) modbusParseRequest01 and modbusParseRequest02 macros are aliases of this function | status | The master structure to load with the request frame |
| function | Function to be used in the request (01 or 02) |
| address | Address of slave to be requested |
| index | Address of the first discrete input/coil |
| count | Number of coils to be read |
Here is the call graph for this function:
Here is the caller graph for this function:| ModbusError modbusBuildRequest05 | ( | ModbusMaster * | status, |
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | value | ||
| ) |
Builds request 05 (write a single coil) frame.
F01M or F02M module (see Building liblightmodbus)| status | The master structure to load with the request frame |
| address | Address of slave to be requested |
| index | Address of the coil |
| value | Coil value to be written |
Here is the call graph for this function:
Here is the caller graph for this function:| ModbusError modbusBuildRequest15 | ( | ModbusMaster * | status, |
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | count, | ||
| uint8_t * | values | ||
| ) |
Builds request 15 (write multiple coils) frame.
LIGHTMODBUS_F15M macro to be defined F05M module (see Building liblightmodbus)| status | The master structure to load with the request frame |
| address | Address of slave to be requested |
| index | Address of the first coil |
| count | Number of coils to be written |
| values | Coil values to be written (each bit corresponds to one coil) |
Here is the call graph for this function:
Here is the caller graph for this function:
1.8.13