资源简介
QT调用PCAN第三方库实现的上位机实例,亲测可用,支持PEAKcan,tinycan
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2017 Andre Hartmann
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the QtSerialBus module.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or alternatively in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively you may use this file under the terms of the BSD license
** as follows:
**
** “Redistribution and use in source and binary forms with or without
** modification are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
** LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
** SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
** LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
** DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.“
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include “bitratebox.h“
#include
BitRateBox::BitRateBox(QWidget *parent) :
QComboBox(parent)
m_customSpeedValidator(new QIntValidator(0 1000000 this))
{
fillBitRates();
connect(this QOverload::of(&QComboBox::currentIndexChanged)
this &BitRateBox::checkCustomSpeedPolicy);
}
BitRateBox::~BitRateBox()
{
delete m_customSpeedValidator;
}
int BitRateBox::bitRate() const
{
if (currentIndex() =
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4227 2019-05-19 12:57 Pcan\bitratebox.cpp
文件 3138 2019-05-19 12:57 Pcan\bitratebox.h
文件 483 2019-05-19 12:57 Pcan\can.pro
文件 24999 2020-03-02 17:14 Pcan\can.pro.user
文件 235 2019-05-19 12:57 Pcan\can.qrc
文件 9533 2019-05-19 12:57 Pcan\connectdialog.cpp
文件 3635 2019-05-19 12:57 Pcan\connectdialog.h
文件 7066 2019-05-19 12:57 Pcan\connectdialog.ui
文件 11200 2019-05-19 12:57 Pcan\images\application-exit.png
文件 12543 2019-05-19 12:57 Pcan\images\clear.png
文件 15374 2019-05-19 12:57 Pcan\images\connect.png
文件 15092 2019-05-19 12:57 Pcan\images\disconnect.png
文件 2803 2019-05-19 12:57 Pcan\main.cpp
文件 9065 2019-05-19 12:57 Pcan\mainwindow.cpp
文件 3557 2019-05-19 12:57 Pcan\mainwindow.h
文件 5305 2019-05-19 12:57 Pcan\mainwindow.ui
文件 7165 2019-05-19 12:57 Pcan\sendfr
文件 3731 2019-05-19 12:57 Pcan\sendfr
文件 6186 2019-05-19 12:57 Pcan\sendfr
目录 0 2020-03-02 17:19 Pcan\images
目录 0 2020-03-02 17:19 Pcan
----------- --------- ---------- ----- ----
145337 21
相关资源
- 基于ARM7处理器的CAN总线网络设计
- 基于CAN总线与ZigBee的瓦斯实时监测及
- 基于CAN总线的智能照明系统的设计和
- 基于DSP交流伺服系统与CAN总线的通信
- 0.汽车CAN总线通信矩阵设计.pdf
- 科技创新-基于CAN总线的温度控制系统
- CAN总线协议讲解
- CAN总线培训教材
- ARINC825 通用CAN总线航空-民航协议介绍
- CAN总线原理和应用系统设计[PDF]
- FPGA实现CAN总线控制器开源代码.zip
- CAN & CANOpen EN
- CAN_BUS规范v2.0+中文版.pdf
- can总线参考资料与文献
- 周立功USBCAN-2A接口卡函数库使用说明
- can总线代码+资料mcp2510+s3c2410与sja100
- 51单片机与SJA1000连接电路图,驱动编
- AUTOSARCAN总线网络管理规范
- USBCAN-2I PC端软件
- USBCAN_E_U_drive,ZLG,周立功 CAN驱动
- CAN总线协议-ISO11898全
- CAN总线网络层协议栈开发测试
- USBCAN-2E-U驱动 for win10
- can总线(包含SJA1000资料和原理图)
- 正点原子Mini开发板 CAN总线通信实验移
- AUTOSAR_SWS_CANNetworkManagementAUTOSARCAN总线
- 基于SJA1000的CAN总线设计详细资料,绝
- CAN总线.pptx
- 基于CAN总线的多点温度采集与显示系
- 广成usb can软件ECANtools canusb技术
评论
共有 条评论