- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Enclosing class:
QCanBusDevice
QCanBusDevice::Filter struct defines a filter for CAN bus frames
Java wrapper for Qt class QCanBusDevice::Filter
- Since:
- This class was introduced in Qt 5.8.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQCanBusDevice::Filter::FormatFilter
static final class
QFlags
type for enumQCanBusDevice.Filter.FormatFilter
-
Constructor Summary
ConstructorDescriptionFilter()
SeeQCanBusDevice::Filter::
Filter() Filter
(int frameId, int frameIdMask, QCanBusFrame.FrameType type, QCanBusDevice.Filter.FormatFilter format) SeeQCanBusDevice::Filter::
Filter{quint32, quint32, QCanBusFrame::FrameType, QCanBusDevice::Filter::FormatFilter} Filter
(QCanBusDevice.Filter other) SeeQCanBusDevice::Filter::
Filter(QCanBusDevice::Filter) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final boolean
boolean
format()
Frame format of the matching CAN bus framefinal int
frameId()
Frame id used to filter the incoming framesfinal int
Bit mask that is applied to the frame id of the filter and the received frameint
hashCode()
Returns the objects's hash code computed byqHash(QCanBusDevice::Filter)
.final void
Frame format of the matching CAN bus framefinal void
setFrameId
(int frameId) Frame id used to filter the incoming framesfinal void
setFrameIdMask
(int frameIdMask) Bit mask that is applied to the frame id of the filter and the received framefinal void
Of the frame to be filteredfinal QCanBusFrame.FrameType
type()
Of the frame to be filteredMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
Filter
public Filter()See
QCanBusDevice::Filter::
Filter() -
Filter
See
QCanBusDevice::Filter::
Filter(QCanBusDevice::Filter) - Parameters:
other
-
-
Filter
public Filter(int frameId, int frameIdMask, QCanBusFrame.FrameType type, QCanBusDevice.Filter.FormatFilter format) See
QCanBusDevice::Filter::
Filter{quint32, quint32, QCanBusFrame::FrameType, QCanBusDevice::Filter::FormatFilter} - Parameters:
frameId
-frameIdMask
-type
-format
-
-
-
Method Details
-
equals
- Parameters:
b
-- Returns:
-
setFormat
Frame format of the matching CAN bus frame
- Parameters:
format
-
-
format
Frame format of the matching CAN bus frame
- Returns:
-
setFrameId
Frame id used to filter the incoming frames
- Parameters:
frameId
-
-
frameId
Frame id used to filter the incoming frames
- Returns:
-
setFrameIdMask
Bit mask that is applied to the frame id of the filter and the received frame
- Parameters:
frameIdMask
-
-
frameIdMask
Bit mask that is applied to the frame id of the filter and the received frame
- Returns:
-
setType
Of the frame to be filtered
- Parameters:
type
-
-
type
Of the frame to be filtered
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QCanBusDevice::Filter)
. -
clone
Creates and returns a copy of this object.
See
QCanBusDevice::Filter::
Filter(QCanBusDevice::Filter)
-