#include<iostream>
#include<string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdlib.h>
#include<stdio.h>
#include<sstream>
using namespace std;
class E_bus {
string com_n; //serial port ,for example "ttyS0"
string out_control; // it has two value: on\off
int out_number; // Ebus's out port
// char on1[25];
int fd;
int set_serial;
int send_re;
int ret;
char *c_dev_tty;
fd_set readfd;
struct timeval timeout;
public:
// E_bus(string com,string out_ct,int out_nb);
E_bus();
~E_bus();
//open serial port
int open_port(string com_port);
//set serial port
int set_com_config(int fd,int baud_rate, int data_bits, char parity, int stop_bits);
//send data to Ebus
int send_data(string on_off,int out_n);
// if faild, ebus_control<0;if success,it=0
int ebus_control(string on_off,int out_n);
};
//E_bus:: E_bus(string com,string out_ct,int out_nb)
// :com_n(com),out_control(out_ct),out_number(out_nb) {
// }
ebus.tar.gz_Zo_eBus_oneBus指令
版权申诉
166 浏览量
2022-09-24
04:44:31
上传
评论
收藏 2KB GZ 举报
我虽横行却不霸道
- 粉丝: 75
- 资源: 1万+
最新资源
- 基于matlab实现字符识别的参考程序,用所用的字体识别率挺高,部分手写的也能识别,但是还不能识别扭曲和倾斜的字符 .rar
- 基于matlab实现指纹识别系统 包括数据库导入、图像选择识别、帮助功能、识别图像可视、gabor滤波可视,实现界面操作.rar
- 基于matlab实现指纹识别,利用gabor滤波器,提取指纹特征,只能呢读取bmp图像.rar
- 基于matlab实现于数字图像相关方法中散斑质量评价
- 基于matlab实现遗传算法和佳点集遗传算法的基本思想和不同点,用遗传算法测试一标准函数 佳点集算法测试一标准函数
- tensorflow-gpu-2.5.1-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-gpu-2.5.0-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-gpu-2.5.2-cp39-cp39-manylinux2010-x86-64.whl
- 内含方正小标宋简体、仿宋-Gb2312、黑体、楷体、宋体,五个公文常用字体
- 记忆卡牌游戏源码及可运行文件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