rtdxevent.h
来自「TMS320F2812的C++ examples 各个模块的程序」· C头文件 代码 · 共 54 行
H
54 行
// RtdxEvent.h: interface for the CRtdxEvent class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_RTDXEVENT_H__69BFBEC2_CF8C_11D1_A964_006097A6A260__INCLUDED_)#define AFX_RTDXEVENT_H__69BFBEC2_CF8C_11D1_A964_006097A6A260__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000// ########## RTDX(TM) ###########import "..\..\..\..\cc\bin\rtdxint.dll"using namespace RTDXINTLib;// ########## RTDX(TM) ###########include <iostream.h>#include <stdio.h>#include <fstream> // For fstream#include "BoardProcessor.h"// Event Classclass CRtdxEvent {public: // Event Structure typedef struct RTDX_Event_Attributes { char name[80]; long id; }EVENTATTRIB; unsigned int GetNumOfEvents(); void SetNumOfEvents(char *NumOfEvents); long ReleaseRTDXObject(); long ProbeChannel(); HRESULT GetRTDXObject(char *channel_name); void NameEvents(); unsigned int GetTargetIntSize(); void SetTargetIntSize(char *TargetIntSize); CRtdxEvent(); virtual ~CRtdxEvent();private: void ProcessMessage(long msgid); std::fstream m_logfile; // Logfile variable unsigned int m_integer_size; // Target integer size unsigned int m_total_events; // Total number of channels BOOL m_FOUND_MSGID; // Message ID found flag EVENTATTRIB *m_pEvent; // Pointer to event attributes IRtdxExpPtr m_pRtdx; // Pointer to Rtdx Interface};#endif // !defined(AFX_RTDXEVENT_H__69BFBEC2_CF8C_11D1_A964_006097A6A260__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?