16 Star 35 Fork 15

广州灵派科技有限公司 / Encoder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
UART.h 467 Bytes
一键复制 编辑 原始数据 按行查看 历史
zc 提交于 2020-01-14 10:20 . 修改输出音频的逻辑
#ifndef UART_H
#define UART_H
#include <QObject>
#include <QUdpSocket>
#include <QSerialPort>
#include <QHostAddress>
class UART : public QObject
{
Q_OBJECT
public:
explicit UART(QObject *parent = 0);
void init();
private:
QSerialPort uart;
QUdpSocket socket;
quint16 rmtPort;
QHostAddress rmtIp;
signals:
public slots:
bool update(QString json);
void onReadUart();
void onReadUDP();
};
extern UART *GUart;
#endif // UART_H
C/C++
1
https://gitee.com/LinkPi/Encoder.git
git@gitee.com:LinkPi/Encoder.git
LinkPi
Encoder
Encoder
master

搜索帮助