diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2017-01-11 22:03:34 +0100 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2017-01-17 14:26:38 +0000 |
commit | d4bbdb83b26f8219b6c64bcff3967aa15db07d9c (patch) | |
tree | cd95d46d532298757ac6b3620953cb3a2e792c4d /examples/serialbus/can/mainwindow.ui | |
parent | 52967158da2c02efceea610e83786bbd6b5a888a (diff) |
CAN: Introduce CAN FD Bitrate Switch (BRS)
QCanBusFrame:
Added hasBitrateSwitch and setBitrateSwitch to QCanBusFrame
and therefore, increased the QCanBusFrame version number.
* Setting QCanBusFrame::setBitrateSwitch(true)
also sets QCanBusFrame::setFlexibleDataRateFormat(true)
* Setting QCanBusFrame::setFlexibleDataRateFormat(false)
also sets QCanBusFrame::setBitrateSwitch(false)
QCanBusDevice:
Reference implementation and documentation are done for
the SocketCAN plugin. The CAN Example allows to send
frames with Bitrate Switch enabled and visualize received
frames with Bitrate Switch set.
Unfortunately, the SocketCAN plugin does not allow to change
any bitrate yet, so the newly added data bitrate selection
box in ConnectDialog seems a bit useless. This box is
however needed once other plugins become CAN FD capable and
implement bitrate switching.
[ChangeLog][QCanBusFrame] Introduced flag to allow data
bitrate switching for CAN FD frames. Reference
implementation is done for the SocketCAN plugin.
Task-number: QTBUG-56720
Change-Id: Ieab04020f4750c8b0085624d2250ad7cd982cd96
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/serialbus/can/mainwindow.ui')
-rw-r--r-- | examples/serialbus/can/mainwindow.ui | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/examples/serialbus/can/mainwindow.ui b/examples/serialbus/can/mainwindow.ui index 38e1157..72dc62b 100644 --- a/examples/serialbus/can/mainwindow.ui +++ b/examples/serialbus/can/mainwindow.ui @@ -40,7 +40,7 @@ </property> </widget> </item> - <item row="0" column="2" rowspan="3"> + <item row="0" column="2" rowspan="4"> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Frame Type</string> @@ -84,7 +84,7 @@ </property> </widget> </item> - <item row="1" column="3"> + <item row="2" column="3"> <widget class="QCheckBox" name="effBox"> <property name="toolTip"> <string>Allow extended frames with 29 bit identifier. @@ -96,21 +96,21 @@ Otherwise, the standard format with 11 bit idenfier is used.</string> </property> </widget> </item> - <item row="2" column="3"> + <item row="3" column="3"> <widget class="QPushButton" name="sendButton"> <property name="text"> <string>&Send</string> </property> </widget> </item> - <item row="1" column="1"> + <item row="2" column="1"> <widget class="QLineEdit" name="lineEdit"> <property name="placeholderText"> <string>12 34 AB CE</string> </property> </widget> </item> - <item row="1" column="0"> + <item row="2" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>&Data (hex)</string> @@ -120,6 +120,14 @@ Otherwise, the standard format with 11 bit idenfier is used.</string> </property> </widget> </item> + <item row="1" column="3"> + <widget class="QCheckBox" name="bitrateSwitchBox"> + <property name="text"> + <string>&Bitrate Switch +(Higher data rate)</string> + </property> + </widget> + </item> </layout> </item> </layout> @@ -143,7 +151,7 @@ Otherwise, the standard format with 11 bit idenfier is used.</string> <enum>QFrame::StyledPanel</enum> </property> <property name="text"> - <string>Timestamp CAN-ID DLC Data</string> + <string>Timestamp Flags CAN-ID DLC Data</string> </property> </widget> </item> @@ -180,7 +188,7 @@ Otherwise, the standard format with 11 bit idenfier is used.</string> <x>0</x> <y>0</y> <width>551</width> - <height>21</height> + <height>19</height> </rect> </property> <widget class="QMenu" name="menuCalls"> |