java.lang.Object
io.qt.QtObject
io.qt.serialbus.QCanBusFrame
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Container class representing a single CAN frame
Java wrapper for Qt class QCanBusFrame
- Since:
- This class was introduced in Qt 5.8.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQCanBusFrame::FrameError
static final class
QFlags
type for enumQCanBusFrame.FrameError
static enum
Java wrapper for Qt enumQCanBusFrame::FrameType
static class
Timestamp information with microsecond precision -
Constructor Summary
ConstructorDescriptionOverloaded constructor forQCanBusFrame(io.qt.serialbus.QCanBusFrame.FrameType)
withtype = io.qt.serialbus.QCanBusFrame.FrameType.DataFrame
.QCanBusFrame
(int identifier, byte [] data) Overloaded constructor forQCanBusFrame(int, io.qt.core.QByteArray)
.QCanBusFrame
(int identifier, QByteArray data) QCanBusFrame
(QCanBusFrame other) SeeQCanBusFrame::
QCanBusFrame(QCanBusFrame) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final boolean
equals
(QCanBusFrame value2) Seeoperator==(QCanBusFrame,
QCanBusFrame) boolean
Seeoperator==(QCanBusFrame,
QCanBusFrame) final QCanBusFrame.FrameErrors
error()
final int
frameId()
final QCanBusFrame.FrameType
final boolean
final boolean
final boolean
final boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QCanBusFrame)
.final boolean
final boolean
isValid()
final QByteArray
payload()
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QCanBusFrame&) final void
setBitrateSwitch
(boolean bitrateSwitch) final void
setError
(QCanBusFrame.FrameError ... e) Overloaded function forsetError(io.qt.serialbus.QCanBusFrame.FrameErrors)
.final void
final void
setErrorStateIndicator
(boolean errorStateIndicator) final void
setExtendedFrameFormat
(boolean isExtended) final void
setFlexibleDataRateFormat
(boolean isFlexibleData) final void
setFrameId
(int newFrameId) final void
setFrameType
(QCanBusFrame.FrameType newFormat) final void
setLocalEcho
(boolean localEcho) final void
setPayload
(byte [] data) Overloaded function forsetPayload(io.qt.core.QByteArray)
.final void
setPayload
(QByteArray data) final void
final QCanBusFrame.TimeStamp
final String
toString()
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QCanBusFrame) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QCanBusFrame
See
QCanBusFrame::
QCanBusFrame(QCanBusFrame) - Parameters:
other
-
-
QCanBusFrame
- Parameters:
type
-
-
QCanBusFrame
- Parameters:
identifier
-data
-
-
QCanBusFrame
public QCanBusFrame()Overloaded constructor for
QCanBusFrame(io.qt.serialbus.QCanBusFrame.FrameType)
withtype = io.qt.serialbus.QCanBusFrame.FrameType.DataFrame
. -
QCanBusFrame
public QCanBusFrame(int identifier, byte [] data) Overloaded constructor for
QCanBusFrame(int, io.qt.core.QByteArray)
.
-
-
Method Details
-
error
- Returns:
-
frameId
- Returns:
-
frameType
- Returns:
-
hasBitrateSwitch
- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
hasErrorStateIndicator
- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
hasExtendedFrameFormat
- Returns:
-
hasFlexibleDataRateFormat
- Returns:
-
hasLocalEcho
- Returns:
- Since:
- This function was introduced in Qt 5.10.
-
isValid
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QCanBusFrame) - Parameters:
arg__1
-
-
equals
See
operator==(QCanBusFrame,
QCanBusFrame) - Parameters:
value2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QCanBusFrame&) - Parameters:
arg__1
-
-
payload
- Returns:
-
setBitrateSwitch
- Parameters:
bitrateSwitch
-- Since:
- This function was introduced in Qt 5.9.
-
setError
- Parameters:
e
-
-
setErrorStateIndicator
- Parameters:
errorStateIndicator
-- Since:
- This function was introduced in Qt 5.9.
-
setExtendedFrameFormat
- Parameters:
isExtended
-
-
setFlexibleDataRateFormat
- Parameters:
isFlexibleData
-
-
setFrameId
- Parameters:
newFrameId
-
-
setFrameType
- Parameters:
newFormat
-
-
setLocalEcho
- Parameters:
localEcho
-- Since:
- This function was introduced in Qt 5.10.
-
setPayload
- Parameters:
data
-
-
setTimeStamp
- Parameters:
ts
-
-
timeStamp
- Returns:
-
toString
-
equals
See
operator==(QCanBusFrame,
QCanBusFrame) -
hashCode
Returns the objects's hash code computed byqHash(QCanBusFrame)
. -
clone
Creates and returns a copy of this object.
See
QCanBusFrame::
QCanBusFrame(QCanBusFrame) -
setError
Overloaded function for
setError(io.qt.serialbus.QCanBusFrame.FrameErrors)
. -
setPayload
Overloaded function for
setPayload(io.qt.core.QByteArray)
.
-