Files
stm32-comm/SLP_OPR/myDrivers/w5500/rtuMaster.h
T
2026-03-31 13:27:23 +08:00

24 lines
414 B
C

/*
* 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_ */