?? xllinfunctions.h
字號:
// LINFunctions.h: interface for the CLINFunctions class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LINFUNCTIONS_H__CFE0F1C7_2CCA_4700_8EA9_F8BE82F0BDA6__INCLUDED_)
#define AFX_LINFUNCTIONS_H__CFE0F1C7_2CCA_4700_8EA9_F8BE82F0BDA6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "../../bin/vxlapi.h"
#define MAXPORT 8
#define RECEIVE_EVENT_SIZE 1 // DO NOT EDIT! Currently 1 is supported only
#define MASTER 01 //!< channel is a master
#define SLAVE 02 //!< channel is a slave
typedef struct {
XLportHandle xlPortHandle;
HANDLE hMsgEvent;
CListBox *pStatusBox;
CListBox *pListRX;
} TStruct;
class CLINFunctions
{
public:
CLINFunctions();
virtual ~CLINFunctions();
XLstatus LINGetDevice();
XLstatus LINInit(int linID);
XLstatus LINSendMasterReq(BYTE data, int linID);
XLstatus LINClose();
CListBox *m_pRXBox;
CListBox *m_pStatusBox;
private:
XLstatus linGetChannelMask(int LINType);
XLstatus linInitMaster();
XLstatus linInitSlave(int linID);
XLstatus linCreateRxThread();
XLstatus linSetSlave(byte data);
XLaccess m_xlChannelMask[MAXPORT];
XLportHandle m_xlPortHandle;
XLhandle m_hMsgEvent;
HANDLE m_hThread;
};
DWORD WINAPI RxThread( PVOID par );
#endif // !defined(AFX_LINFUNCTIONS_H__CFE0F1C7_2CCA_4700_8EA9_F8BE82F0BDA6__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -