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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mmz_rab.lib

?? modbus 運用事例
?? LIB
?? 第 1 頁 / 共 3 頁
字號:
PARAMETER1: baud rate (bits per second).

RETURN VALUE: Always 1.
END DESCRIPTION ******************************************************/
nodebug
int mmrDinit(unsigned long	qBaud)
{
	mmrInit(qBaud);
	return mmDinit(qBaud);
}

/*** BeginHeader */
#if ( _CPU_ID_ >= R3000 )
/*** EndHeader */

/*** BeginHeader mmrEinit */
int mmrEinit(unsigned long);
/*** EndHeader */

/* START FUNCTION DESCRIPTION *****************************************
mmrEinit                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: int mmrEinit(unsigned long qBaud, unsigned wMode)

DESCRIPTION: Initialize serial port E as Modbus RTU Master.
					(Not supported for R2000 CPU products)          
PARAMETER1: baud rate (bits per second).

RETURN VALUE: Always 1.
END DESCRIPTION ******************************************************/
nodebug
int mmrEinit(unsigned long	qBaud)
{
	mmrInit(qBaud);
	return mmEinit(qBaud);
}

/*** BeginHeader mmrFinit */
int mmrFinit(unsigned long);
/*** EndHeader */

/* START FUNCTION DESCRIPTION *****************************************
mmrFinit                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: int mmrFinit(unsigned long qBaud, unsigned wMode)

DESCRIPTION: Initialize serial port F as Modbus RTU Master.
					(Not supported for R2000 CPU products)          
PARAMETER1: baud rate (bits per second).

RETURN VALUE: Always 1.
END DESCRIPTION ******************************************************/
nodebug
int mmrFinit(unsigned long	qBaud)
{
	mmrInit(qBaud);
	return mmFinit(qBaud);
}

/*** BeginHeader */
#endif	//	#if ( _CPU_ID_ >= R3000 )  
/*** EndHeader */

