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

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

?? mx21_uart2.h

?? usb_mx21, ARM龍珠i.mx21上的USB OTG的驅動程序
?? H
?? 第 1 頁 / 共 4 頁
字號:
/**********************************************************************
*
*         (C) COPYRIGHT 2004 FREESCALE, INC.
*         ALL RIGHTS RESERVED
*
*
*     Group/Division:  WMSG/MMDO
*
*     Description:
*
*     Related Specifications:
*
*     Errata:
*
*     File Name:        MX21_UART2.h
*     Revision Number:  0.1
*     Author(s):        Ryan Johnson
*     Date created:     12 June 2004
*     Revision History:
*        Date      Rev     Description
*        ----      ---     -----------
*        12June04  0.1     First draft
*
**********************************************************************/

#ifndef _MX21UART2_H_
#define _MX21UART2_H_

#include "MX21_MemMap.h"
#include "MX21_Macros.h"
#include "MX21_DataTypes.h"
#include "MX21_Common.h"

/********************************************************************
M A C R O S
*********************************************************************/

#define _8bitUART                 1
#define _7bitUART                 0
#define _OddParity                0
#define _EvenParity               1
#define _16xBaud                  0
#define _UARTRefClock             1


#define BAUD_300     300	    // 300 baud 
#define BAUD_600     600	    // 600 baud 
#define BAUD_1200    1200	    // 1200 baud 
#define BAUD_2400    2400	    // 2400 baud 
#define BAUD_4800    4800	    // 4800 baud 
#define BAUD_9600    9600	    // 9600 baud      
#define BAUD_14400   14400	    // 14400 baud 
#define BAUD_19200   19200	    // 19200 baud 
#define BAUD_28800   28800	    // 28800 baud 
#define BAUD_38400   38400	    // 38400 baud 
#define BAUD_57600   57600	    // 57600 baud 
#define BAUD_115200  115200	    // 115200 baud 
#define BAUD_230400  230400	    // 230400 baud 
#define BAUD_460800  460800	    // 460800 baud 
#define BAUD_812500  812500	    // 812500 baud 
#define BAUD_920000  920000	    // 920000 baud
#define BAUD_1152000 1152000    // 1152000 baud 
/********************************************************************
F U N C T I O N   P R O T O T Y P E S
*********************************************************************/


// Make a demo with loopback

void
uart2_Demo(void);

/*---------------------------------------------------
// InterruptHandler
// Needs to be linked to in the vect_IRQ table in
//  IntHandlers.h
// Provides hooks for the various UART interrupt
//  possiblities.
//-------------------------------------------------*/
void
uart2_DemoInterruptHandler(void);

/*---------------------------------------------------
// AutoBRMFast
// Configures RFDIV and the BRM numerator and divider
// according to the parameter which should be the
// desired baud rate. Returns 0 if failed,
// otherwise returns the actual programmed baud rate.
// This version does not 'thoroughly' investigate
//  the full spectrum of closely matched fractions,
//  but simply uses a fraction with a denominator of
//  65535. As a result there may be up to .0008%
//  divergence from the closest possible match.
//-------------------------------------------------*/
uint32_t
uart2_AutoBRMFast(uint32_t);//

/*---------------------------------------------------
// AutoBRMPrecise
// Configures RFDIV and the BRM numerator and divider
// according to the parameter which should be the
// desired baud rate. Returns 0 if failed,
// otherwise returns the actual programmed baud rate.
// This version will try the full spectrum of
//  denominators in order to find the closest
//  programable match. This results in a for loop
//  with several instructions being run ~100,000
//  times.
//-------------------------------------------------*/
uint32_t
uart2_AutoBRMPrecise(uint32_t);//





/*---------------------------------------------------
// CHARRDY, URXD[15]
//  Character Ready --Indicates an invalid read
//  when the RxFIFO is empty and the software
//  attempts to read the previously read data.
// Returns:
//	0 = The character in the RX_DATA field and
//	 its associated flags are invalid.
//	1 = The character in the RX_DATA field and
//	 its associated flags are valid and ready
//	 to read
//-------------------------------------------------*/
 uint32_t
uart2_RxCharacterReady(void);//


/*---------------------------------------------------
// ERR, URXD[14]
//  Error Detect --Indicates whether the character
//  present in the RX_DATA field has an error
//  (OVRRUN, FRMERR, BRK or PRERR) status. The ERR
//  bit is updated and valid for each received
//  character.
// Returns:
//	0 = An error status was detected
//	1 = No error status was detected
//-------------------------------------------------*/
 uint32_t
uart2_RxCharacterClean(void);//


