|
liblightmodbus
2.0
A lightweight, cross-platform Modbus RTU library
|
Master's register-related frame building functions. More...
Go to the source code of this file.
Functions | |
| ModbusError | modbusBuildRequest0304 (ModbusMaster *status, uint8_t function, uint8_t address, uint16_t index, uint16_t count) |
| Builds request 03 (read multiple holding registers) or 04 (read multiple input registers) frame. More... | |
| static ModbusError | modbusBuildRequest03 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t count) |
| Builds request 03 (read multiple holding registers) frame. More... | |
| static ModbusError | modbusBuildRequest04 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t count) |
| Builds request 04 (read multiple input registers) frame. More... | |
| ModbusError | modbusBuildRequest06 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t value) |
| Builds request 06 (write a single holding register) frame. More... | |
| ModbusError | modbusBuildRequest16 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t count, uint16_t *values) |
| Builds request 16 (write multiple holding registers) frame. More... | |
| ModbusError | modbusBuildRequest22 (ModbusMaster *status, uint8_t address, uint16_t index, uint16_t andmask, uint16_t ormask) |
| Builds request 22 (mask-write holding register) frame. More... | |
Master's register-related frame building functions.
|
inlinestatic |
Builds request 03 (read multiple holding registers) frame.
F03M or F04M module (see Building liblightmodbus)Calls modbusBuildRequest0304 with 3 as the second parameter
| status | The master structure to load with the request frame |
| address | Address of slave to be requested |
| index | Address of the first register |
| count | Number of registers to be read |
Here is the call graph for this function:| ModbusError modbusBuildRequest0304 | ( | ModbusMaster * | status, |
| uint8_t | function, | ||
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | count | ||
| ) |
Builds request 03 (read multiple holding registers) or 04 (read multiple input registers) frame.
F03M or F04M module (see Building liblightmodbus) modbusParseRequest03 and modbusParseRequest04 macros are aliases of this function | status | The master structure to load with the request frame |
| function | Function to be used in the request (03 or 04) |
| address | Address of slave to be requested |
| index | Address of the first register |
| count | Number of registers to be read |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Builds request 04 (read multiple input registers) frame.
F03M or F04M module (see Building liblightmodbus)Calls modbusBuildRequest0304 with 4 as the second parameter
| status | The master structure to load with the request frame |
| address | Address of slave to be requested |
| index | Address of the first register |
| count | Number of registers to be read |
Here is the call graph for this function:| ModbusError modbusBuildRequest06 | ( | ModbusMaster * | status, |
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | value | ||
| ) |
Builds request 06 (write a single holding register) frame.
F06M 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 register |
| value | The value to be written |
Here is the call graph for this function:
Here is the caller graph for this function:| ModbusError modbusBuildRequest16 | ( | ModbusMaster * | status, |
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | count, | ||
| uint16_t * | values | ||
| ) |
Builds request 16 (write multiple holding registers) frame.
F16M 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 register |
| count | Number of registers to be written |
| values | The value to be written |
Here is the call graph for this function:
Here is the caller graph for this function:| ModbusError modbusBuildRequest22 | ( | ModbusMaster * | status, |
| uint8_t | address, | ||
| uint16_t | index, | ||
| uint16_t | andmask, | ||
| uint16_t | ormask | ||
| ) |
Builds request 22 (mask-write holding register) frame.
F22M 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 register |
| andmask | The AND mask value |
| ormask | The OR mask value |
Here is the call graph for this function:
Here is the caller graph for this function:
1.8.13