2 Star 1 Fork 5

風過^^晌午/Uart_to_uart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
uart_api.h 632 Bytes
一键复制 编辑 原始数据 按行查看 历史
風過^^晌午 提交于 2019-12-04 14:05 . 安卓下串口相互转发
#ifndef __UART_API_H__
#define __UART_API_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <pthread.h>
int uart_open(char *devname);
int uart_cfg(int fd,int inSpeed);
int uart_send(int fd,unsigned char *pcnBuf,int inLen);
int uart_recv(int fd,unsigned char *pcnBuf,int inLen);
int uart_mselect(int fd,int inTimeoutMs);
int uart_mflush(int fd);
int uart_close(int fd);
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/opensource_ipcamera/Uart_to_uart.git
git@gitee.com:opensource_ipcamera/Uart_to_uart.git
opensource_ipcamera
Uart_to_uart
Uart_to_uart
master

搜索帮助