123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef _DEMO_H_
- #define _DEMO_H_
- #include "types.h"
- #include "dsi_framer_ant.hpp"
- #include "dsi_thread.h"
- #include "dsi_serial_generic.hpp"
- BOOL bCaughtSig = FALSE;
- class Demo {
- public:
- Demo();
- virtual ~Demo();
- BOOL GetUserInfo();
- BOOL Init(UCHAR ucDeviceNumberUSB_);
- void Start();
- void HeartBeat();
- void Close();
- private:
- BOOL InitANT();
-
- static DSI_THREAD_RETURN RunMessageThread(void *pvParameter_);
-
- void MessageThread();
-
- void ProcessMessage(ANT_MESSAGE stMessage, USHORT usSize_);
-
- static BOOL CtrlHandler( DWORD fdwCtrlType );
- BOOL bBroadcasting;
- BOOL bMyDone;
- BOOL bDone;
- BOOL bPrintAllMessages;
- UCHAR ucChannelType;
- INT siDeviceNumberANT;
- DSISerialGeneric* pclSerialObject;
- DSIFramerANT* pclMessageObject;
- DSI_THREAD_ID uiDSIThread;
- DSI_CONDITION_VAR condTestDone;
- DSI_MUTEX mutexTestDone;
-
- USHORT usHeartBeatEventTime;
- UCHAR ucHeartBeatCount;
- UCHAR ucHeartRate;
- ULONGLONG ullTimeSinceStart;
- ULONGLONG ullStartupTime;
- UCHAR aucTransmitBuffer[ANT_STANDARD_DATA_PAYLOAD_SIZE];
- };
- #endif
|