28 lines
509 B
C
28 lines
509 B
C
#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
|