?? boostuart.h
字號:
#include <fcntl.h> /*文件控制定義*/
#include <errno.h> /*錯誤號定義*/
#include <signal.h>
#include <stdio.h> /*標準輸入輸出定義*/
#include <stdlib.h> /*標準函數庫定義*/
#include <string.h>
#include <termios.h> /*PPSIX終端控制定義*/
#include <unistd.h> /*Unix標準函數定義*/
//#include <sys/stat.h> /**/
#include <sys/socket.h>
//#include <sys/wait.h>
class BoostUart
{
public:
char sendBuff[50];
char recvBuff[50];
int fileDescriptor;
/* char* dev_uart2="/dev/ttyS1";
char* dev_uart3="/dev/ttyS2";
char* dev_uart4="/dev/ttyS3";*/
int openDev(char *Dev);
int setParity(int fileDescriptor,int databits,int stopbits,int parity);
void setSpeed(int fileDescriptor, int speed);
char * getUartName(int num);
int boostUartWrite(int fileDescriptor,char *sendBuff,unsigned int sendDataLength);
int boostUartRead(int fileDescriptor,char *recvBuff,unsigned int sizeBuff);
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -