irda.h
来自「周立功ARM9 2410试验平台的uCOS-II基础实验代码」· C头文件 代码 · 共 72 行
H
72 行
/****************************************Copyright (c)**************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
** http://www.zyinside.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name : IrDA.h
** Last modified Date: 2006-03-25
** Last Version : v1.0
** Description : S3C2410的串口软件包 (查询控制方式)
**
**------------------------------------------------------------------------------------------------------
** Created By : 甘达
** Created date : 2006-03-25
** Version : v1.0
** Descriptions :
**
**------------------------------------------------------------------------------------------------------
** Modified by :
** Modified date :
** Version :
** Description :
**
********************************************************************************************************/
/*********************************************************************************************************
** Function name: IrDA_Init
** Descriptions : 初始化串口。设置为8位数据位,1位停止位,无奇偶校验,波特率为UART_BPS,IrDA模式
** Input : 无
** Outpu : 无
** Created by : 甘达
** Created Date : 2006-03-25
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified Date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void IrDA_Init(uint32 BPS);
/*********************************************************************************************************
** Function name: IrDA_SendByte
** Descriptions : 向串口发送字节数据,并等待发送完毕。
** Input : data 要发送的数据
** Output : 无
** Created by : 甘达
** Created Date : 2006-03-25
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified Date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void IrDA_SendByte(uint8 data);
/*********************************************************************************************************
** Function name: IrDA_ReceiveByte
** Descriptions : 向串口接收数据。
** Input : 放置接收数据的地址
** Output : TRUE成功接收, FALSE接收超时
** Created by : 甘达
** Created Date : 2006-03-25
**-------------------------------------------------------------------------------------------------------
** Modified by:
** Modified Date:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
uint8 IrDA_ReceiveByte(uint8 *data);
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?