/*---------------------------------------------------
// OVRRUN, URXD[13]
//  Receiver Overrun --Indicates whether the
//  receiver ignored data to prevent overwriting
//  the data in the RxFIFO. This error indicates
//  that the software is not keeping up with the
//  incoming data rate. OVRRUN is set for the last
//  (32nd) character written to the RxFIFO to
//  indicate that all characters following this
//  character will be ignored if a read is not
//  performed by the software. OVRRUN is updated
//  and valid for each received character. Under
//  normal circumstances, OVRRUN is never set.
// Returns:
//	0 = No RxFIFO overrun was detected
//	1 = A RxFIFO overrun was detected
//-------------------------------------------------*/
 uint32_t
uart2_RxFIFO_OverrunError(void);//


/*---------------------------------------------------
// FRMERR, URXD[12]
//  Frame Error --Indicates whether the current
//  character had a framing error (a missing stop
//  bit) and is possibly corrupted. FRMERR is
//  updated for each character read from the
//  RxFIFO.
// Returns:
//	0 = The current character has no framing
//	 error
//	1 = The current character has a framing
//	 error
//-------------------------------------------------*/
 uint32_t
uart2_RxFrameError(void);//


/*---------------------------------------------------
// BRK, URXD[11]
//  BREAK Detect --Indicates whether the current
//  character was detected as a BREAK character.
//  The data bits and the stop bit are all 0. The
//  FRMERR bit is set when BRK is set. When odd
//  parity is selected, PRERR is also set when BRK
//  is set. BRK is valid for each character read
//  from the RxFIFO.
// Returns:
//	0 = The current character is not a BREAK
//	 character
//	1 = The current character is a BREAK
//	 character
//-------------------------------------------------*/
 uint32_t
uart2_RxBreakDetect(void);//


/*---------------------------------------------------
// PRERR, URXD[10]
//  Parity Error --Indicates whether the current
//  character was detected with a parity error and
//  is possibly corrupted. PRERR is updated for
//  each character read from the RxFIFO. When
//  parity is disabled, PRERR always reads as 0.
// Returns:
//	0 = No parity error was detected for data
//	 in the RX_DATA field
//	1 = A parity error was detected for data in
//	 the RX_DATA field
//-------------------------------------------------*/
 uint32_t
uart2_RxParityError(void);//


/*---------------------------------------------------
// RX_DATA, URXD[7-0]
//  Received Data --Holds the received character.
//  In 7-bit mode, the most significant bit (MSB)
//  is forced to 0. In 8-bit mode, all bits are
//  active. Support 8-bit data read for DMA
//  transfer. When DMA is configured to 8-bit port
//  reading from RxFIFO, the status bits are
//  ignored and only RX_DATA are transferred.
//-------------------------------------------------*/
 uint32_t
uart2_RxCharacter(void);//

/*---------------------------------------------------
// TX_DATA, UTXD[7-0]
//  Transmit Data --Holds the parallel transmit
//  data inputs. In 7-bit mode, D7 is ignored. In
//  8-bit mode, all bits are used. Data is
//  transmitted least significant bit (LSB) first.
//  A new character is transmitted when the TX_DATA
//  field is written. The TX_DATA field must be
//  written only when the TRDY bit is high to
//  ensure that corrupted data is not sent.
//-------------------------------------------------*/
 void
uart2_TxCharacter(uint32_t);//


/*---------------------------------------------------
// ADEN, UCR1[15] = Enable/Disable
//
//  Automatic Baud Rate Detection Interrupt
//  Enable --Enables or disables the automatic baud
//  rate detect complete (ADET) bit to generate an
//  interrupt.
//-------------------------------------------------*/
 void
uart2_AutoBaudInterrupt(uint32_t);//


/*---------------------------------------------------
// ADBR, UCR1[14] = Enable/Disable
//
//  Automatic Detection of Baud Rate
//  --Enables/Disables automatic baud rate
//  detection. When the ADBR bit is set and the
//  ADET bit is cleared, the receiver detects the
//  incoming baud rate automatically. The ADET flag
//  is set when the receiver verifies that the
//  incoming baud rate is detected properly by
//  detecting an ASCII character "A" or
//  "a" (0x61 or 0x41).
//-------------------------------------------------*/
 void
uart2_AutoBaud(uint32_t);//


/*---------------------------------------------------
// TRDYEN, UCR1[13] = Enable/Disable
//
//  Transmitter Ready Interrupt Enable
//  --Enables/Disables the transmitter Ready
//  Interrupt (TRDY) when the transmitter has one
//  or more slots available in the TxFIFO. The fill
//  level in the TXFIFO at which an interrupt is
//  generated is controlled by TxTL bits. When
//  TRDYEN is negated, the transmitter ready
//  interrupt is disabled.
//-------------------------------------------------*/
 void
