77 return d->messageIndex;
121 return d->hrmAntIdTransType;
197 , enabled(static_cast<bool>(-1))
199 , logHrv(static_cast<bool>(-1))
200 , hrmAntIdTransType(static_cast<
quint8z>(-1))
216 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
220 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"hrm_profile.messageIndex"))
return false;
221 this->
messageIndex =
static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
224 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"hrm_profile.enabled"))
return false;
225 this->
enabled =
static_cast<bool>(data.at(0));
228 if (!
verify(data, baseType, 2, FitBaseType::Uint16z,
"hrm_profile.hrmAntId"))
return false;
229 this->
hrmAntId =
static_cast<quint16z>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
232 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"hrm_profile.logHrv"))
return false;
233 this->
logHrv =
static_cast<bool>(data.at(0));
236 if (!
verify(data, baseType, 1, FitBaseType::Uint8z,
"hrm_profile.hrmAntIdTransType"))
return false;
240 qWarning() <<
"ignoring unknown hrm_profile message field number" << fieldId << bigEndian;
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
MesgNum globalMessageNumber
FIT Globla Message Number for this FIT Data Message.
bool verify(const QByteArray &data, const FitBaseType actualType, const int expectedSize, const FitBaseType expectedType, const char *messageFieldName)
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
bool logHrv
The HrmProfileMessage FIT message's logHrv field.
virtual ~HrmProfileMessagePrivate()
quint8z hrmAntIdTransType
The HrmProfileMessage FIT message's hrmAntIdTransType field.
MessageIndex messageIndex
The HrmProfileMessage FIT message's messageIndex field.
quint16z hrmAntId
The HrmProfileMessage FIT message's hrmAntId field.
bool enabled
The HrmProfileMessage FIT message's enabled field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
The HrmProfileMessage class represents a FIT HrmProfileMessage data message.
void setEnabled(const bool enabled)
Sets the enabled field to enabled.
void setHrmAntId(const quint16z hrmAntId)
Sets the hrmAntId field to hrmAntId.
quint8z hrmAntIdTransType() const
Returns the HrmProfileMessage data message's hrmAntIdTransType field's current value.
HrmProfileMessage()
Constructs a HrmProfileMessage object.
void setHrmAntIdTransType(const quint8z hrmAntIdTransType)
Sets the hrmAntIdTransType field to hrmAntIdTransType.
MessageIndex messageIndex() const
Returns the HrmProfileMessage data message's messageIndex field's current value.
void setLogHrv(const bool logHrv)
Sets the logHrv field to logHrv.
bool enabled() const
Returns the HrmProfileMessage data message's enabled field's current value.
void setMessageIndex(const MessageIndex messageIndex)
Sets the messageIndex field to messageIndex.
quint16z hrmAntId() const
Returns the HrmProfileMessage data message's hrmAntId field's current value.
bool logHrv() const
Returns the HrmProfileMessage data message's logHrv field's current value.
Declares the HrmProfileMessage class.
Declares the HrmProfileMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
quint16 quint16z
16-bit unsigned integer, with 0-is-invalid semantics.
MessageIndex
Garmin FIT MessageIndex type.
QTFIT_BEGIN_NAMESPACE typedef quint8 quint8z
8-bit unsigned integer, with 0-is-invalid semantics.