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

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

?? xuartlite.h

?? <基于fpga的嵌入式設計上的光盤的第四章第二個實驗
?? 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一区二区三区免费野_久草精品视频
亚洲欧美偷拍卡通变态| 久久99国产精品免费网站| 成人黄色软件下载| 欧美中文字幕一区二区三区| 国产精品国产三级国产aⅴ入口 | 7777精品伊人久久久大香线蕉的| av一区二区三区四区| 91无套直看片红桃| 欧美日韩精品综合在线| 精品欧美久久久| 亚洲欧洲精品一区二区三区不卡| 一区二区三区四区乱视频| 日韩国产欧美视频| 国产精品自拍网站| 99国产一区二区三精品乱码| 91精品国产美女浴室洗澡无遮挡| 久久久久国产精品免费免费搜索 | 国产成人8x视频一区二区| 在线免费一区三区| 2023国产一二三区日本精品2022| 亚洲欧洲无码一区二区三区| 日韩不卡手机在线v区| 北条麻妃一区二区三区| 欧美日韩精品欧美日韩精品一综合| 精品欧美乱码久久久久久| 亚洲黄色性网站| 国模冰冰炮一区二区| 91福利在线观看| 国产欧美精品一区| 日韩中文字幕1| 成人久久18免费网站麻豆| 91精品国产一区二区三区| 亚洲精品视频观看| 国产精品99久| 91精品国产日韩91久久久久久| 中文字幕制服丝袜成人av| 老司机午夜精品| 欧美色精品在线视频| 国产精品视频你懂的| 激情五月婷婷综合| 91精品国产免费| 亚洲成人资源在线| 91久久精品一区二区三| 中文字幕在线免费不卡| 国产精品66部| 精品久久久久久无| 免费的成人av| 欧美裸体一区二区三区| 一区二区三区欧美激情| 成人av电影在线| 欧美激情在线一区二区三区| 精品一区二区三区影院在线午夜| 欧美二区三区的天堂| 亚洲国产成人av| 色久优优欧美色久优优| 亚洲国产成人午夜在线一区| 久久国产精品免费| 欧美一卡二卡三卡| 亚洲一区二区三区不卡国产欧美 | 一区二区三区四区视频精品免费| 国产一区二区女| 日韩欧美国产综合一区 | 91麻豆精品国产91久久久久久久久| 精品国产区一区| 日韩精品五月天| 欧美猛男男办公室激情| 亚洲v日本v欧美v久久精品| 在线观看三级视频欧美| 一区二区三区免费网站| 91在线porny国产在线看| 欧美国产精品专区| 成人美女视频在线观看18| 中文文精品字幕一区二区| 国产成人免费xxxxxxxx| 国产校园另类小说区| 精品在线视频一区| 久久综合色天天久久综合图片| 极品美女销魂一区二区三区免费| 这里只有精品99re| 久久精品噜噜噜成人88aⅴ| 日韩精品中文字幕一区二区三区| 看片的网站亚洲| 精品国产91亚洲一区二区三区婷婷| 奇米精品一区二区三区在线观看| 91精品国产综合久久福利| 青青草原综合久久大伊人精品 | 麻豆精品视频在线| 欧美一区二区久久久| 视频一区中文字幕| 国产激情一区二区三区四区 | 亚洲青青青在线视频| 在线视频你懂得一区| 日韩一区精品视频| 久久亚洲一级片| gogo大胆日本视频一区| 亚洲精品大片www| 欧美高清视频一二三区| 免费久久精品视频| 欧美精品一区男女天堂| 国产成人自拍高清视频在线免费播放| 久久精品日韩一区二区三区| 成人精品视频一区| 亚洲一区二区三区中文字幕在线 | 亚洲午夜av在线| 在线视频中文字幕一区二区| 日韩精品亚洲专区| 久久久夜色精品亚洲| 99国产精品一区| 亚洲成人三级小说| 2019国产精品| 91尤物视频在线观看| 亚洲丰满少妇videoshd| 精品国产伦理网| 91在线观看视频| 青草av.久久免费一区| 久久色.com| 欧美少妇性性性| 国产专区综合网| 亚洲午夜电影网| 国产拍欧美日韩视频二区| 欧美三级电影网| 国产sm精品调教视频网站| 亚洲成人午夜电影| 国产精品久久久久精k8 | 国产乱一区二区| 自拍偷拍亚洲激情| 日韩一区和二区| 一本久久精品一区二区| 精品在线播放午夜| 一二三四社区欧美黄| 久久精品亚洲乱码伦伦中文 | 日韩一区精品视频| 国产精品久久久久久久蜜臀| 欧美日韩精品一区视频| 成人手机在线视频| 人人爽香蕉精品| 亚洲卡通欧美制服中文| 亚洲精品一区二区三区四区高清 | 亚洲成人av中文| 国产色爱av资源综合区| 欧美日韩一区高清| 成人手机电影网| 极品美女销魂一区二区三区免费| 亚洲自拍偷拍综合| 欧美激情在线免费观看| 日韩欧美激情一区| 欧美日韩国产电影| 91啪在线观看| 粉嫩一区二区三区在线看| 美腿丝袜亚洲三区| 亚洲成av人综合在线观看| 中文字幕在线不卡一区二区三区| 精品不卡在线视频| 777xxx欧美| 日本韩国欧美在线| www.欧美日韩国产在线| 久久国产精品99精品国产| 亚洲bdsm女犯bdsm网站| 亚洲国产精品黑人久久久| 欧美电影免费提供在线观看| 精品视频在线免费看| 色悠悠久久综合| 北岛玲一区二区三区四区| 国产在线国偷精品产拍免费yy| 丝袜美腿一区二区三区| 亚洲精选视频免费看| 中文av一区二区| 久久久精品日韩欧美| 日韩欧美一级二级三级久久久| 在线观看日韩电影| 色诱视频网站一区| 色噜噜夜夜夜综合网| 色婷婷激情久久| 日本精品一级二级| 91久久免费观看| 在线欧美日韩精品| 精品视频全国免费看| 日本久久电影网| 欧美在线不卡一区| 在线观看日韩电影| 欧洲国内综合视频| 欧美视频日韩视频在线观看| 欧美在线免费播放| 欧美色国产精品| 欧美肥妇free| 日韩一级二级三级| 日韩欧美亚洲国产另类| 日韩欧美色综合网站| 精品久久久久久久久久久久久久久久久 | 国产欧美日韩不卡免费| 久久久亚洲高清| 亚洲国产精品二十页| 亚洲婷婷国产精品电影人久久| 亚洲美女免费在线| 亚洲国产成人av| 三级在线观看一区二区| 美国av一区二区| 国产一区二区女| 9久草视频在线视频精品| 色婷婷久久久综合中文字幕 |