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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xuartlite.h

?? <基于fpga的嵌入式設(shè)計(jì)上的光盤的第四章第二個(gè)實(shí)驗(yàn)
?? H
字號(hào):
/* $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 */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲一二三区| 欧美三区免费完整视频在线观看| 日韩一级片在线观看| 免费在线一区观看| 日韩欧美亚洲另类制服综合在线 | 亚洲国产精品二十页| 波多野结衣亚洲| 一区二区三区在线视频观看58| 在线日韩一区二区| 日韩成人精品在线| 久久日韩粉嫩一区二区三区| 国产成人一级电影| 亚洲欧美日韩精品久久久久| 欧美三级电影网| 国内精品视频一区二区三区八戒| 国产精品美女一区二区| 欧美三级电影网| 国产成人在线色| 亚洲午夜av在线| 久久综合999| 日本高清不卡一区| 狠狠色伊人亚洲综合成人| 国产精品婷婷午夜在线观看| 欧美色国产精品| 国产电影一区在线| 天天综合日日夜夜精品| 久久精品一级爱片| 欧美丝袜丝交足nylons| 国产一区不卡在线| 三级不卡在线观看| 中文字幕欧美激情一区| 日韩一区二区免费在线观看| 国产精品原创巨作av| 亚洲电影中文字幕在线观看| 国产午夜精品美女毛片视频| 欧美女孩性生活视频| 国产不卡视频一区| 免费在线观看一区二区三区| 亚洲天堂福利av| 久久影院午夜论| 欧美亚洲另类激情小说| av在线播放不卡| 国产剧情一区二区| 日本vs亚洲vs韩国一区三区| 亚洲欧美日韩在线播放| 国产亚洲精品超碰| 欧美大胆人体bbbb| 精品视频在线免费观看| 99视频超级精品| 国内外成人在线视频| 日韩专区欧美专区| 亚洲一区中文日韩| 最新中文字幕一区二区三区| 久久午夜免费电影| 日韩一级黄色片| 欧美猛男男办公室激情| 91国产丝袜在线播放| 99热99精品| 成人福利视频网站| 国产91精品欧美| 国产在线精品不卡| 精品一区二区三区在线播放 | 三级久久三级久久久| 一区二区三区中文字幕| 中文字幕色av一区二区三区| 久久久三级国产网站| 精品999久久久| 欧美精品一区二区在线观看| 日韩午夜在线影院| 日韩一区二区在线观看| 制服丝袜av成人在线看| 欧美丰满嫩嫩电影| 欧美日韩综合在线| 欧美色电影在线| 欧美电影在哪看比较好| 337p亚洲精品色噜噜狠狠| 欧美久久久久免费| 日韩一区二区三区免费观看| 欧美成人国产一区二区| xvideos.蜜桃一区二区| 久久免费午夜影院| 欧美激情在线一区二区| 亚洲三级电影网站| 悠悠色在线精品| 午夜精品久久久久久久99樱桃| 日韩精品亚洲一区| 久久国产免费看| 国产一区二区中文字幕| av网站免费线看精品| 91传媒视频在线播放| 日韩一区二区影院| 国产欧美日韩激情| 一区二区三区**美女毛片| 偷窥少妇高潮呻吟av久久免费| 久久精品国产99| 国产99精品视频| 色香蕉久久蜜桃| 制服丝袜日韩国产| 欧美激情一区二区三区全黄| 亚洲视频一区二区在线| 日本成人中文字幕在线视频| 国产一区二区三区免费在线观看| 成人精品视频一区二区三区| 欧美午夜宅男影院| 亚洲精品一区二区在线观看| 国产精品久久久久9999吃药| 亚洲午夜成aⅴ人片| 国产精品一区二区黑丝| 色婷婷久久久综合中文字幕| 日韩欧美精品在线| 亚洲同性gay激情无套| 日本不卡一区二区三区| 成人自拍视频在线| 555www色欧美视频| 国产精品二三区| 日本欧美在线观看| 91在线精品一区二区三区| 日韩一区二区在线看| 亚洲欧美二区三区| 久久国产精品区| 91国模大尺度私拍在线视频| 精品国产伦一区二区三区观看体验| 亚洲图片另类小说| 国产一区二区三区久久悠悠色av| 欧亚洲嫩模精品一区三区| 久久丝袜美腿综合| 性做久久久久久免费观看| 成人深夜在线观看| 欧美电视剧在线看免费| 亚洲一区二区三区在线看| 国产经典欧美精品| 这里只有精品免费| 一区二区三区高清在线| 成人一区二区在线观看| www成人在线观看| 婷婷久久综合九色综合伊人色| 成人午夜av电影| 欧美精品一区二区三区四区| 亚洲.国产.中文慕字在线| 91同城在线观看| 国产网红主播福利一区二区| 免费人成黄页网站在线一区二区| 99久久国产综合精品麻豆| 国产欧美一二三区| 国内外成人在线| 日韩欧美不卡在线观看视频| 亚洲国产精品一区二区久久恐怖片| 不卡的av在线播放| 国产精品网站在线| 国产精品综合二区| 久久免费美女视频| 久久超碰97人人做人人爱| 91麻豆精品国产91久久久使用方法| 一区二区三区色| 色噜噜狠狠色综合欧洲selulu| 国产精品免费人成网站| 国产成人综合网站| 精品国产91亚洲一区二区三区婷婷| 蜜桃视频一区二区| 欧美成人一级视频| 国内成人免费视频| 久久女同精品一区二区| 国产精品一区二区黑丝| 国产日韩欧美a| 国产精华液一区二区三区| 久久九九久久九九| 国产不卡一区视频| 国产欧美日韩在线视频| 成人爱爱电影网址| 亚洲视频电影在线| 欧美日韩精品一区二区三区四区| 午夜婷婷国产麻豆精品| 欧美一级精品在线| 黄色资源网久久资源365| 久久久无码精品亚洲日韩按摩| 国产激情偷乱视频一区二区三区| 国产欧美久久久精品影院| 北岛玲一区二区三区四区| 亚洲人快播电影网| 欧美专区亚洲专区| 日韩成人精品在线| 久久免费美女视频| aa级大片欧美| 亚洲444eee在线观看| 欧美一区二区视频免费观看| 精品无人码麻豆乱码1区2区| 国产视频在线观看一区二区三区| 99久久久无码国产精品| 夜夜嗨av一区二区三区中文字幕 | 精品国产精品网麻豆系列| 国产精品综合av一区二区国产馆| 国产精品视频九色porn| 欧美性色综合网| 久久精品国产亚洲5555| 中文字幕一区二区三| 欧美日韩精品系列| 国产精品综合av一区二区国产馆| 亚洲日本欧美天堂| 日韩欧美一二三四区| caoporm超碰国产精品|