From 70c917e4caee129687d18b2788282ff7cd1509e8 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Wed, 12 Feb 2020 19:46:57 -0500 Subject: Comments --- src/modbus.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modbus.h b/src/modbus.h index 7f80c4c..a3835fa 100644 --- a/src/modbus.h +++ b/src/modbus.h @@ -4,15 +4,17 @@ #include #include +/* Modbus function codes */ #define read_holding_regs 0x03 #define read_input_regs 0x04 #define write_single_reg 0x06 +/* Helpful macros */ #define lowByte(w) ((uint8_t) ((w) & 0xff)) #define highByte(w) ((uint8_t) ((w) >> 8)) #define word(h, l) ((h << 8) | l) -/* #define MODBUS_TIMEOUT 50 */ +/* Maximum response buffer size for Modbus nodes */ #define MAX_BUFSIZE 64 typedef struct { -- cgit v1.2.3