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

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

?? xiic_l.c

?? gumstiz u-boot loader in linux
?? C
?? 第 1 頁 / 共 2 頁
字號:
		 * occurs when the no ack is done to tell the slave the last byte		 */		if (ByteCount == 1) {			IntrStatusMask =				XIIC_INTR_ARB_LOST_MASK | XIIC_INTR_BNB_MASK;		} else {			IntrStatusMask =				XIIC_INTR_ARB_LOST_MASK |				XIIC_INTR_TX_ERROR_MASK | XIIC_INTR_BNB_MASK;		}		/* Wait for the previous transmit and the 1st receive to complete		 * by checking the interrupt status register of the IPIF		 */		while (1) {			IntrStatus = XIIF_V123B_READ_IISR (BaseAddress);			if (IntrStatus & XIIC_INTR_RX_FULL_MASK) {				break;			}			/* Check the transmit error after the receive full because when			 * sending only one byte transmit error will occur because of the			 * no ack to indicate the end of the data			 */			if (IntrStatus & IntrStatusMask) {				return ByteCount;			}		}		CntlReg = XIo_In8 (BaseAddress + XIIC_CR_REG_OFFSET);		/* Special conditions exist for the last two bytes so check for them		 * Note that the control register must be setup for these conditions		 * before the data byte which was already received is read from the		 * receive FIFO (while the bus is throttled		 */		if (ByteCount == 1) {			/* For the last data byte, it has already been read and no ack			 * has been done, so clear MSMS while leaving the device enabled			 * so it can get off the IIC bus appropriately with a stop.			 */			XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET,				  XIIC_CR_ENABLE_DEVICE_MASK);		}		/* Before the last byte is received, set NOACK to tell the slave IIC		 * device that it is the end, this must be done before reading the byte		 * from the FIFO		 */		if (ByteCount == 2) {			/* Write control reg with NO ACK allowing last byte to			 * have the No ack set to indicate to slave last byte read.			 */			XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET,				  CntlReg | XIIC_CR_NO_ACK_MASK);		}		/* Read in data from the FIFO and unthrottle the bus such that the		 * next byte is read from the IIC bus		 */		*BufferPtr++ = XIo_In8 (BaseAddress + XIIC_DRR_REG_OFFSET);		/* Clear the latched interrupt status so that it will be updated with		 * the new state when it changes, this must be done after the receive		 * register is read		 */		XIic_mClearIisr (BaseAddress, XIIC_INTR_RX_FULL_MASK |				 XIIC_INTR_TX_ERROR_MASK |				 XIIC_INTR_ARB_LOST_MASK);		ByteCount--;	}	/* Wait for the bus to transition to not busy before returning, the IIC	 * device cannot be disabled until this occurs.	 It should transition as	 * the MSMS bit of the control register was cleared before the last byte	 * was read from the FIFO.	 */	while (1) {		if (XIIF_V123B_READ_IISR (BaseAddress) & XIIC_INTR_BNB_MASK) {			break;		}	}	return ByteCount;}/****************************************************************************//*** Send data as a master on the IIC bus.	 This function sends the data* using polled I/O and blocks until the data has been sent.  It only supports* 7 bit addressing and non-repeated start modes of operation.  The user is* responsible for ensuring the bus is not busy if multiple masters are present* on the bus.** @param    BaseAddress contains the base address of the IIC device.* @param    Address contains the 7 bit IIC address of the device to send the*	    specified data to.* @param    BufferPtr points to the data to be sent.* @param    ByteCount is the number of bytes to be sent.** @return** The number of bytes sent.** @note** None*******************************************************************************/unsigned XIic_Send (u32 BaseAddress, u8 Address,		    u8 * BufferPtr, unsigned ByteCount){	unsigned RemainingByteCount;	/* Put the address into the FIFO to be sent and indicate that the operation	 * to be performed on the bus is a write operation	 */	XIic_mSend7BitAddress (BaseAddress, Address, XIIC_WRITE_OPERATION);	/* Clear the latched interrupt status so that it will be updated with the	 * new state when it changes, this must be done after the address is put	 * in the FIFO	 */	XIic_mClearIisr (BaseAddress, XIIC_INTR_TX_EMPTY_MASK |			 XIIC_INTR_TX_ERROR_MASK | XIIC_INTR_ARB_LOST_MASK);	/* MSMS must be set after putting data into transmit FIFO, indicate the	 * direction is transmit, this device is master and enable the IIC device	 */	XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET,		  XIIC_CR_MSMS_MASK | XIIC_CR_DIR_IS_TX_MASK |		  XIIC_CR_ENABLE_DEVICE_MASK);	/* Clear the latched interrupt	 * status for the bus not busy bit which must be done while the bus is busy	 */	XIic_mClearIisr (BaseAddress, XIIC_INTR_BNB_MASK);	/* Send the specified data to the device on the IIC bus specified by the	 * the address	 */	RemainingByteCount = SendData (BaseAddress, BufferPtr, ByteCount);	/*	 * The send is complete, disable the IIC device and return the number of	 * bytes that was sent	 */	XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET, 0);	return ByteCount - RemainingByteCount;}/******************************************************************************** Send the specified buffer to the device that has been previously addressed* on the IIC bus.  This function assumes that the 7 bit address has been sent* and it should wait for the transmit of the address to complete.** @param    BaseAddress contains the base address of the IIC device.* @param    BufferPtr points to the data to be sent.* @param    ByteCount is the number of bytes to be sent.** @return** The number of bytes remaining to be sent.** @note** This function does not take advantage of the transmit FIFO because it is* designed for minimal code space and complexity.  It contains loops that* that could cause the function not to return if the hardware is not working.*******************************************************************************/static unsigned SendData (u32 BaseAddress, u8 * BufferPtr, unsigned ByteCount){	u32 IntrStatus;	/* Send the specified number of bytes in the specified buffer by polling	 * the device registers and blocking until complete	 */	while (ByteCount > 0) {		/* Wait for the transmit to be empty before sending any more data		 * by polling the interrupt status register		 */		while (1) {			IntrStatus = XIIF_V123B_READ_IISR (BaseAddress);			if (IntrStatus & (XIIC_INTR_TX_ERROR_MASK |					  XIIC_INTR_ARB_LOST_MASK |					  XIIC_INTR_BNB_MASK)) {				return ByteCount;			}			if (IntrStatus & XIIC_INTR_TX_EMPTY_MASK) {				break;			}		}		/* If there is more than one byte to send then put the next byte to send		 * into the transmit FIFO		 */		if (ByteCount > 1) {			XIo_Out8 (BaseAddress + XIIC_DTR_REG_OFFSET,				  *BufferPtr++);		} else {			/* Set the stop condition before sending the last byte of data so that			 * the stop condition will be generated immediately following the data			 * This is done by clearing the MSMS bit in the control register.			 */			XIo_Out8 (BaseAddress + XIIC_CR_REG_OFFSET,				  XIIC_CR_ENABLE_DEVICE_MASK |				  XIIC_CR_DIR_IS_TX_MASK);			/* Put the last byte to send in the transmit FIFO */			XIo_Out8 (BaseAddress + XIIC_DTR_REG_OFFSET,				  *BufferPtr++);		}		/* Clear the latched interrupt status register and this must be done after		 * the transmit FIFO has been written to or it won't clear		 */		XIic_mClearIisr (BaseAddress, XIIC_INTR_TX_EMPTY_MASK);		/* Update the byte count to reflect the byte sent and clear the latched		 * interrupt status so it will be updated for the new state		 */		ByteCount--;	}	/* Wait for the bus to transition to not busy before returning, the IIC	 * device cannot be disabled until this occurs.	 * Note that this is different from a receive operation because the stop	 * condition causes the bus to go not busy.	 */	while (1) {		if (XIIF_V123B_READ_IISR (BaseAddress) & XIIC_INTR_BNB_MASK) {			break;		}	}	return ByteCount;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女视频在线| √…a在线天堂一区| 在线观看日韩国产| 91视频你懂的| 91福利视频久久久久| 91视频.com| 欧美中文字幕亚洲一区二区va在线| 91麻豆国产香蕉久久精品| av电影在线观看完整版一区二区| 成人免费看片app下载| proumb性欧美在线观看| 91天堂素人约啪| 欧美日韩高清不卡| 欧美变态tickling挠脚心| 精品国产一区二区精华| 国产午夜精品一区二区三区四区| 中文字幕av一区 二区| √…a在线天堂一区| 亚洲成av人片在www色猫咪| 全部av―极品视觉盛宴亚洲| 久久99日本精品| 本田岬高潮一区二区三区| 色综合久久中文综合久久牛| 欧美一区二区三区在线观看 | 亚洲综合另类小说| 手机精品视频在线观看| 国产精品一区三区| 色老综合老女人久久久| 欧美大片免费久久精品三p| 久久久国产精品午夜一区ai换脸| 日韩码欧中文字| 免费亚洲电影在线| 99视频有精品| 日韩视频一区二区三区在线播放| 国产午夜精品理论片a级大结局 | 国产制服丝袜一区| 97久久超碰精品国产| 日韩欧美成人午夜| 国产精品免费免费| 欧美a一区二区| 欧洲精品一区二区三区在线观看| 久久综合九色综合97婷婷| 亚洲精品国久久99热| 韩国v欧美v日本v亚洲v| 欧美三级欧美一级| 国产精品美女www爽爽爽| 天天影视涩香欲综合网 | 一本久久综合亚洲鲁鲁五月天| 欧美日韩国产美| 亚洲天堂成人在线观看| 国产一区二区三区高清播放| 欧美日韩综合在线| 亚洲图片你懂的| 国产精品88av| 精品三级在线看| 日韩精品每日更新| 欧美色手机在线观看| 亚洲天堂中文字幕| 国产99精品在线观看| 精品剧情v国产在线观看在线| 一区二区在线观看免费视频播放| 成人午夜激情影院| 久久网站最新地址| 精品一区二区三区免费毛片爱| 欧美亚洲一区二区三区四区| 亚洲色图视频网站| 91在线免费看| 一区在线中文字幕| 99视频在线精品| 亚洲天堂久久久久久久| 91亚洲精华国产精华精华液| 久久久青草青青国产亚洲免观| 久久精品国产第一区二区三区| 91精品国产乱| 免费观看一级特黄欧美大片| 欧美日韩的一区二区| 亚洲高清三级视频| 欧美日韩久久不卡| 日韩影视精彩在线| 欧美一区二区美女| 黄色小说综合网站| 国产色91在线| 欧美一区二区三区播放老司机| 午夜精品福利一区二区蜜股av| 一本高清dvd不卡在线观看 | 884aa四虎影成人精品一区| 亚洲精选视频在线| 欧美日韩视频在线一区二区| 亚洲国产另类av| 日韩一区二区三区在线| 黑人巨大精品欧美一区| 国产欧美视频在线观看| av亚洲精华国产精华| 一区二区三区中文字幕在线观看| 91国产视频在线观看| 男男gaygay亚洲| 久久久亚洲精品石原莉奈| 成人爽a毛片一区二区免费| ...xxx性欧美| 欧美老女人第四色| 国产最新精品免费| 亚洲欧美一区二区三区孕妇| 欧美私模裸体表演在线观看| 免费观看在线综合| 亚洲少妇最新在线视频| 欧美一区二区视频观看视频 | 亚洲精品va在线观看| 日韩一级大片在线| 国产成人av福利| 亚洲一卡二卡三卡四卡无卡久久| 日韩精品一区二区三区中文不卡 | 91官网在线免费观看| 国产乱码精品一品二品| 亚洲美腿欧美偷拍| 久久久国产精品午夜一区ai换脸| 色婷婷久久久亚洲一区二区三区| 久久国产福利国产秒拍| 一区二区三区产品免费精品久久75| 精品日产卡一卡二卡麻豆| 一本色道a无线码一区v| 国产一区二区在线影院| 亚洲成人av福利| 国产精品国产三级国产普通话99 | 懂色av中文字幕一区二区三区| 香蕉成人啪国产精品视频综合网| 国产亚洲女人久久久久毛片| 欧美在线观看一区二区| 国产成人av电影在线播放| 日本不卡高清视频| 亚洲制服欧美中文字幕中文字幕| 国产视频一区在线观看| 日韩三级高清在线| 欧美日韩aaaaa| 一本色道久久综合亚洲91| 成人精品视频一区| 国产精品系列在线观看| 青青草成人在线观看| 婷婷中文字幕综合| 亚洲乱码中文字幕| 中文一区在线播放| 欧美精品一区二区三区视频| 在线成人高清不卡| 欧美在线观看视频一区二区 | 久久精品999| 免费的成人av| 日韩**一区毛片| 日韩精品一级中文字幕精品视频免费观看| 亚洲欧洲日韩在线| 亚洲色图清纯唯美| 一区二区三区资源| 午夜视频一区二区| 午夜久久久久久久久久一区二区| 亚洲国产精品一区二区尤物区| 亚洲视频综合在线| 亚洲麻豆国产自偷在线| 亚洲日本欧美天堂| 亚洲一区二区三区四区在线免费观看 | av日韩在线网站| 91丨九色porny丨蝌蚪| 91久久精品一区二区三区| 一本在线高清不卡dvd| 欧美午夜不卡在线观看免费| 欧美日韩一区二区电影| 91精品国产美女浴室洗澡无遮挡| 欧美一区二区二区| 久久精品一区二区三区av| 中文字幕一区二区在线观看| 亚洲男人都懂的| 亚洲一区二区在线观看视频| 午夜视频久久久久久| 韩国v欧美v亚洲v日本v| 99久久99久久久精品齐齐| 欧美日韩黄色影视| 日韩欧美一卡二卡| 国产精品网站导航| 亚洲午夜日本在线观看| 日韩二区三区在线观看| 国产成人a级片| 欧美日韩在线观看一区二区| 日韩精品自拍偷拍| 国产精品无遮挡| 亚洲va国产天堂va久久en| 久草这里只有精品视频| 91婷婷韩国欧美一区二区| 欧美一级黄色片| 中文字幕一区二区三| 天天av天天翘天天综合网| 国产丶欧美丶日本不卡视频| 色婷婷综合久久久中文字幕| 日韩一级免费观看| 亚洲欧美怡红院| 奇米影视7777精品一区二区| 丰满白嫩尤物一区二区| 欧美日本乱大交xxxxx| 亚洲精品一区二区三区福利| 一区二区三区视频在线观看| 激情综合网av| 欧美男人的天堂一二区| 中文字幕制服丝袜一区二区三区| 亚洲va韩国va欧美va|