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

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

?? ixi2cdrv.h

?? u-boot1.3.0的原碼,從配了網絡驅動和FLASH的驅動,并該用ESC竟如
?? H
?? 第 1 頁 / 共 2 頁
字號:
/** * @file IxI2cDrv.h * * @brief  Header file for the IXP400 I2C Driver (IxI2cDrv) * * @version $Revision: 0.1 $ *  * @par * IXP400 SW Release version 2.0 *  * -- Copyright Notice -- *  * @par * Copyright 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * @par * -- End of Copyright Notice -- *//** * @defgroup IxI2cDrv IXP400 I2C Driver(IxI2cDrv) API  * * @brief IXP400 I2C Driver Public API * * @{ */#ifndef IXI2CDRV_H#define IXI2CDRV_H#ifdef __ixp46X#include "IxOsal.h"/* * Section for #define *//** * @ingroup IxI2cDrv * @brief The interval of micro/mili seconds the IXP will wait before it polls for * 			status from the ixI2cIntrXferStatus; Every 20us is 1 byte @ * 			400Kbps and 4 bytes	@ 100Kbps. This is dependent on delay type selected *          through the API ixI2cDrvDelayTypeSelect. */#define IX_I2C_US_POLL_FOR_XFER_STATUS	20/** * @ingroup IxI2cDrv * @brief The number of tries that will be attempted to call a callback *          function if the callback does not or is unable to resolve the *          issue it is called to resolve */#define IX_I2C_NUM_OF_TRIES_TO_CALL_CALLBACK_FUNC	10/** * @ingroup IxI2cDrv * @brief Number of tries slave will poll the IDBR Rx full bit before it *			gives up */#define IX_I2C_NUM_TO_POLL_IDBR_RX_FULL 0x100/** * @ingroup IxI2cDrv * @brief Number of tries slave will poll the IDBR Tx empty bit before it *			gives up */#define IX_I2C_NUM_TO_POLL_IDBR_TX_EMPTY 0x100/* * Section for enum *//** * @ingroup IxI2cDrv *  * @enum IxI2cMasterStatus * * @brief The master status - transfer complete, bus error or arbitration loss */typedef enum{    IX_I2C_MASTER_XFER_COMPLETE = IX_SUCCESS,	IX_I2C_MASTER_XFER_BUS_ERROR,	IX_I2C_MASTER_XFER_ARB_LOSS} IxI2cMasterStatus;/** * @ingroup IxI2cDrv *  * @enum IX_I2C_STATUS * * @brief The status that can be returned in a I2C driver initialization */typedef enum{	IX_I2C_SUCCESS = IX_SUCCESS, /**< Success status */	IX_I2C_FAIL, /**< Fail status */	IX_I2C_NOT_SUPPORTED, /**< hardware does not have dedicated I2C hardware */	IX_I2C_NULL_POINTER, /**< parameter passed in is NULL */	IX_I2C_INVALID_SPEED_MODE_ENUM_VALUE, /**< speed mode selected is invalid */	IX_I2C_INVALID_FLOW_MODE_ENUM_VALUE, /**< flow mode selected is invalid */	IX_I2C_SLAVE_ADDR_CB_MISSING, /**< slave callback is NULL */	IX_I2C_GEN_CALL_CB_MISSING, /**< general callback is NULL */	IX_I2C_INVALID_SLAVE_ADDR, /**< invalid slave address specified */	IX_I2C_INT_BIND_FAIL, /**< interrupt bind fail */	IX_I2C_INT_UNBIND_FAIL, /**< interrupt unbind fail */	IX_I2C_NOT_INIT, /**< I2C is not initialized yet */	IX_I2C_MASTER_BUS_BUSY, /**< master detected a I2C bus busy */	IX_I2C_MASTER_ARB_LOSS, /**< master experienced arbitration loss */	IX_I2C_MASTER_XFER_ERROR, /**< master experienced a transfer error */	IX_I2C_MASTER_BUS_ERROR, /**< master detected a I2C bus error */	IX_I2C_MASTER_NO_BUFFER, /**< no buffer provided for master transfer */	IX_I2C_MASTER_INVALID_XFER_MODE, /**< xfer mode selected is invalid */	IX_I2C_SLAVE_ADDR_NOT_DETECTED, /**< polled slave addr not detected */	IX_I2C_GEN_CALL_ADDR_DETECTED, /**< polling detected general call */	IX_I2C_SLAVE_READ_DETECTED, /**< polling detected slave read request */	IX_I2C_SLAVE_WRITE_DETECTED, /**< polling detected slave write request */	IX_I2C_SLAVE_NO_BUFFER, /**< no buffer provided for slave transfers */	IX_I2C_DATA_SIZE_ZERO, /**< data size transfer is zero - invalid */	IX_I2C_SLAVE_WRITE_BUFFER_EMPTY, /**< slave buffer is used till empty */	IX_I2C_SLAVE_WRITE_ERROR, /**< slave write experienced an error */	IX_I2C_SLAVE_OR_GEN_READ_BUFFER_FULL, /**< slave buffer is filled up */	IX_I2C_SLAVE_OR_GEN_READ_ERROR /**< slave read experienced an error */} IX_I2C_STATUS;/** * @ingroup IxI2cDrv *  * @enum IxI2cSpeedMode * * @brief Type of speed modes supported by the I2C hardware. */typedef enum{    IX_I2C_NORMAL_MODE = 0x0,    IX_I2C_FAST_MODE} IxI2cSpeedMode;/** * @ingroup IxI2cDrv *  * @enum IxI2cXferMode * * @brief Used for indicating it is a repeated start or normal transfer */typedef enum{    IX_I2C_NORMAL = 0x0,    IX_I2C_REPEATED_START} IxI2cXferMode;/** * @ingroup IxI2cDrv *  * @enum IxI2cFlowMode * * @brief Used for indicating it is a poll or interrupt mode */typedef enum{    IX_I2C_POLL_MODE = 0x0,    IX_I2C_INTERRUPT_MODE} IxI2cFlowMode;/** * @ingroup IxI2cDrv *  * @enum IxI2cDelayMode * * @brief Used for selecting looping delay or OS scheduler delay */typedef enum{    IX_I2C_LOOP_DELAY = 1,  /**< delay in microseconds */    IX_I2C_SCHED_DELAY      /**< delay in miliseconds */} IxI2cDelayMode;/** * @ingroup IxI2cDrv *  * @brief The pointer to the function that will be called when the master *			has completed its receive. The parameter that is passed will *			provide the status of the read (success, arb loss, or bus *			error), the transfer mode (normal or repeated start, the *			buffer pointer and number of bytes transferred. */typedef void (*IxI2cMasterReadCallbackP)(IxI2cMasterStatus, IxI2cXferMode, char*, UINT32);/** * @ingroup IxI2cDrv *  * @brief The pointer to the function that will	be called when the master *			has completed its transmit. The parameter that is passed will *			provide the status of the write (success, arb loss, or buss *			error), the transfer mode (normal or repeated start), the *			buffer pointer and number of bytes transferred. */typedef void (*IxI2cMasterWriteCallbackP)(IxI2cMasterStatus, IxI2cXferMode, char*, UINT32);/** * @ingroup IxI2cDrv *  * @brief The pointer to the function that will be called when a slave *			address detected in interrupt mode for a read. The parameters *			that is passed will provide the read status, buffer pointer, *			buffer size, and the bytes received. When a start of a read *			is initiated there will be no buffer allocated and this callback *			will be called to request for a buffer. While receiving, if the *			buffer gets filled, this callback will be called to request for *			a new buffer while sending the filled buffer's pointer and size, *			and data size received. When the receive is complete, this *			callback will be called to process the data and free the memory *			by passing the buffer's pointer and size, and data size received. */typedef void (*IxI2cSlaveReadCallbackP)(IX_I2C_STATUS, char*, UINT32, UINT32);/** * @ingroup IxI2cDrv *  * @brief The pointer to the function that will be called when a slave *			address detected in interrupt mode for a write. The parameters *			that is passed will provide the write status, buffer pointer, *			buffer size, and the bytes received. When a start of a write is *			initiated there will be no buffer allocated and this callback *			will be called to request for a buffer and to fill it with data. *			While transmitting, if the data in the buffer empties, this *			callback will be called to request for more data to be filled in *			the same or new buffer. When the transmit is complete, this *			callback will be called to free the memory or other actions to *			be taken. */typedef void (*IxI2cSlaveWriteCallbackP)(IX_I2C_STATUS, char*, UINT32, UINT32);/** * @ingroup IxI2cDrv *  * @brief The pointer to the function that will be called when a general *			call detected in interrupt mode for a read. The parameters that *			is passed will provide the read status, buffer pointer, buffer *			size, and the bytes received. When a start of a read is *			initiated there will be no buffer allocated and this callback *			will be called to request for a buffer. While receiving, if the *			buffer gets filled, this callback will be called to request for *			a new buffer while sending the filled buffer's pointer and size, *			and data size received. When the receive is complete, this *			callback will be called to process the data and free the memory *			by passing the buffer's pointer and size, and data size received. */typedef void (*IxI2cGenCallCallbackP)(IX_I2C_STATUS, char*, UINT32, UINT32);/* * Section for struct *//** * @brief contains all the variables required to initialize the I2C unit *  * Structure to be filled and used for calling initialization */typedef struct{	IxI2cSpeedMode I2cSpeedSelect;	/**<Select either normal (100kbps)									or fast mode (400kbps)*/	IxI2cFlowMode I2cFlowSelect;	/**<Select interrupt or poll mode*/		IxI2cMasterReadCallbackP MasterReadCBP;									/**<The master read callback pointer */	IxI2cMasterWriteCallbackP MasterWriteCBP;									/**<The master write callback pointer */	IxI2cSlaveReadCallbackP SlaveReadCBP;									/**<The slave read callback pointer */	IxI2cSlaveWriteCallbackP SlaveWriteCBP;									/**<The slave write callback pointer */	IxI2cGenCallCallbackP GenCallCBP;									/**<The general call callback pointer */	BOOL I2cGenCallResponseEnable;	/**<Enable/disable the unit to									respond to generall calls.*/	BOOL I2cSlaveAddrResponseEnable;/**<Enable/disable the unit to									respond to the slave address set in									ISAR*/	BOOL SCLEnable;					/**<Enable/disable the unit from									driving the SCL line during master									mode operation*/	UINT8 I2cHWAddr;				/**<The address the unit will									response to as a slave device*/} IxI2cInitVars;/** * @brief contains results of counters and their overflow *  * Structure contains all values of counters and associated overflows. */typedef struct{	UINT32 ixI2cMasterXmitCounter;			/**<Total bytes transmitted as											master.*/	UINT32 ixI2cMasterFailedXmitCounter;	/**<Total bytes failed for											transmission as master.*/	UINT32 ixI2cMasterRcvCounter;			/**<Total bytes received as											master.*/	UINT32 ixI2cMasterFailedRcvCounter;		/**<Total bytes failed for											receival as master.*/	UINT32 ixI2cSlaveXmitCounter;			/**<Total bytes transmitted as											slave.*/	UINT32 ixI2cSlaveFailedXmitCounter;		/**<Total bytes failed for											transmission as slave.*/	UINT32 ixI2cSlaveRcvCounter;			/**<Total bytes received as											slave.*/	UINT32 ixI2cSlaveFailedRcvCounter;		/**<Total bytes failed for											receival as slave.*/	UINT32 ixI2cGenAddrCallSucceedCounter;	/**<Total bytes successfully											transmitted for general address.*/	UINT32 ixI2cGenAddrCallFailedCounter;	/**<Total bytes failed transmission											for general address.*/	UINT32 ixI2cArbLossCounter;				/**<Total instances of arbitration											loss has occured.*/} IxI2cStatsCounters;/* * Section for prototypes interface functions *//** * @ingroup IxI2cDrv *  * @fn ixI2cDrvInit(	IxI2cInitVars *InitVarsSelected) * * @brief Initializes the I2C Driver. * * @param "IxI2cInitVars [in] *InitVarsSelected" - struct containing required *			variables for initialization  * * Global Data	: *		- None. * * This API will check if the hardware supports this I2C driver and the validity * of the parameters passed in. It will continue to process the parameters * passed in by setting the speed of the I2C unit (100kbps or 400kbps), setting * the flow to either interrupt or poll mode, setting the address of the I2C unit, * enabling/disabling the respond to General Calls, enabling/disabling the respond * to Slave Address and SCL line driving. If it is interrupt mode, then it will * register the callback routines for master, slavetransfer and general call receive. * * @return  *      - IX_I2C_SUCCESS - Successfully initialize and enable the I2C *							hardware. *		- IX_I2C_NOT_SUPPORTED - The hardware does not support or have a *                              dedicated I2C unit to support this driver *		- IX_I2C_NULL_POINTER - The parameter passed in is a NULL pointed *		- IX_I2C_INVALID_SPEED_MODE_ENUM_VALUE - The speed mode selected in the *												InitVarsSelected is invalid *		- IX_I2C_INVALID_FLOW_MODE_ENUM_VALUE - The flow mode selected in the *												InitVarsSelected is invalid *		- IX_I2C_INVALID_SLAVE_ADDR - The address 0x0 is reserved for *										general call. *		- IX_I2C_SLAVE_ADDR_CB_MISSING - interrupt mode is selected but *										slave address callback pointer is NULL *		- IX_I2C_GEN_CALL_CB_MISSING - interrupt mode is selected but *										general call callback pointer is NULL *		- IX_I2C_INT_BIND_FAIL - The ISR for the I2C failed to bind *		- IX_I2C_INT_UNBIND_FAIL - The ISR for the I2C failed to unbind * * @li   Reentrant    : yes * @li   ISR Callable : yes * */PUBLIC IX_I2C_STATUSixI2cDrvInit(IxI2cInitVars *InitVarsSelected);/** * @ingroup IxI2cDrv *  * @fn ixI2cDrvUninit(	void) * * @brief Disables the I2C hardware * * @param - None * * Global Data	: *		- None. *                         * This API will disable the I2C hardware, unbind interrupt, and unmap memory. * * @return  *      - IX_I2C_SUCCESS - successfully un-initialized I2C *		- IX_I2C_INT_UNBIND_FAIL - failed to unbind the I2C interrupt *		- IX_I2C_NOT_INIT - I2C not init yet. *               * @li   Reentrant    : yes * @li   ISR Callable : yes * */PUBLIC IX_I2C_STATUSixI2cDrvUninit(void);/** * @ingroup IxI2cDrv *  * @fn ixI2cDrvSlaveAddrSet(	UINT8 SlaveAddrSet) * * @brief Sets the I2C Slave Address * * @param "UINT8 [in] SlaveAddrSet" - Slave Address to be inserted into ISAR

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲日本在线| 国产伦精品一区二区三区免费迷| 成人av中文字幕| 久久综合色天天久久综合图片| 狠狠久久亚洲欧美| 精品久久五月天| 国内精品国产成人| 日本一区二区免费在线| 成人av在线一区二区| 亚洲欧洲精品一区二区精品久久久| 99re66热这里只有精品3直播| 一区二区在线观看免费| 欧美日韩小视频| 久久国产精品免费| 欧美激情艳妇裸体舞| 一本大道久久a久久精二百| 亚洲精品免费播放| 717成人午夜免费福利电影| 麻豆精品视频在线观看视频| 久久精品视频一区二区| 日本高清不卡一区| 蜜臀av一区二区在线观看 | 精品中文字幕一区二区| 国产午夜精品久久| 精品视频999| 国产一区二区三区免费| 亚洲欧美另类小说视频| 欧美一区二区三区播放老司机| 激情六月婷婷久久| 亚洲色图欧洲色图婷婷| 日韩亚洲欧美成人一区| av一区二区三区| 麻豆免费看一区二区三区| 国产精品三级视频| 欧美一级黄色录像| 91国产精品成人| 丁香婷婷综合色啪| 视频一区中文字幕国产| 中文字幕精品—区二区四季| 欧美精品自拍偷拍| 成人高清视频免费观看| 蜜臀av性久久久久av蜜臀妖精 | 麻豆成人在线观看| 亚洲免费观看高清完整| 精品国产凹凸成av人网站| 色综合久久中文字幕综合网 | 一区二区三区四区蜜桃| 精品国产一区二区在线观看| 色婷婷av一区| 国产成人一级电影| 首页综合国产亚洲丝袜| 亚洲欧美日韩精品久久久久| 2020国产精品自拍| 欧美一卡2卡3卡4卡| 一本大道久久a久久精二百| 国产酒店精品激情| 日本免费在线视频不卡一不卡二| 亚洲激情av在线| 国产色综合一区| 精品乱人伦小说| 欧美精品免费视频| 在线观看免费视频综合| 成人aaaa免费全部观看| 国模无码大尺度一区二区三区| 爽爽淫人综合网网站 | 日韩在线卡一卡二| 亚洲尤物视频在线| 亚洲欧洲综合另类| 国产精品欧美经典| 久久久久97国产精华液好用吗| 精品免费日韩av| 欧美电影免费观看高清完整版 | 午夜视频在线观看一区二区| 中文字幕佐山爱一区二区免费| 国产清纯白嫩初高生在线观看91 | 色乱码一区二区三区88| 91亚洲永久精品| 一本大道久久a久久综合婷婷| av不卡在线观看| 99精品视频在线播放观看| kk眼镜猥琐国模调教系列一区二区| 国产一区二区三区久久久| 狠狠色狠狠色合久久伊人| 久久se这里有精品| 激情小说亚洲一区| 国产一区二区日韩精品| 国产一区二区久久| 国产一区高清在线| 国产福利一区二区| 成人高清视频免费观看| 成人av网址在线观看| a美女胸又www黄视频久久| 成人h版在线观看| 色狠狠桃花综合| 欧美日韩大陆在线| 日韩精品一区二区在线观看| 精品欧美黑人一区二区三区| 久久久精品综合| 国产精品夫妻自拍| 亚洲精品国产成人久久av盗摄| 亚洲曰韩产成在线| 麻豆国产精品一区二区三区| 国产不卡在线一区| 色综合 综合色| 日韩一区二区三区观看| 26uuu精品一区二区在线观看| 国产精品无遮挡| 亚洲国产视频直播| 麻豆91小视频| 成人精品鲁一区一区二区| 91久久人澡人人添人人爽欧美| 欧美日韩精品系列| 精品黑人一区二区三区久久| 亚洲视频精选在线| 肉肉av福利一精品导航| 国产精品自产自拍| 91精品福利视频| 久久婷婷久久一区二区三区| 国产精品大尺度| 日韩中文字幕1| av亚洲精华国产精华精华| 欧美日本不卡视频| 国产女同互慰高潮91漫画| 亚洲午夜av在线| 成人小视频在线观看| 欧美日韩国产一级| 欧美国产日韩a欧美在线观看 | 精品国产91久久久久久久妲己| 国产精品三级视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 本田岬高潮一区二区三区| 欧美一区二区三区播放老司机| 国产精品高清亚洲| 经典三级一区二区| 欧美性一二三区| 亚洲国产精品ⅴa在线观看| 日本欧美一区二区三区乱码| 91亚洲男人天堂| 国产日韩欧美a| 奇米影视在线99精品| 99精品视频在线观看免费| 久久婷婷一区二区三区| 免费成人美女在线观看.| 91麻豆国产在线观看| 久久精品一区蜜桃臀影院| 丝袜诱惑制服诱惑色一区在线观看| 91亚洲精品一区二区乱码| 国产欧美一区二区三区鸳鸯浴| 亚洲高清中文字幕| 91福利国产成人精品照片| 国产精品美女久久福利网站 | 日本午夜精品一区二区三区电影| 9人人澡人人爽人人精品| 久久先锋影音av鲁色资源| 日韩avvvv在线播放| 欧美亚洲高清一区| 亚洲视频资源在线| 成人一区二区三区| 国产日韩精品一区二区浪潮av| 老司机免费视频一区二区三区| 在线不卡欧美精品一区二区三区| 亚洲一区在线免费观看| av毛片久久久久**hd| 中文字幕一区二区三区不卡在线| 丁香婷婷综合激情五月色| 久久伊人中文字幕| 国产麻豆精品视频| 国产三级欧美三级| 国产91丝袜在线观看| 国产婷婷精品av在线| 成人晚上爱看视频| 国产精品久久二区二区| 成人久久视频在线观看| 中文字幕制服丝袜成人av| 波多野结衣在线一区| 国产精品国产三级国产aⅴ无密码| av中文字幕一区| 亚洲精品你懂的| 欧美剧情片在线观看| 精品在线播放免费| 久久亚洲一区二区三区明星换脸 | 麻豆91精品91久久久的内涵| 精品国产乱码久久久久久久久| 国产美女一区二区| 中文幕一区二区三区久久蜜桃| 99久久99久久精品国产片果冻| 亚洲欧美日韩人成在线播放| 欧美日韩mp4| 久久精品国产澳门| 亚洲一区二区高清| 久久电影网站中文字幕| 亚洲精品一二三| 欧美日韩精品是欧美日韩精品| 三级久久三级久久| 久久免费国产精品 | 国产精品久久久久aaaa| 在线亚洲+欧美+日本专区| 亚洲午夜激情av| 精品少妇一区二区三区在线视频| 国产成人精品亚洲777人妖|