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

📄 uart.h

📁 混泰CH7023,CH7024,CH7025视频解码芯片
💻 H
字号:
#ifndef _UART_H
#define _UART_H

/***************************************************************************************

	FileName: 		UART.H

	CPU:  			Samsung 2410
	
	System:			WinCE 4.2

	Description:	This class can be used to operator UART to send or receive chars.
	
	Author:   		JUNFENG WANG

	Create Date:	2007-5-10	

	Modify:			2007-6-22	By JUNFENG WANG
	
*****************************************************************************************/

#include "s3c2410.h"

#define UART_NO_INPUT 0

class UART{
private:
	static volatile S3C2410_IOPreg *s2410IOP;
	static volatile S3C2410_UART0reg *s2410UART;

public:
	UART(){}
	~UART(){}
private:
	//init GPIO for UART
	void Initialize();

public:
	//send one byte...
	void SendByte(UCHAR const data);
	//send multiple bytes...
	void SendString(UCHAR* const str);
	//receive one key from keyboard...
	UCHAR GetKey();
	//See if there is input
	UCHAR TryGetKey();
	
public:
	//just for test...
	UINT Test();
};


#endif //UART_H

⌨️ 快捷键说明

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