⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uart.h

📁 SmartARM2400系列开发板全套资料
💻 H
字号:
/****************************************Copyright (c)****************************************************
**                            Guangzhou ZHIYUAN electronics Co.,LTD.
**                                      
**                                 http://www.embedtools.com
**
**--------------File Info---------------------------------------------------------------------------------
** File name:               uart.h
** Latest modified Date:    2008-06-06
** Latest Version:          V1.00
** Descriptions:            LPC2400 串口收发简易驱动,用于GPRS/GPS 界面交互调试.
**
**--------------------------------------------------------------------------------------------------------
** Created by:              WangGuogang 
** Created date:            2008-06-06
** Version:                 V1.00
** Descriptions:            The original version
**
**--------------------------------------------------------------------------------------------------------
** Modified by:            
** Modified date:          
** Version:                 
** Descriptions:           
**
*********************************************************************************************************/
#ifndef __UART_H 
#define __UART_H

#ifdef __cplusplus
    extern "C" {
#endif                                                                  /*  __cplusplus                 */
/*********************************************************************************************************
** 函数名称 :uart0Init()
** 函数功能 :串口0初始化
** 入口参数 :uiUartBps ,波特率值.
** 出口参数 :无
*********************************************************************************************************/
extern void uart0Init (uint32 uiUartBps);

/*********************************************************************************************************
** 函数名称 :uart0SendByte
** 函数功能 :以查询方式发送一字节数据
** 入口参数 :ucByte, 要发送的数据
** 出口参数 :无
*********************************************************************************************************/
extern void uart0SendByte(char ucByte);

/**********************************************************************************************************
** 函数名称 :uart0SendStr
** 函数功能 :向串口0发送一字符串
** 入口参数 :pcStr,要发送的字符串的指针
** 出口参数 :无
**********************************************************************************************************/
extern void uart0SendStr(char *pcStr);

/*********************************************************************************************************
** 函数名称 :uart0RcvByte
** 函数功能 :以查询方式接收一字节数据
** 入口参数 :无
** 出口参数 :接收到的字节数据
*********************************************************************************************************/
extern uint8 uart0RcvByte (void); 


#ifdef __cplusplus
	}
#endif

#endif                                                                  /*  __UART_H                	*/

/*********************************************************************************************************
  END FILE
*********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -