acquart.h

来自「64输入32输出单片机程序」· C头文件 代码 · 共 31 行

H
31
字号
//---------------------------------------------------------------------------
//	  Project No. : RBS-102A
//	    File Name : RBS-Uart.h
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#define BAUD96_MSB                      0x0ff
#define BAUD96_LSB			0x0b2
#define BAUD192_MSB			0x0ff
#define BAUD192_LSB			0x0d9
#define BAUD288_MSB			0x0ff
#define BAUD288_LSB			0x0e6
#define BAUD576_MSB			0x0ff
#define BAUD576_LSB                     0x0f3
//---------------------------------------------------------------------------
//		Define general constant
typedef struct {
	char	step;
	char 	cmdIn;
	unsigned char	command;
	unsigned char	param;
	char	bptr;
	char	buflength;
	unsigned char sbuf[4];
} UART_st;
//---------------------------------------------------------------------------
//	Fuctions prototype
void _uart_initial (void);
void _uart_reply (void);
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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