This commit is contained in:
claw committed 2026-03-31 13:27:23 +08:00
commit 53c85e94af
393 files changed
+141844

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
/*
* rtuMaster.h
*
* Created on: Mar 26, 2026
* Author: 18896
*/
#ifndef RTUMASTER_H_
#define RTUMASTER_H_
typedef struct {
_Bool rxdone;
uint16_t rxsize, txsize;
uint16_t timeout;
uint8_t rxbuf[255];
uint8_t txbuf[255];
uint16_t localSlaveId;
uint16_t localStartIdx;
} RtuMaster;
void RTU_Master_Loop(RtuMaster *master, rtumST myRtumST[20]);
#endif /* RTUMASTER_H_ */