uart2_TxFIFO_ReadyInterrupt(uint32_t);//


/*---------------------------------------------------
// IDEN, UCR1[12] = Enable/Disable
//
//  Idle Condition Detected Interrupt Enable
//  --Enables/Disables the IDLE bit to generate an
//  interrupt.
//-------------------------------------------------*/
 void
uart2_RxIdleDetectInterrupt(uint32_t);//


/*---------------------------------------------------
// ICD, UCR1[11-10] = 0..3
//   Result: Idle is (n+2)^2 frames.
//
//  Idle Condition Detect --Controls the number
//  of frames RXD is allowed to be idle before an
//  idle condition is reported.
//-------------------------------------------------*/
 void
uart2_RxIdleLength(uint32_t);//


/*---------------------------------------------------
// RRDYEN, UCR1[9] = Enable/Disable
//
//  Receiver Ready Interrupt Enable
//  --Enables/Disables the RRDY interrupt when the
//  RxFIFO contains data. The fill level in the
//  RXFIFO at which an interrupt is generated is
//  controlled by the RXTL bits. When RRDYEN is
//  negated, the receiver ready interrupt is
//  disabled.
//-------------------------------------------------*/
 void
uart2_RxFIFO_TriggerReadyInterrupt(uint32_t);//


/*---------------------------------------------------
// RXDMAEN, UCR1[8] = Enable/Disable
//
//  Receive Ready DMA Enable --Enables/Disables
//  the receive DMA request IPD_UART_RX_DMAREQ when
//  the receiver has data in the RxFIFO. The fill
//  level in the RxFIFO at which a DMA request is
//  generated is controlled by the RXFL bits. When
//  negated, the receive DMA request is disabled.
//-------------------------------------------------*/
 void
uart2_RxFIFO_TriggerReadyDMA(uint32_t);//


/*---------------------------------------------------
// IREN, UCR1[7] = Enable/Disable
//
//  Infrared Interface Enable
//  --Enables/Disables the IR interface. See the IR
//  interface description in for more information.
//-------------------------------------------------*/
 void
uart2_IR(uint32_t);


