亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? c0ce410fa05f001d1289bbda6de18a35

?? Vxworks環(huán)境下
??
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/*$Log$*//*** ---------------------------------------------------------------------**                Copyright (c) Bosch Rexroth AG 1997 - 2007**                        All Rights Reserved** ---------------------------------------------------------------------****    File: dab_h_startgra.c** **    Responsible: AB** **    Description of functions:**                This file is the main File of the graphic task.**                It contain the needed steps to interface to NC Kernel**                on the basis of NCS and to interface to the Tilcon EVE**                There are a few platform-specific commands that need **                to be compiled into the program: **		  We define one of the following according to which **                platform we use:**                1. #define CC_TRT_DOS and #define HWDS_WINDOWS for**                        a Win32 applications**                                   OR**		  2. #define CC_TRT_VXWORKS for an applications running **                       on BRC Target whith Vxworks****					                           **                 in this file we will:**			  -  Start the  GUI task **			  -  Connect the GUI task to NCS   **			  -  InitializeApp (Start the Tilcon Engine EVE,**                        - Open channel to the EVE,Initialize Callbacks**                              Loead Window...)**			  -  wait for events from EVE**			  -  call callback Funktion as example to get **                           axis values, axis number....  ** ** ---------------------------------------------------------------------*//*F*/
/*======================================================================
**           >>>>    Include all necessary headfiles     <<<<
** ==================================================================== */
#include "dab_h_allheadfiles.h"
#include "dab_h_callbacks.h" /*the Header file with Callback Funktions*/
/*F*//*======================================================================**           >>>>    Local definitions               <<<<** ==================================================================== *//* Plattform specifacation for Tilcon EVE */#ifdef	CC_TRT_VXWORKS	     /* if the Engine (EVE) will run on Vxworks*/#define OS_TYPE TRT_VXWORKS#endif#ifdef CC_TRT_DOS	 /*if the Engine (EVE) will run on a windows PC*/#define OS_TYPE TRT_MS_WINDOWS			#endifEXPORT pid_t TRT_cid;EXPORT TRT_ReceiveData rec_data;EXPORT int EngineStatus;



/*
************************************************************************
** > AUTHOR        : Jiang
** > The define variable and function is only used in the CPL function test.  
*/
#define MAXWatchNr 40                 /*we can monitor only 40 watchponts at same time.*/

char    FileFoldBuf[100];             /*it will save Directory you select.*/
char Currentfileselect[20]=""; /*It will save the file name only.*/
long WatchPointRecordNr=0;            /*Use it help me to operate the Watchpoint record.*/         
struct  WatchPoint_ID{
	char Name[20];                    /*"@1"*/
	int  ID;						    /*save ID gived by system*/ 
	int  Index;                       /*watchpoint element place in the array.*/
	int  Value;                       /*watchpoint element value in the array.*/
}WatchPointRecord[MAXWatchNr];      /*Use it to Save the Watchpoint*/ 

/*Note: Some changing of MainEventLoop is to support the directroy tree*/
/*
************************************************************************
**This function can help us to get correct file path. 
**For example "\usr\user"--->"/usr/user"
*/
void ChangeChar(char *Setence,char oldchar, char newchar)   
{   
	char* p= Setence;   
	while(*p !='\0')   
	{   
		if(*p == oldchar)   
			*p = newchar;   
		p++;   
	}   	
}

