QtFit
0.1
Internal library development documentation
|
The ObdiiDataMessage class represents a FIT ObdiiDataMessage data message. More...
Public Member Functions | |
ObdiiDataMessage () | |
Constructs a ObdiiDataMessage object. More... | |
DateTime | timestamp () const |
Returns the ObdiiDataMessage data message's timestamp field's current value. More... | |
quint16 | timestampMs () const |
Returns the ObdiiDataMessage data message's timestampMs field's current value. More... | |
quint16 | timeOffset () const |
Returns the ObdiiDataMessage data message's timeOffset field's current value. More... | |
quint8 | pid () const |
Returns the ObdiiDataMessage data message's pid field's current value. More... | |
quint8 | rawData () const |
Returns the ObdiiDataMessage data message's rawData field's current value. More... | |
quint8 | pidDataSize () const |
Returns the ObdiiDataMessage data message's pidDataSize field's current value. More... | |
quint32 | systemTime () const |
Returns the ObdiiDataMessage data message's systemTime field's current value. More... | |
DateTime | startTimestamp () const |
Returns the ObdiiDataMessage data message's startTimestamp field's current value. More... | |
quint16 | startTimestampMs () const |
Returns the ObdiiDataMessage data message's startTimestampMs field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setTimestampMs (const quint16 timestampMs) |
Sets the timestampMs field to timestampMs. More... | |
void | setTimeOffset (const quint16 timeOffset) |
Sets the timeOffset field to timeOffset. More... | |
void | setPid (const quint8 pid) |
Sets the pid field to pid. More... | |
void | setRawData (const quint8 rawData) |
Sets the rawData field to rawData. More... | |
void | setPidDataSize (const quint8 pidDataSize) |
Sets the pidDataSize field to pidDataSize. More... | |
void | setSystemTime (const quint32 systemTime) |
Sets the systemTime field to systemTime. More... | |
void | setStartTimestamp (const DateTime startTimestamp) |
Sets the startTimestamp field to startTimestamp. More... | |
void | setStartTimestampMs (const quint16 startTimestampMs) |
Sets the startTimestampMs field to startTimestampMs. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
ObdiiDataMessage (ObdiiDataMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The ObdiiDataMessage class represents a FIT ObdiiDataMessage data message.
Definition at line 39 of file obdiidatamessage.h.
ObdiiDataMessage::ObdiiDataMessage | ( | ) |
Constructs a ObdiiDataMessage object.
Typically, instances of this class will be returned by FitStreamReader::readNext, but this constructor may be used, along with the relevant setter methods, to create a valid message.
Definition at line 52 of file obdiidatamessage.cpp.
|
explicitprotected |
Constructs a ObdiiDataMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file obdiidatamessage.cpp.
quint8 ObdiiDataMessage::pid | ( | ) | const |
Returns the ObdiiDataMessage data message's pid
field's current value.
Parameter ID
pid
field value. Definition at line 116 of file obdiidatamessage.cpp.
Referenced by setPid().
quint8 ObdiiDataMessage::pidDataSize | ( | ) | const |
Returns the ObdiiDataMessage data message's pidDataSize
field's current value.
Optional, data size of PID[i]. If not specified refer to SAE J1979.
pidDataSize
field value. Definition at line 142 of file obdiidatamessage.cpp.
Referenced by setPidDataSize().
quint8 ObdiiDataMessage::rawData | ( | ) | const |
Returns the ObdiiDataMessage data message's rawData
field's current value.
Raw parameter data
rawData
field value. Definition at line 129 of file obdiidatamessage.cpp.
Referenced by setRawData().
void ObdiiDataMessage::setPid | ( | const quint8 | pid | ) |
Sets the pid
field to pid.
pid | The field value to set. |
Definition at line 225 of file obdiidatamessage.cpp.
References pid().
void ObdiiDataMessage::setPidDataSize | ( | const quint8 | pidDataSize | ) |
Sets the pidDataSize
field to pidDataSize.
pidDataSize | The field value to set. |
Definition at line 245 of file obdiidatamessage.cpp.
References pidDataSize().
void ObdiiDataMessage::setRawData | ( | const quint8 | rawData | ) |
Sets the rawData
field to rawData.
rawData | The field value to set. |
Definition at line 235 of file obdiidatamessage.cpp.
References rawData().
void ObdiiDataMessage::setStartTimestamp | ( | const DateTime | startTimestamp | ) |
Sets the startTimestamp
field to startTimestamp.
startTimestamp | The field value to set. |
Definition at line 265 of file obdiidatamessage.cpp.
References startTimestamp().
void ObdiiDataMessage::setStartTimestampMs | ( | const quint16 | startTimestampMs | ) |
Sets the startTimestampMs
field to startTimestampMs.
startTimestampMs | The field value to set. |
Definition at line 275 of file obdiidatamessage.cpp.
References startTimestampMs().
void ObdiiDataMessage::setSystemTime | ( | const quint32 | systemTime | ) |
Sets the systemTime
field to systemTime.
systemTime | The field value to set. |
Definition at line 255 of file obdiidatamessage.cpp.
References systemTime().
void ObdiiDataMessage::setTimeOffset | ( | const quint16 | timeOffset | ) |
Sets the timeOffset
field to timeOffset.
timeOffset | The field value to set. |
Definition at line 215 of file obdiidatamessage.cpp.
References timeOffset().
void ObdiiDataMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 195 of file obdiidatamessage.cpp.
References timestamp().
void ObdiiDataMessage::setTimestampMs | ( | const quint16 | timestampMs | ) |
Sets the timestampMs
field to timestampMs.
timestampMs | The field value to set. |
Definition at line 205 of file obdiidatamessage.cpp.
References timestampMs().
DateTime ObdiiDataMessage::startTimestamp | ( | ) | const |
Returns the ObdiiDataMessage data message's startTimestamp
field's current value.
Timestamp of first sample recorded in the message. Used with time_offset to generate time of each sample
startTimestamp
field value. Definition at line 171 of file obdiidatamessage.cpp.
Referenced by setStartTimestamp().
quint16 ObdiiDataMessage::startTimestampMs | ( | ) | const |
Returns the ObdiiDataMessage data message's startTimestampMs
field's current value.
Fractional part of start_timestamp
startTimestampMs
field value. Definition at line 184 of file obdiidatamessage.cpp.
Referenced by setStartTimestampMs().
quint32 ObdiiDataMessage::systemTime | ( | ) | const |
Returns the ObdiiDataMessage data message's systemTime
field's current value.
System time associated with sample expressed in ms, can be used instead of time_offset. There will be a system_time value for each raw_data element. For multibyte pids the system_time is repeated.
systemTime
field value. Definition at line 157 of file obdiidatamessage.cpp.
Referenced by setSystemTime().
quint16 ObdiiDataMessage::timeOffset | ( | ) | const |
Returns the ObdiiDataMessage data message's timeOffset
field's current value.
Offset of PID reading [i] from start_timestamp+start_timestamp_ms. Readings may span accross seconds.
timeOffset
field value. Definition at line 103 of file obdiidatamessage.cpp.
Referenced by setTimeOffset().
DateTime ObdiiDataMessage::timestamp | ( | ) | const |
Returns the ObdiiDataMessage data message's timestamp
field's current value.
Timestamp message was output
timestamp
field value. Definition at line 76 of file obdiidatamessage.cpp.
Referenced by setTimestamp().
quint16 ObdiiDataMessage::timestampMs | ( | ) | const |
Returns the ObdiiDataMessage data message's timestampMs
field's current value.
Fractional part of timestamp, added to timestamp
timestampMs
field value. Definition at line 89 of file obdiidatamessage.cpp.
Referenced by setTimestampMs().