BusBricks: /Users/felixschulke/Developement/Arduino/Modbus_RTU/Modbus_RTU/Modbus-RTU/lib/ModbusRTU/Frame_modbusRTU.h File Reference
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
Frame_modbusRTU.h File Reference
#include <mockArduino.h>
#include <Frame.h>
Include dependency graph for Frame_modbusRTU.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Frame_modbusRTU
 Class for defining the structure of the Modbus-RTU-Frame. Can be constructed by a given modbus-frame and extracts payload, device-id and function-code (additionally checking CRC) or by providing payload, device-id and function-code (additionally calculating CRC). More...
 

Macros

#define PREFIXSIZE   2
 two bytes prefix in frame before pdu (Device-adress, modbus-functioncode)
 
#define SUFFIXSIZE   2
 two bytes suffix in frame after pdu (CRC HighByte / LowByte)
 
#define CRC16MASK   0xA001
 CRC-16 mask to use (modbus-rtu default 0xA001)
 
#define CRC16VALUE   0xFFFF
 CRC-16 startvalue to use (modbus-rtu default 0xFFFF)
 

Detailed Description

Author
Felix Schuelke (flxsc.nosp@m.ode@.nosp@m.gmail.nosp@m..com)
Version
0.1
Date
2024-08-18

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.