void Find_PermVariable(char* source)
{
   char* Hold=source;
   char* p;
   char* q;
   q=Hold;
   while(*q!=0) q++;
   p=q;
   while(*p!='@')p--;
   TRT_SetValues(TRT_cid2, "WatchSelect",
		TRT_ATT_TEXT,p,
		NULL);
   
   
}/*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : ChangeConnectSymbol** ** >DESCRIPTION: this funktion is  an example function for Display and hid**                the connect Symbol on the Window** ** >NOTES:** ** >PARAMETER:   status =1 -> connected to target**                     =0 -> Disconnected** ** >RETURN VALUE:** ** >INCLUDES:** */LOCAL void ChangeConnectSymbol(char status){	long Error=0;	if (status ==1)	{		/* Hide the disconnected symbol */		Error=TRT_Hide(TRT_cid, DISCONNEC_SYMBOL_ICON_ID);		/* Display the connected symbol*/		Error+=TRT_Display(TRT_cid, CONNEC_SYMBOL_ICON_ID); 	}	else if(status==0)	{ /* Hide the connect symbol */		Error=TRT_Hide(TRT_cid, CONNEC_SYMBOL_ICON_ID); 		/* Display the disconnect symbol*/		Error+=TRT_Display(TRT_cid, DISCONNEC_SYMBOL_ICON_ID);	}	if(Error)	{/*Traitment of Error*/	}}  /* OF ChangeConnectSymbol *//*F*//*************************************************************************** >AUTHOR         : AB** FUNCTION NAME  : On_Chan_Lang_Button** ** >DESCRIPTION: Example function for changing the GUI Language* ** >NOTES:** ** >PARAMETER:** ** >RETURN VALUE:** ** >INCLUDES:** */LOCAL void On_Chan_Lang_Button(void)
{
	static char LanguageFlag=0;
	long Error=0;
	char TextBuffer[100];
	/*China Language */
	if(LanguageFlag==0) 
	{
		/* Call the Tilcon funkion to load a Language file in the GUI */
		/*the Language file coud be created with Tilcon Interface Builder.*/
		/* For mor informations see the Tilcon Help*/
		/* Load China Language*/
		Error= TRT_ChangeLanguage(TRT_cid,"HermesGuiLang_086.twl",0);
		/* Change the system Language */
		if(Ncs_Bap_IniWeraLang_Cmd("086")) /* 086 for China language*/
		{/* Traitement of the error*/}
		
		/**************   Example A  ***********************/
		/* Report an error or warning with a number xxxxx 
		** this number muss be previously intred into the WERA database
		** the begin of the error numbers is 100000*/ 
		
		Ncs_WeaSetErrWar(100004,/* Error Number*/
								/* note: the Error number mus be defined
								** and ties to an error text.*/  
								""); /* string used to specify the format of 
		**additional optional parameter */
		Ncs_WeaSetErrWar(100002,"");
		
		/**************   END Of Example A  ****************/
		
		/*************    Example B  *******************/
		/* get a text from NC and display it on the GUI */ 
		/*the text will be in the curent Language(in this case china Lang)*/
		/* if ther is no text defined to the text number you will get*/
		/*a default syntax= "Text fehlt"*/
		
		/* get the text from NC Kernel over NCS */
		Ncs_Bap_nlscat(40100, /*Text number*/         
			0,/*Codepage*/ 
			TextBuffer,/*pointer on the Buffer to store the text*/
			100);  /* Size of the text to store */
		
		/*set the Text on the GUI*/
		(void)TRT_SetValues (TRT_cid,
			"ErrorDeskr_Multitext1", 
			TRT_ATT_TEXT, 
			TextBuffer, NULL);
		/**************   END Of Example B  ****************/
		
		
		LanguageFlag=1; 
	}
	/* English Language*/
	else
	{
		LanguageFlag=0;
		/*Load English Language for GUI */
		Error= TRT_ChangeLanguage(TRT_cid,"HermesGuiLang_044.twl",0);
		/* Change the system Language */
		if(Ncs_Bap_IniWeraLang_Cmd("044")) /** 044 is for English*/
		{/* Traitement of the Error*/
		}
		/**************   Example A  ***********************/
		Ncs_WeaSetErrWar(100001,"Tetst1");
		Ncs_WeaSetErrWar(100002,"Tetst2");
		/**************   END Of Example A  ****************/
		
		/*************    Example B  *******************/
		/* get a text from NC and display it on the GUI */ 
		/*the text will be in the curent Language(in this case English)*/
		/* if ther is no text defined to the text number you will get*/
		/*a default syntax= "Text missing"*/
		
		/* get the text from NC Kernel over NCS */
		Ncs_Bap_nlscat(40013, /*Text number*/         
			0,/*Codepage*/ 
			TextBuffer,/*pointer on the Buffer to store the text*/
			100);  /* Size of the text to store */
		
		/*set the Text on the GUI*/
		(void)TRT_SetValues (TRT_cid,
			"ErrorDeskr_Multitext1", 
			TRT_ATT_TEXT, 
			TextBuffer, NULL);
		/**************   END Of Example B  ****************/
	}
	if(Error) 
	{
		/*Traitment of Error*/
		
	}
}  /* OF On_Chan_Lang_Button *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : ConnectGUItoNCS** ** >DESCRIPTION: Connect the GUI task to NCS** ** >NOTES: there is a deference in the call of NC_OPEN()**	   between the PC variante and the BRC Target variante. ** ** >PARAMETER:** ** >RETURN VALUE: No one** ** >INCLUDES:** */LOCAL void ConnectGUItoNCS(void){	Ncs_Mbx_t HMI_EventHandlerMailbox;/* MailBox for receive ncs Responce*/	#ifdef HWDS_WINDOWS	HWND    hWnd = (HWND) NULL;#endif	/* get the ID of the mail box of the event handler mailbox created	from event handler task*/  	dab_h_GetEvHanMailbox(&HMI_EventHandlerMailbox);	#ifdef HWDS_WINDOWS	/* for PC variante the hwnd is the ID of the Mailbox  */	hWnd = (HWND) HMI_EventHandlerMailbox;	/* Register the GUI-Task by NCS   */	/* for synchron and asynchron Requests */	/*the response of synchron requests will be Processed in this Task*/	/*the response of asynchron requests will be*/ 	/*  Processed in Event Handler Task*/	if (Ncs_Open(NCS_SYNC_LENT_C,/*synchronous and asynchronous requests */		/* For asynchronous requests, a socket that has */		/* already be created for asynchronous requests.*/		/* we use this parameter because an Ncs_open with*/		/* NCS_SYNC_ASYNC_C */		/*is already occurred in evant handler Task.*/		//  "192.168.1.186",  /* IP Adresse of the Target.*/
		"10.110.241.88",
		//"localhost",		/*change as necessary*/		hWnd,             /* Windows handle of the calling program*/		WM_ASYNC_READ,    /* Message that is sent to the*/ 		/*hWnd window in*/ 		/*the case of an asynchronous response.*/ 		/* The MessageNumber must be higher than*/		/* WM_USER + 0x100*/		/* we use  #define WM_ASYNC_READ (WM_USER+0x101);*/				5)   /*Time in seconds after which a timeout shall */		/*occur for a */		/*synchronous call. 0 disables the timeout.*/		!= Ncs_ErrOk)  			{		/* Error Traitement */ 		Ncs_WeaSetCritSysErr(0,"");	}#else                /* GUI is running on Target */	/*the NCS_Open will be called as below*/	if (Ncs_Open(		NCS_SYNC_LENT_C, 		&HMI_EventHandlerMailbox,		TRUE,   /*ResourceWaitMode:what to do if the Sendepuffer*/		/* is occupied bei belegten Sendepuffern.*/		/*    TRUE -> wait of free Sendebuffer*/		/*    FALSE-> dont wait,beack off with Error*/		0)     /*Time in seconds after which a */		/*timeout shall occur for a */		/*synchronous call. 0 disables the timeout.*/		!= Ncs_ErrOk)	{		/* Error Traitement */ 		Ncs_WeaSetCritSysErr(0,"");	}#endif}  /* OF ConnectGUItoNCS *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : Dab_h_WaitForEngineStart** ** >DESCRIPTION: the event handler task will try to open a channel to **              Tilcon EVE but for a communication with Tilcon EVE the EVE**             mus be started first.this function synchronise the start. ** ** >NOTES: this function will be called from event handler task **           in module dab_h_evhan.c** ** >PARAMETER: void** ** >RETURN VALUE: void ** ** >INCLUDES: "ab_h_startgra.h"** */EXPORT void Dab_h_WaitForEngineStart(void){	boolean WaitingForEngine= TRUE;		while (WaitingForEngine == TRUE)	{		if(EngineStatus == 0)		{			#ifndef HWDS_WINDOWS   			(void)Pxr_Delay(500,1);   /* Wait */#endif      			WaitingForEngine = TRUE;		}		else		{			WaitingForEngine = FALSE;		}	}	}  /* OF Dab_h_WaitForEngineStart *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  :  InitializeApp** ** >DESCRIPTION: Do everything that can be done before getting an event **               from outside.**               Start timers, clocks, etc.  Load/display primery windows.**               Update their objects.  Initialize data/structures.  **		 A local Tilcon EVE wil be launched.**		 we will open a channel to the EVE kernel (TRT_cid) and **               tell it to display the display the primery window **** ** >NOTES:       for more Information see the Tilcon Help** ** >PARAMETER: void** ** >RETURN VALUE: errorcode if an error is occurred else 0** ** >INCLUDES:** */LOCAL long InitializeApp(void){	long errorcode = 0;
		TRT_StartData StartData; /* Strucktur of start data */
		StartData.Os_Env  = OS_TYPE; /* Opereting system is seting at */	/*the beginning of this file */	StartData.Display	= NULL; /* we use 1 Display. muss be null */	StartData.IPAddr	= NULL;	/*IP addr if the Engine will be used in*/	/* a remote mode.Hier is NULL  */	StartData.AppName	= "HermesHMI"; /* the name of this aplikation */	/*if you change it hier you have*/ 	/*to change it in*/ 	/*dab_h_evhan.c too*/	StartData.Userprog 	= "GUI_TASK";  /* a name of user Programe*/ 	/*can be changed too*/	StartData.Flags		= FALSE;	
	errorcode =TRT_StartEx (0, &StartData); /* Start the Tilcon EVE */	if(errorcode)	{/*Traitment of Error*/	}		EngineStatus=1;       /* Engine is started ->*/	/* set the syncronisation signal*/		TRT_cid = StartData.TRT_CID; /*get the channel ID  GUITask <-> EVE */
			/*Ennable Blink */	errorcode = TRT_BlinkOn(TRT_cid, 1, 10);/*10x50=500ms on and 500ms off*/	if(errorcode)	{/*Traitment of Error*/	}		/*Load/display preliminary windows.*/	if(TRT_WindowLoad(TRT_cid, MAIN_WINDOW_FILE) )	{		/*Traitement of Error for example : Display Messagebox*/		return -1;	}
#ifdef HWDS_WINDOWS 
	/*Load/display preliminary windows.*/
	if(TRT_WindowLoad(TRT_cid, MOP_WINDOW_FILE) )
	{
		/*Traitement of Error for example : Display Messagebox*/
		return -1;
	}
#endif
	/*Initialize Callbacks.*/	/*For mor Information and example about*/ 	/*how does the callback mechanismus work*/	/*please see the Tilcon Help*/	errorcode = TRT_WindowCallbacks(TRT_cid,								MAIN_WINDOW_ID,								(char*)Callb_Struct_callback, 								sizeof(Callb_Struct_callback));	if(errorcode)	{/*Traitment of Error*/	}		if(TRT_WindowDisplay(TRT_cid, MAIN_WINDOW_ID) )	{		/*Traitement of Error*/			}
	
#ifdef HWDS_WINDOWS
	if(TRT_WindowDisplay(TRT_cid, MOP_WINDOW_ID) )
	{
		/*Traitement of Error*/
		
	}
#endif 
	
	return errorcode;}  /* OF  InitializeApp *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : MainEventLoop** ** >DESCRIPTION:stay in this loop until some event signals us to exit.  **              Check TRT_GetInput() to see if a Tilcon event occurred**              the event can be a notification from a button... **              If an event did occur, take appropriate  action. 	** ** >NOTES:  for more Information see the Tilcon Help** ** >PARAMETER: void** ** >RETURN VALUE: errorcode if an error is occurred else 0** 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91啪九色porn原创视频在线观看| 石原莉奈一区二区三区在线观看| 精品99一区二区| 欧美午夜精品一区二区蜜桃| 色综合欧美在线| 91网上在线视频| 91成人网在线| 欧美精品久久一区| 欧美精品三级在线观看| 欧美电影一区二区| 欧美一级精品大片| 久久午夜免费电影| 国产精品盗摄一区二区三区| 亚洲人成7777| 日韩制服丝袜av| 久久99精品久久久久| 国产综合成人久久大片91| 国产精品一级在线| 91美女视频网站| 欧美精品乱码久久久久久 | 亚洲精品国产品国语在线app| 亚洲色图制服诱惑 | 欧美一区二区三级| 精品不卡在线视频| 自拍偷在线精品自拍偷无码专区| 亚洲综合999| 免费人成在线不卡| 成人国产精品视频| 欧美久久久影院| 久久精品免费在线观看| 亚洲欧美视频在线观看| 日韩二区在线观看| 国产suv一区二区三区88区| 色婷婷综合中文久久一本| 日韩欧美色综合| 国产精品伦理在线| 石原莉奈一区二区三区在线观看| 国产精品66部| 欧美日韩国产精品自在自线| 久久久久久毛片| 亚洲动漫第一页| 国产成人丝袜美腿| 91精品欧美一区二区三区综合在| 欧美—级在线免费片| 首页国产欧美久久| 色久优优欧美色久优优| 欧美tk—视频vk| 亚洲图片欧美综合| 99视频热这里只有精品免费| 精品美女一区二区| 亚洲电影你懂得| 波多野结衣91| 久久你懂得1024| 日韩国产欧美在线播放| av欧美精品.com| 国产亚洲短视频| 美国欧美日韩国产在线播放| 97超碰欧美中文字幕| 久久女同精品一区二区| 免费精品视频在线| 欧美高清性hdvideosex| 亚洲欧美精品午睡沙发| 国产成人精品一区二| 精品久久99ma| 精品一区二区在线免费观看| 欧美高清一级片在线| 亚洲黄色免费电影| 色综合中文字幕国产 | 国产一区二区伦理片| 欧美精品第一页| 图片区小说区国产精品视频| 欧美色图激情小说| 亚洲国产精品精华液网站| 91蜜桃在线观看| 亚洲欧美电影一区二区| 91麻豆蜜桃一区二区三区| 中文字幕中文字幕中文字幕亚洲无线| 国产一区二区三区国产| 久久久欧美精品sm网站| 国产精品中文欧美| 国产欧美精品一区二区色综合朱莉 | 亚洲色大成网站www久久九九| 国产乱淫av一区二区三区| 欧美一区二区在线免费观看| 国产精品国产三级国产有无不卡| 韩国精品免费视频| www国产成人| 国产麻豆精品95视频| 日韩免费一区二区| 久久精品国产亚洲a| 欧美一区二区久久| 国产精品乱码一区二区三区软件| 成人黄色一级视频| 国产精品久久久久精k8| 国产91精品欧美| 中文字幕第一区| 99久久精品一区| 亚洲色图欧美在线| 91麻豆国产福利精品| 日韩和欧美一区二区三区| 欧美日韩不卡一区二区| 人人超碰91尤物精品国产| 欧美一区日韩一区| 麻豆一区二区三区| 欧美精品一区二区三区蜜桃 | 日韩精品一区二区三区四区| 麻豆传媒一区二区三区| 2024国产精品| 成人h动漫精品| 亚洲欧美日韩系列| 成+人+亚洲+综合天堂| 中文字幕欧美一区| 欧美日韩在线不卡| 麻豆高清免费国产一区| 久久精品人人做| 99久久99久久久精品齐齐| 亚洲精品v日韩精品| 欧美一区二区三区公司| 国产一区二区美女诱惑| 一区二区三区精品在线观看| 99久久精品一区二区| 国内久久精品视频| 亚洲美女区一区| 51精品视频一区二区三区| 国产福利91精品一区| 亚洲国产欧美在线| 精品国内片67194| 色先锋久久av资源部| 日本美女一区二区三区视频| 国产精品免费视频一区| 欧美精品第一页| 激情综合亚洲精品| 日韩国产精品久久| 国产精品理伦片| 日韩你懂的电影在线观看| 91浏览器入口在线观看| 欧美aa在线视频| 国产精品久久久久影视| 国产视频一区二区在线| 欧美日韩一区二区欧美激情| 国产99久久精品| 另类人妖一区二区av| 亚洲精选免费视频| 精品久久久网站| 精品国产成人系列| 91麻豆精品久久久久蜜臀| av一区二区三区黑人| 国内精品伊人久久久久av一坑| 亚洲人成网站色在线观看| 日韩亚洲欧美在线| 日韩精品资源二区在线| 欧美日韩国产精品自在自线| 色婷婷香蕉在线一区二区| 成人app在线观看| 国产经典欧美精品| 青青草原综合久久大伊人精品| 亚洲精品中文字幕在线观看| 国产精品青草综合久久久久99| 欧美mv和日韩mv国产网站| 欧美日韩国产一级片| 色视频成人在线观看免| 欧美日韩国产123区| 在线看国产一区| 99国内精品久久| 一本一道波多野结衣一区二区| 粉嫩aⅴ一区二区三区四区| 成人黄色av电影| 92精品国产成人观看免费| 成人高清视频在线观看| 美国精品在线观看| 天堂久久久久va久久久久| 午夜视频在线观看一区| 午夜电影网一区| 日韩av不卡一区二区| 美腿丝袜在线亚洲一区| 蜜臀av性久久久久蜜臀aⅴ四虎| 樱桃国产成人精品视频| 亚洲成av人片| 九一久久久久久| 国产精品69久久久久水密桃| 成人夜色视频网站在线观看| 欧美亚洲动漫制服丝袜| 在线观看91av| 久久综合狠狠综合久久激情| 久久精品一区四区| 国产精品不卡在线| 亚洲不卡在线观看| 国产在线播精品第三| 国产成人精品午夜视频免费 | 久久久久国产成人精品亚洲午夜| 中文字幕在线一区| 亚洲精品高清视频在线观看| 五月婷婷色综合| 韩国成人精品a∨在线观看| 粉嫩av一区二区三区在线播放| 在线播放中文字幕一区| 久久久久久久久久久久久久久99| 中文字幕av在线一区二区三区| 亚洲精品高清在线| 亚洲大片精品永久免费|