First commit

This commit is contained in:
2026-08-25 10:37:57 +08:00
commit b3b8a40f77
1601 changed files with 275999 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