/*---------------------------------------------------
// TXMPTYEN, UCR1[6] = Enable/Disable
//
//  Transmitter Empty Interrupt Enable
//  --Enables/Disables the transmitter FIFO empty
//  (TXFE) interrupt. When negated, the TXFE
//  interrupt is disabled.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区二区电影| 精品三级av在线| 欧美精品v国产精品v日韩精品 | 成人夜色视频网站在线观看| 在线免费观看一区| 久久久综合九色合综国产精品| 亚洲精品国产视频| 成人小视频免费观看| 91精品国产品国语在线不卡| 最新日韩av在线| 精品一区二区久久久| 欧美日韩在线免费视频| 亚洲欧美一区二区三区孕妇| 国产精品亚洲成人| 欧美精品一区二区在线观看| 视频在线在亚洲| 在线观看欧美日本| 中文字幕一区三区| 国产91精品一区二区麻豆亚洲| 91精品国产综合久久久久| 一区二区日韩电影| 97久久人人超碰| 国产精品久久久久三级| 豆国产96在线|亚洲| 久久免费美女视频| 激情综合五月婷婷| 老司机一区二区| 在线影院国内精品| 国产精品传媒入口麻豆| 成人污污视频在线观看| 久久久久久久综合日本| 国产乱人伦精品一区二区在线观看 | 在线观看网站黄不卡| 国产精品久久久久久久浪潮网站| 国产一区二区三区免费播放| 精品成人一区二区| 麻豆精品国产91久久久久久| 欧美一级片免费看| 久草热8精品视频在线观看| 91精品欧美综合在线观看最新| 天天色图综合网| 欧美精品电影在线播放| 欧美激情一区三区| 国产欧美日韩在线视频| 黄色日韩三级电影| 亚洲人成7777| 欧洲生活片亚洲生活在线观看| 一区二区不卡在线视频 午夜欧美不卡在 | 国产最新精品精品你懂的| 日韩你懂的电影在线观看| 久久国产精品一区二区| 久久精品一级爱片| 99视频国产精品| 亚洲国产aⅴ天堂久久| 欧美一级二级在线观看| 国产主播一区二区三区| 国产精品国产三级国产aⅴ入口| 99久久精品国产导航| 亚洲电影一级黄| 2014亚洲片线观看视频免费| 福利一区福利二区| 一区二区不卡在线播放 | 91麻豆国产自产在线观看| 亚洲一区二区精品3399| 欧美tickling网站挠脚心| 国产91精品一区二区麻豆网站| 亚洲女人的天堂| 日韩一区二区三| 9久草视频在线视频精品| 午夜视频在线观看一区| 精品国产亚洲一区二区三区在线观看| 国产aⅴ精品一区二区三区色成熟| 日韩美女精品在线| 日韩欧美国产综合在线一区二区三区| 国产成人午夜视频| 香蕉乱码成人久久天堂爱免费| 精品福利一二区| 一本色道久久综合狠狠躁的推荐| 免费一级片91| 一区二区在线观看免费视频播放| 日韩一区二区三区电影在线观看 | 免费人成网站在线观看欧美高清| 中文字幕的久久| 这里是久久伊人| 91麻豆免费观看| 国产乱码精品一区二区三区忘忧草 | 亚洲国产aⅴ成人精品无吗| 国产亚洲一二三区| 3751色影院一区二区三区| 99在线热播精品免费| 久久精品国产99国产| 亚洲国产一二三| 亚洲美女精品一区| 国产精品视频一区二区三区不卡| 91精品国产品国语在线不卡| 91九色最新地址| www.亚洲人| 91美女片黄在线观看91美女| 国产乱人伦偷精品视频不卡 | 亚洲欧洲综合另类在线| 日本一二三不卡| 久久人人超碰精品| 精品久久人人做人人爱| 91精品国产乱码久久蜜臀| 欧美性受极品xxxx喷水| 91视视频在线观看入口直接观看www | 亚洲一区二区av电影| 亚洲视频综合在线| 国产精品私人影院| 中文字幕第一区| 欧美国产精品一区| 欧美国产日产图区| 国产福利电影一区二区三区| 国产精品久久久久久户外露出 | 亚洲欧洲日韩在线| 国产精品不卡在线| 国产精品国产三级国产有无不卡 | 制服丝袜亚洲色图| 91精品国产综合久久小美女| 777午夜精品视频在线播放| 欧美另类z0zxhd电影| 7777女厕盗摄久久久| 日韩一区二区三区电影在线观看 | 欧美激情在线看| 国产精品久久久久久久久快鸭| 久久精品人人做人人综合 | 欧美日韩国产免费| 欧美一区二区久久| 欧美岛国在线观看| 久久中文字幕电影| 国产欧美一区二区三区在线老狼 | 一区二区三区精品久久久| 亚洲一区二区影院| 免费日韩伦理电影| 国产精品1区2区3区在线观看| 国产.欧美.日韩| 91久久久免费一区二区| 欧美日韩不卡在线| 精品国产91乱码一区二区三区| 国产午夜精品福利| 亚洲激情六月丁香| 奇米888四色在线精品| 国产高清不卡二三区| 91色综合久久久久婷婷| 337p亚洲精品色噜噜| 久久精品欧美日韩精品| 一区二区三区四区av| 久久精品999| 99视频有精品| 日韩午夜精品视频| 波多野结衣一区二区三区| 五月激情综合婷婷| 国内精品伊人久久久久av一坑 | 欧美一级黄色大片| 中文字幕精品一区| 日韩高清在线不卡| 成人晚上爱看视频| 7777精品伊人久久久大香线蕉最新版| 久久亚洲精品国产精品紫薇| 久久福利视频一区二区| 国产成人日日夜夜| 欧美三区在线视频| 中文在线资源观看网站视频免费不卡 | 一区2区3区在线看| 国产九色精品成人porny | 欧美电影免费观看高清完整版| 国产欧美日韩精品a在线观看| 亚洲成a人在线观看| 成人黄色免费短视频| 日韩三级视频在线观看| 一区二区三区美女视频| 福利一区在线观看| 精品久久人人做人人爱| 天天色图综合网| 91福利精品第一导航| 国产精品蜜臀av| 国产在线看一区| 91精品欧美综合在线观看最新| 亚洲三级在线免费观看| 懂色中文一区二区在线播放| 日韩欧美一区二区免费| 亚洲电影一区二区三区| 91香蕉视频mp4| 国产精品国产三级国产普通话99| 国产伦精品一区二区三区在线观看| 欧美视频精品在线| 亚洲激情校园春色| 91麻豆国产精品久久| 国产精品美女一区二区三区 | 日韩一二三区视频| 天天影视网天天综合色在线播放| 一本到一区二区三区| 国产精品日韩成人| 波多野结衣在线一区| 国产色91在线| 成人精品国产一区二区4080| 国产欧美精品一区二区色综合| 国产精品自拍一区| 国产亚洲一区二区三区在线观看 | 不卡一二三区首页|