This commit is contained in:
2026-03-20 21:19:04 +08:00
parent 90c3d919df
commit 9d3b4b836f
247 changed files with 22127 additions and 30305 deletions

5
user/Protocol/MODBUS.h Executable file → Normal file
View File

@@ -1,10 +1,6 @@
#ifndef __MODBUS_h__
#define __MODBUS_h__
#define MAX 0
#define MIN 1
#define DEFAULT 2
//******************************************************************************
typedef struct
{
u16 StartAddr;
@@ -39,6 +35,7 @@ typedef struct
#define SLAVER_ADDR_MIN 1
//******************************************************************************
#define SLAVER_ID 0
#define FUNCTION_CODE 1
//******************************************************************************