/* START FUNCTION DESCRIPTION *****************************************
mmAopen                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int mmAopen(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port A as a Modbus Master.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int mmAopen(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	if (serAopen(qBaud))
	{ 
	  
		// setup parity.  Either PARAM_OPARITY, PARAM_EPARITY, PARAM_NOPARITY, 
		// or PARAM_2STOP  
	
		serAparity(PARAM_EPARITY);
	 
		// setup data bits. Either PARAM_7BIT, or PARAM_8BIT 
		 
		serAdatabits(PARAM_8BIT);
	
  		// Set the Serial port mode. Used for Zworld SBC's only.  
		serMode(0);  
		return(1);
	}
	else return (0);
}
				 

PARAMETER1: slave address.
PARAMETER2: baud rate (bits per second).

RETURN VALUE: 1 if successful, 0 if unsupported baud rate.
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmArx                         <MSZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmArx  (void)

DESCRIPTION: 	User defineable function for disabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmArx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmArx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    while (serAwrUsed() || \
			    		  BitRdPortI(SASR,2) || \
			    		  BitRdPortI(SASR,3)); 
				
				// Turn off the RS485 transmitter by doing the following;
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	OFF_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, OFF_VALUE, PORT_BIT);
					
				//  If your product is a Zworld SBC, you can do the following
				
					ser485Rx();
					
				//  Flush out the serial port read buffer, so you are ready for
				//  the next packet.
					
					serArdFlush();	 
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmAtx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmAtx  (void)

DESCRIPTION: 	User defineable function for enabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmAtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmAtx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    / Turn on the RS485 transmitter by doing the following;      
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	ON_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, ON_VALUE, PORT_BIT);
			    
			    				
				//  If your product is a Zworld SBC, you can do the following
				
					ser485Tx();
					
				
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/
/* START FUNCTION DESCRIPTION *****************************************
mmBopen                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int mmBopen(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port B as a Modbus Master.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int mmBopen(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	if (serBopen(qBaud))
	{ 
	  
  		// setup parity.  Either PARAM_OPARITY, PARAM_EPARITY, PARAM_NOPARITY, 
  		// or PARAM_2STOP  
	
  		serBparity(PARAM_EPARITY);
	 
  		// setup data bits. Either PARAM_7BIT, or PARAM_8BIT 
	 
  		serBdatabits(PARAM_8BIT);
	
 	 	// Set the Serial port mode. Used for Zworld SBC's only.  
  		serMode(0);  
  		return(1);
	}
	else return (0);
}
				 

PARAMETER1: slave address.
PARAMETER2: baud rate (bits per second).

RETURN VALUE: 1 if successful, 0 if unsupported baud rate.
END DESCRIPTION ******************************************************/
/* START FUNCTION DESCRIPTION *****************************************
mmBrx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmBrx  (void)

DESCRIPTION: 	User defineable function for disabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmBrx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmBrx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    while (serBwrUsed() || \
			    		  BitRdPortI(SBSR,2) || \
			    		  BitRdPortI(SBSR,3)); 
				
				// Turn off the RS485 transmitter by doing the following;
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	OFF_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, OFF_VALUE, PORT_BIT);
					
				//  If your product is a Zworld SBC, you can do the following
				
					ser485Rx();
					
				//  Flush out the serial port read buffer, so you are ready for
				//  the next packet.
					
					serBrdFlush();	 
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/


/* START FUNCTION DESCRIPTION *****************************************
mmBtx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmBtx  (void)

DESCRIPTION: 	User defineable function for enabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmBtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmAtx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    / Turn on the RS485 transmitter by doing the following;      
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	ON_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, ON_VALUE, PORT_BIT);
			    
			    				
				//  If your product is a Zworld SBC, you can do the following
				//	 instead
					ser485Tx();
					
				
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/
/* START FUNCTION DESCRIPTION *****************************************
mmCopen                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int mmCopen(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port C as a Modbus Master.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int mmCopen(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	if (serCopen(qBaud)) 
	{  
		// setup parity.  Either PARAM_OPARITY, PARAM_EPARITY, PARAM_NOPARITY, 
		// or PARAM_2STOP  
	
		serCparity(PARAM_EPARITY);
  		 
		// setup data bits. Either PARAM_7BIT, or PARAM_8BIT 
	 
  		serCdatabits(PARAM_8BIT);
	
 	 	// Set the Serial port mode. Used for Zworld SBC's only.  
  		serMode(0);  
  		return(1);
	}
	else return (0);
}
				 

PARAMETER1: slave address.
PARAMETER2: baud rate (bits per second).

RETURN VALUE: 1 if successful, 0 if unsupported baud rate.
END DESCRIPTION ******************************************************/
/* START FUNCTION DESCRIPTION *****************************************
mmCrx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmCrx  (void)

DESCRIPTION: 	User defineable function for disabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmCrx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmCrx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    while (serCwrUsed() || \
			    		  BitRdPortI(SCSR,2) || \
			    		  BitRdPortI(SCSR,3)); 
				
				// Turn off the RS485 transmitter by doing the following;
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	OFF_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, OFF_VALUE, PORT_BIT);
					
				// if your product is a Zworld SBC, you can do the following 
				//	instead
				
					ser485Rx();
					
				//  Flush out the serial port read buffer, so you are ready for
				//  the next packet.
					
					serCrdFlush();	 
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmCtx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmCtx  (void)

DESCRIPTION: 	User defineable function for enabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmCtx(void)
					{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久色在线视频| 国产精品久久久久影院色老大| 亚洲第一成人在线| 99在线视频精品| 国产欧美日韩亚州综合| 精品亚洲免费视频| 精品国产一区二区三区忘忧草| 日韩二区在线观看| 欧美另类一区二区三区| 国产成人精品免费一区二区| 精品国产免费视频| 韩国v欧美v日本v亚洲v| 26uuu久久综合| 狠狠色狠狠色综合系列| 久久久欧美精品sm网站| 国产精品18久久久| 国产欧美日韩麻豆91| 懂色av中文一区二区三区| 国产日韩成人精品| 成人一道本在线| 国产精品久久精品日日| 91影视在线播放| 亚洲专区一二三| 欧美色成人综合| 丝袜诱惑制服诱惑色一区在线观看| 欧美精品自拍偷拍| 久久精品99国产精品日本| 亚洲精品一区二区三区影院| 国产乱码精品1区2区3区| 亚洲国产精品成人综合| 99精品国产视频| 亚洲国产视频直播| 91精品国产91久久综合桃花 | 欧美电视剧在线观看完整版| 麻豆国产精品777777在线| 精品国产三级电影在线观看| 国产福利一区二区三区视频| 中文字幕在线观看一区二区| 一本到高清视频免费精品| 亚洲综合丁香婷婷六月香| 欧美一区二区三区电影| 国产一区二区免费看| 自拍偷拍国产精品| 欧美三级中文字幕| 久久99热国产| 中文字幕一区视频| 欧美日韩一区不卡| 精品亚洲国产成人av制服丝袜| 国产女同性恋一区二区| 91浏览器在线视频| 免费成人av在线| 欧美激情综合在线| 欧美视频中文字幕| 久草精品在线观看| 中文字幕五月欧美| 欧美男人的天堂一二区| 国产一区二区三区免费在线观看 | 久久久www免费人成精品| av电影在线不卡| 日韩和欧美一区二区| 久久久www免费人成精品| 91捆绑美女网站| 琪琪一区二区三区| 国产精品女同互慰在线看| 欧美三级视频在线播放| 国产在线视视频有精品| 亚洲女人小视频在线观看| 欧美日韩精品一区二区三区| 国产成人综合在线观看| 亚洲第一成年网| 国产蜜臀av在线一区二区三区| 欧美午夜精品免费| 国产成人在线影院| 亚洲福利一区二区| 中国色在线观看另类| 欧美精品久久99久久在免费线| 国产精品一区二区三区四区 | 国产精品美女一区二区三区| 欧美人妇做爰xxxⅹ性高电影 | 日韩欧美电影在线| 一本大道久久精品懂色aⅴ| 美日韩黄色大片| 中文字幕在线不卡| 欧美大肚乱孕交hd孕妇| 日本精品一区二区三区高清 | 在线免费观看日韩欧美| 国产美女av一区二区三区| 亚洲图片有声小说| 国产精品美女久久久久久久久| 欧美一区二区三区喷汁尤物| 91丝袜高跟美女视频| 国产综合一区二区| 婷婷成人综合网| 亚洲免费视频中文字幕| 国产日产精品1区| 欧美一区二区性放荡片| 在线观看免费成人| av一二三不卡影片| 国产精品中文字幕日韩精品| 奇米影视在线99精品| 一区二区高清视频在线观看| 欧美经典三级视频一区二区三区| 欧美mv和日韩mv的网站| 欧美日韩国产精选| 色94色欧美sute亚洲线路一久| 成人一级黄色片| 国产精品99久久久久久有的能看 | 91视视频在线观看入口直接观看www | 成人动漫一区二区三区| 精品一区二区三区免费毛片爱 | 亚洲一二三区在线观看| **性色生活片久久毛片| 日本一区二区视频在线| 欧美r级在线观看| 欧美一区二区三区喷汁尤物| 欧美另类一区二区三区| 欧美图区在线视频| 色狠狠综合天天综合综合| 成人app在线观看| 成人午夜激情片| 粉嫩一区二区三区性色av| 国产精品一区二区视频| 韩国毛片一区二区三区| 激情丁香综合五月| 久99久精品视频免费观看| 日本va欧美va瓶| 蜜臀精品久久久久久蜜臀| 日韩激情在线观看| 肉丝袜脚交视频一区二区| 亚洲h动漫在线| 亚洲成人资源在线| 五月天网站亚洲| 日本不卡不码高清免费观看| 日韩福利电影在线观看| 日本亚洲最大的色成网站www| 青椒成人免费视频| 久久99国内精品| 国产做a爰片久久毛片| 国产一区二区美女诱惑| 国产69精品一区二区亚洲孕妇| 国产传媒久久文化传媒| www.一区二区| 色系网站成人免费| 欧美亚洲高清一区| 欧美丰满少妇xxxxx高潮对白| 3d成人h动漫网站入口| 日韩一卡二卡三卡| 精品日韩av一区二区| 久久精品夜色噜噜亚洲a∨ | 欧美不卡激情三级在线观看| 欧美va亚洲va国产综合| 久久麻豆一区二区| 国产精品全国免费观看高清| 亚洲人成网站色在线观看| 亚洲一区二区三区四区的| 天堂蜜桃一区二区三区 | 久久66热偷产精品| 国产成人日日夜夜| 972aa.com艺术欧美| 欧美日韩免费电影| 精品久久久久久最新网址| 国产精品系列在线| 亚洲一区二区3| 美洲天堂一区二卡三卡四卡视频| 国产一区二区三区美女| youjizz国产精品| 欧美日韩黄色影视| 精品美女一区二区三区| 中文天堂在线一区| 亚洲成人免费av| 国产一区二区在线观看免费| 白白色 亚洲乱淫| 欧美精品精品一区| 国产欧美精品日韩区二区麻豆天美| 亚洲欧洲国产专区| 婷婷久久综合九色综合伊人色| 狠狠色综合播放一区二区| 99国产精品久久| 91精品国产乱| 国产精品国产三级国产有无不卡 | 91国产免费看| 日韩视频一区二区三区| 国产在线视频不卡二| 日韩国产在线观看| 国产伦精品一区二区三区免费| 91在线精品一区二区三区| 欧美一区二区在线播放| 成人理论电影网| 97久久超碰精品国产| 欧美精品一卡两卡| 日韩电影免费一区| 91精品国产色综合久久ai换脸| 中文字幕在线观看不卡视频| 日韩电影在线观看网站| 97精品久久久久中文字幕| 精品日韩一区二区三区免费视频| 亚洲一卡二卡三卡四卡五卡| 成人av午夜影院| 精品国产1区二区| 首页国产欧美久久|