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

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

?? xuartlite.h

?? 關于xilinx大學計劃配需教程實驗五源代碼
?? H
字號:
/* $Id: xuartlite.h,v 1.1 2006/02/17 22:36:36 moleres Exp $ *//*******************************************************************************       XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"*       AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND*       SOLUTIONS FOR XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE,*       OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,*       APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION*       THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,*       AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE*       FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY*       WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE*       IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR*       REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF*       INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS*       FOR A PARTICULAR PURPOSE.**       (c) Copyright 2002-2005 Xilinx Inc.*       All rights reserved.******************************************************************************//****************************************************************************//**** @file xuartlite.h** This component contains the implementation of the XUartLite component which is* the driver for the Xilinx UART Lite device. This UART is a minimal hardware* implementation with minimal features.  Most of the features, including baud* rate, parity, and number of data bits are only configurable when the hardware* device is built, rather than at run time by software.** The device has 16 byte transmit and receive FIFOs and supports interrupts.* The device does not have any way to disable the receiver such that the* receive FIFO may contain unwanted data.  The FIFOs are not flushed when the* driver is initialized, but a function is provided to allow the user to* reset the FIFOs if desired.** The driver defaults to no interrupts at initialization such that interrupts* must be enabled if desired. An interrupt is generated when the transmit FIFO* transitions from having data to being empty or when any data is contained in* the receive FIFO.** In order to use interrupts, it's necessary for the user to connect the driver* interrupt handler, XUartLite_InterruptHandler, to the interrupt system of the* application.  This function does not save and restore the processor context* such that the user must provide it.  Send and receive handlers may be set for* the driver such that the handlers are called when transmit and receive* interrupts occur.  The handlers are called from interrupt context and are* designed to allow application specific processing to be performed.** The functions, XUartLite_Send and XUartLite_Recv, are provided in the driver* to allow data to be sent and received. They are designed to be used in* polled or interrupt modes.** The driver provides a status for each received byte indicating any parity* frame or overrun error. The driver provides statistics which allow visibility* into these errors.** <b>Initialization & Configuration</b>** The XUartLite_Config structure is used by the driver to configure itself. This* configuration structure is typically created by the tool-chain based on HW* build properties.** To support multiple runtime loading and initialization strategies employed* by various operating systems, the driver instance can be initialized in one* of the following ways:**   - XUartLite_Initialize(InstancePtr, DeviceId) - The driver looks up its own*     configuration structure created by the tool-chain based on an ID provided*     by the tool-chain.**   - XUartLite_CfgInitialize(InstancePtr, CfgPtr, EffectiveAddr) - Uses a*     configuration structure provided by the caller. If running in a system*     with address translation, the provided virtual memory base address*     replaces the physical address present in the configuration structure.** <b>RTOS Independence</b>** This driver is intended to be RTOS and processor independent.  It works* with physical addresses only.  Any needs for dynamic memory management,* threads or thread mutual exclusion, virtual memory, or cache control must* be satisfied by the layer above this driver.** @note** The driver is partitioned such that a minimal implementation may be used.* More features require additional files to be linked in.** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -----------------------------------------------* 1.00a ecm  08/31/01 First release* 1.00b jhl  02/21/02 Repartitioned the driver for smaller files* 1.01a jvb  12/14/05 I separated dependency on the static config table and*                     xparameters.h from the driver initialization by moving*                     _Initialize and _LookupConfig to _sinit.c. I also added*                     the new _CfgInitialize routine.* </pre>******************************************************************************/#ifndef XUARTLITE_H /* prevent circular inclusions */#define XUARTLITE_H /* by using protection macros */#ifdef __cplusplusextern "C" {#endif/***************************** Include Files ********************************/#include "xbasic_types.h"#include "xstatus.h"/************************** Constant Definitions ****************************//**************************** Type Definitions ******************************//** * Callback function.  The first argument is a callback reference passed in by * the upper layer when setting the callback functions, and passed back to the * upper layer when the callback is invoked. * The second argument is the ByteCount which is the number of bytes that * actually moved from/to the buffer provided in the _Send/_Receive call. */typedef void (*XUartLite_Handler)(void *CallBackRef, unsigned int ByteCount);/** * Statistics for the XUartLite driver */typedef struct{    Xuint32 TransmitInterrupts;     /**< Number of transmit interrupts */    Xuint32 ReceiveInterrupts;      /**< Number of receive interrupts */    Xuint32 CharactersTransmitted;  /**< Number of characters transmitted */    Xuint32 CharactersReceived;     /**< Number of characters received */    Xuint32 ReceiveOverrunErrors;   /**< Number of receive overruns */    Xuint32 ReceiveParityErrors;    /**< Number of receive parity errors */    Xuint32 ReceiveFramingErrors;   /**< Number of receive framing errors */} XUartLite_Stats;/** * The following data type is used to manage the buffers that are handled * when sending and receiving data in the interrupt mode. It is intended * for internal use only. */typedef struct{    Xuint8 *NextBytePtr;    unsigned int RequestedBytes;    unsigned int RemainingBytes;} XUartLite_Buffer;/** * This typedef contains configuration information for the device. */typedef struct{    Xuint16 DeviceId;       /**< Unique ID  of device */    Xuint32 RegBaseAddr;    /**< Register base address */    Xuint32 BaudRate;       /**< Fixed baud rate */    Xuint8  UseParity;      /**< Parity generator enabled when XTRUE */    Xuint8  ParityOdd;      /**< Parity generated is odd when XTRUE, even when                                 XFALSE */    Xuint8  DataBits;       /**< Fixed data bits */} XUartLite_Config;/** * The XUartLite driver instance data. The user is required to allocate a * variable of this type for every UART Lite device in the system. A pointer * to a variable of this type is then passed to the driver API functions. */typedef struct{    XUartLite_Stats Stats;      /* Component Statistics */    Xuint32 RegBaseAddress;     /* Base address of registers */    Xuint32 IsReady;            /* Device is initialized and ready */    XUartLite_Buffer SendBuffer;    XUartLite_Buffer ReceiveBuffer;    XUartLite_Handler RecvHandler;    void *RecvCallBackRef;          /* Callback reference for recv handler */    XUartLite_Handler SendHandler;    void *SendCallBackRef;          /* Callback reference for send handler */} XUartLite;/***************** Macros (Inline Functions) Definitions ********************//************************** Function Prototypes *****************************//* * Initialization functions in xuartlite_sinit.c */XStatus XUartLite_Initialize(XUartLite *InstancePtr, Xuint16 DeviceId);XUartLite_Config *XUartLite_LookupConfig(Xuint16 DeviceId);/* * Required functions, in file xuart.c */XStatus XUartLite_CfgInitialize(XUartLite *InstancePtr,                                XUartLite_Config *Config,                                Xuint32 EffectiveAddr);void XUartLite_ResetFifos(XUartLite *InstancePtr);unsigned int XUartLite_Send(XUartLite *InstancePtr, Xuint8 *DataBufferPtr,                            unsigned int NumBytes);unsigned int XUartLite_Recv(XUartLite *InstancePtr, Xuint8 *DataBufferPtr,                            unsigned int NumBytes);Xboolean XUartLite_IsSending(XUartLite *InstancePtr);/* * Functions for statistics, in file xuartlite_stats.c */void XUartLite_GetStats(XUartLite *InstancePtr, XUartLite_Stats *StatsPtr);void XUartLite_ClearStats(XUartLite *InstancePtr);/* * Functions for self-test, in file xuartlite_selftest.c */XStatus XUartLite_SelfTest(XUartLite *InstancePtr);/* * Functions for interrupts, in file xuartlite_intr.c */void XUartLite_EnableInterrupt(XUartLite *InstancePtr);void XUartLite_DisableInterrupt(XUartLite *InstancePtr);void XUartLite_SetRecvHandler(XUartLite *InstancePtr, XUartLite_Handler FuncPtr,                              void *CallBackRef);void XUartLite_SetSendHandler(XUartLite *InstancePtr, XUartLite_Handler FuncPtr,                              void *CallBackRef);void XUartLite_InterruptHandler(XUartLite *InstancePtr);#ifdef __cplusplus}#endif#endif            /* end of protection macro */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人美女视频在线看| 欧美激情一区二区三区在线| 欧美va日韩va| 国产精品久久毛片| 美女诱惑一区二区| 91蜜桃在线观看| 久久久国产精华| 日韩电影免费在线观看网站| 97se亚洲国产综合在线| 久久久久久久久一| 日日摸夜夜添夜夜添国产精品 | 国产精品视频一二三区| 天天影视涩香欲综合网| 91丨porny丨中文| 2020国产精品久久精品美国| 天使萌一区二区三区免费观看| 99精品热视频| 国产欧美日韩亚州综合| 国产自产高清不卡| 日韩欧美亚洲另类制服综合在线| 亚洲综合色婷婷| 99re8在线精品视频免费播放| 久久亚洲精华国产精华液| 秋霞电影一区二区| 欧美精品一级二级| 亚洲电影激情视频网站| 欧美性受xxxx黑人xyx| 尤物在线观看一区| 色综合久久88色综合天天| 国产精品久久久久aaaa| 国v精品久久久网| 国产人成一区二区三区影院| 国产精品18久久久久久vr| 精品免费国产一区二区三区四区| 轻轻草成人在线| 51久久夜色精品国产麻豆| 日本伊人色综合网| 91精品福利在线一区二区三区| 免费不卡在线观看| 337p日本欧洲亚洲大胆色噜噜| 久久精品国产**网站演员| 欧美精品一区二区久久久| 国内精品伊人久久久久av影院 | 中文字幕佐山爱一区二区免费| 成人性色生活片免费看爆迷你毛片| 久久久久久电影| 成人久久久精品乱码一区二区三区 | 一本久久综合亚洲鲁鲁五月天| 亚洲欧美一区二区三区久本道91| 色88888久久久久久影院野外| 亚洲男同性恋视频| 欧美剧情片在线观看| 老色鬼精品视频在线观看播放| 久久精品一区二区三区不卡| 成人精品国产一区二区4080| 亚洲精品美腿丝袜| 欧美日韩你懂的| 狠狠色丁香婷婷综合| 久久久国产精华| 97se狠狠狠综合亚洲狠狠| 性感美女极品91精品| 欧美videos中文字幕| 国产91在线|亚洲| 一区二区三区欧美视频| 欧美精品第1页| 丁香天五香天堂综合| 亚洲精品高清在线| 欧美精品一区二区三区在线播放| 91视频免费看| 免费看黄色91| 中文字幕人成不卡一区| 欧美一区二区三区在线| 99精品久久久久久| 日韩av中文在线观看| 国产精品乱人伦中文| 欧美电影在哪看比较好| 岛国一区二区三区| 亚洲成人一区二区| 国产精品国产三级国产普通话99| 欧美四级电影网| 国产成人aaa| 日本欧美韩国一区三区| 亚洲欧美日韩在线| 久久久久99精品一区| 欧美日韩成人高清| 99久久精品国产一区二区三区 | 一区二区在线观看视频| 久久精品在线免费观看| 91精品国产综合久久久久久久| av亚洲精华国产精华| 久久66热偷产精品| 日韩中文字幕区一区有砖一区| 国产精品久久久久影视| 久久午夜电影网| 91麻豆精品91久久久久同性| 99久久精品免费| 成人小视频在线观看| 狂野欧美性猛交blacked| 亚洲18女电影在线观看| 一区二区三区视频在线看| 国产欧美一区二区精品婷婷| 日韩免费性生活视频播放| 欧美三级在线看| 欧美日韩免费高清一区色橹橹| 97se亚洲国产综合自在线观| www.一区二区| 国产91丝袜在线观看| 国产传媒欧美日韩成人| 狠狠色丁香婷婷综合久久片| 美洲天堂一区二卡三卡四卡视频| 亚洲成精国产精品女| 亚洲一区二区五区| 亚洲一区中文日韩| 一区二区三区91| 亚洲成a人在线观看| 亚洲精品视频一区| 一卡二卡三卡日韩欧美| 一区二区三区美女| 亚洲午夜精品17c| 亚洲五码中文字幕| 五月天网站亚洲| 免费人成网站在线观看欧美高清| 免费精品视频在线| 激情欧美一区二区三区在线观看| 久久66热re国产| 国产精品99久| 99精品久久只有精品| 在线观看日韩电影| 欧美亚洲高清一区| 91在线国产观看| 欧美v日韩v国产v| 26uuu久久天堂性欧美| 亚洲欧美经典视频| 综合久久久久久| 欧美一级高清片在线观看| 91美女精品福利| 丰满白嫩尤物一区二区| 久久电影国产免费久久电影| 亚洲综合久久久| 中文字幕制服丝袜一区二区三区| 日韩女优av电影| 日韩欧美一级片| 日韩一区二区三区视频在线观看 | 成人黄色一级视频| 精品一区二区成人精品| 日韩精品午夜视频| 亚洲第一搞黄网站| 亚洲图片欧美一区| 亚洲一区二区三区在线播放| 综合久久一区二区三区| 亚洲欧洲日韩av| 最好看的中文字幕久久| 中文字幕中文字幕一区| 国产精品国产精品国产专区不片 | 欧美日韩你懂的| 欧美天堂一区二区三区| 欧美色图一区二区三区| 在线免费观看视频一区| 欧美亚洲高清一区二区三区不卡| 在线免费观看日韩欧美| 在线这里只有精品| 欧美三级三级三级爽爽爽| 欧美日韩视频在线一区二区| 91精品国产综合久久香蕉的特点 | 国产成人在线看| 不卡欧美aaaaa| 在线精品视频一区二区三四| 欧美性猛交xxxx黑人交| 欧美久久免费观看| 欧美一区二区三区公司| 久久综合色8888| 亚洲特级片在线| 亚洲v精品v日韩v欧美v专区| 日韩av中文字幕一区二区| 精品系列免费在线观看| 国产成人精品影视| av在线一区二区三区| 欧美日韩第一区日日骚| 精品国产成人在线影院| 国产精品久久久久久久久免费樱桃| 亚洲三级在线看| 日本成人超碰在线观看| 丰满亚洲少妇av| 欧美性猛交一区二区三区精品| 日韩欧美国产wwwww| 国产精品理论在线观看| 日韩有码一区二区三区| 国产成人免费在线观看不卡| 一本大道久久a久久综合| 欧美一级欧美三级在线观看| 中文一区在线播放| 日韩精品成人一区二区三区 | 欧美手机在线视频| 欧美成人猛片aaaaaaa| 亚洲日韩欧美一区二区在线| 人妖欧美一区二区| 日本久久电影网| 久久久噜噜噜久久人人看| 亚洲成av人片在www色猫咪| 狠狠色狠狠色综合|