first commit

This commit is contained in:
2026-04-29 14:10:10 +08:00
commit b28556d43d
1558 changed files with 241386 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef _DEMO_H
#define _DEMO_H
/* ----------------------- Modbus includes ----------------------------------*/
#include "mb.h"
#include "mbport.h"
#ifdef __cplusplus
PR_BEGIN_EXTERN_C
#endif
static enum ThreadState
{
STOPPED,
RUNNING,
SHUTDOWN
} ePollThreadState;
BOOL active_modbus( USHORT* mPara, USHORT* mStatus,USHORT port_num);
void vSetPollingThreadState( enum ThreadState eNewState );
enum ThreadState eGetPollingThreadState( void );
#ifdef __cplusplus
PR_END_EXTERN_C
#endif
#endif