QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
deviceinfomessage.cpp
Go to the documentation of this file.
1 /*
2  Copyright 2021 Paul Colby
3 
4  This file is part of QtFit.
5 
6  QtFit is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  QtFit is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with QtFit. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \file
22  * \note This file is automatcially generated. Any changes here are likely to be overwritten.
23  */
24 
25 /*!
26  * \file
27  * Defines the DeviceInfoMessage, and DeviceInfoMessagePrivate classes.
28  */
29 
30 #include "deviceinfomessage.h"
31 #include "deviceinfomessage_p.h"
32 
33 #include <QDebug>
34 #include <QtEndian>
35 
37 
38 /*!
39  * \class DeviceInfoMessage
40  *
41  * The DeviceInfoMessage class represents a FIT DeviceInfoMessage data message.
42  *
43  * \sa DataMessage
44  */
45 
46 /*!
47  * Constructs a DeviceInfoMessage object.
48  *
49  * Typically, instances of this class will be returned by FitStreamReader::readNext, but this
50  * constructor may be used, along with the relevant setter methods, to create a valid message.
51  */
53 {
54 
55 }
56 
57 /*!
58  * \internal
59  *
60  * Constructs a DeviceInfoMessage object with private implementation \a d.
61  *
62  * \param d Pointer to private implementation.
63  */
65 {
66 
67 }
68 
69 /*!
70  * Returns the DeviceInfoMessage data message's \c timestamp field's current value.
71  *
72  * \return the \c timestamp field value.
73  */
75 {
76  Q_D(const DeviceInfoMessage);
77  return d->timestamp;
78 }
79 
80 /*!
81  * Returns the DeviceInfoMessage data message's \c deviceIndex field's current value.
82  *
83  * \return the \c deviceIndex field value.
84  */
86 {
87  Q_D(const DeviceInfoMessage);
88  return d->deviceIndex;
89 }
90 
91 /*!
92  * Returns the DeviceInfoMessage data message's \c deviceType field's current value.
93  *
94  * \return the \c deviceType field value.
95  */
97 {
98  Q_D(const DeviceInfoMessage);
99  return d->deviceType;
100 }
101 
102 /*!
103  * Returns the DeviceInfoMessage data message's \c manufacturer field's current value.
104  *
105  * \return the \c manufacturer field value.
106  */
108 {
109  Q_D(const DeviceInfoMessage);
110  return d->manufacturer;
111 }
112 
113 /*!
114  * Returns the DeviceInfoMessage data message's \c serialNumber field's current value.
115  *
116  * \return the \c serialNumber field value.
117  */
119 {
120  Q_D(const DeviceInfoMessage);
121  return d->serialNumber;
122 }
123 
124 /*!
125  * Returns the DeviceInfoMessage data message's \c product field's current value.
126  *
127  * \return the \c product field value.
128  */
130 {
131  Q_D(const DeviceInfoMessage);
132  return d->product;
133 }
134 
135 /*!
136  * Returns the DeviceInfoMessage data message's \c softwareVersion field's current value.
137  *
138  * \return the \c softwareVersion field value.
139  */
141 {
142  Q_D(const DeviceInfoMessage);
143  return d->softwareVersion;
144 }
145 
146 /*!
147  * Returns the DeviceInfoMessage data message's \c hardwareVersion field's current value.
148  *
149  * \return the \c hardwareVersion field value.
150  */
152 {
153  Q_D(const DeviceInfoMessage);
154  return d->hardwareVersion;
155 }
156 
157 /*!
158  * Returns the DeviceInfoMessage data message's \c cumOperatingTime field's current value.
159  *
160  * Reset by new battery or charge.
161  *
162  * \return the \c cumOperatingTime field value.
163  */
165 {
166  Q_D(const DeviceInfoMessage);
167  return d->cumOperatingTime;
168 }
169 
170 /*!
171  * Returns the DeviceInfoMessage data message's \c batteryVoltage field's current value.
172  *
173  * \return the \c batteryVoltage field value.
174  */
176 {
177  Q_D(const DeviceInfoMessage);
178  return d->batteryVoltage;
179 }
180 
181 /*!
182  * Returns the DeviceInfoMessage data message's \c batteryStatus field's current value.
183  *
184  * \return the \c batteryStatus field value.
185  */
187 {
188  Q_D(const DeviceInfoMessage);
189  return d->batteryStatus;
190 }
191 
192 /*!
193  * Returns the DeviceInfoMessage data message's \c sensorPosition field's current value.
194  *
195  * Indicates the location of the sensor
196  *
197  * \return the \c sensorPosition field value.
198  */
200 {
201  Q_D(const DeviceInfoMessage);
202  return d->sensorPosition;
203 }
204 
205 /*!
206  * Returns the DeviceInfoMessage data message's \c descriptor field's current value.
207  *
208  * Used to describe the sensor or location
209  *
210  * \return the \c descriptor field value.
211  */
213 {
214  Q_D(const DeviceInfoMessage);
215  return d->descriptor;
216 }
217 
218 /*!
219  * Returns the DeviceInfoMessage data message's \c antTransmissionType field's current value.
220  *
221  * \return the \c antTransmissionType field value.
222  */
224 {
225  Q_D(const DeviceInfoMessage);
226  return d->antTransmissionType;
227 }
228 
229 /*!
230  * Returns the DeviceInfoMessage data message's \c antDeviceNumber field's current value.
231  *
232  * \return the \c antDeviceNumber field value.
233  */
235 {
236  Q_D(const DeviceInfoMessage);
237  return d->antDeviceNumber;
238 }
239 
240 /*!
241  * Returns the DeviceInfoMessage data message's \c antNetwork field's current value.
242  *
243  * \return the \c antNetwork field value.
244  */
246 {
247  Q_D(const DeviceInfoMessage);
248  return d->antNetwork;
249 }
250 
251 /*!
252  * Returns the DeviceInfoMessage data message's \c sourceType field's current value.
253  *
254  * \return the \c sourceType field value.
255  */
257 {
258  Q_D(const DeviceInfoMessage);
259  return d->sourceType;
260 }
261 
262 /*!
263  * Returns the DeviceInfoMessage data message's \c productName field's current value.
264  *
265  * Optional free form string to indicate the devices name or model
266  *
267  * \return the \c productName field value.
268  */
270 {
271  Q_D(const DeviceInfoMessage);
272  return d->productName;
273 }
274 
275 /*!
276  * Sets the \c timestamp field to \a timestamp.
277  *
278  * \param timestamp The field value to set.
279  */
281 {
282  Q_D(DeviceInfoMessage);
283  d->timestamp = timestamp;
284 }
285 /*!
286  * Sets the \c deviceIndex field to \a deviceIndex.
287  *
288  * \param deviceIndex The field value to set.
289  */
291 {
292  Q_D(DeviceInfoMessage);
293  d->deviceIndex = deviceIndex;
294 }
295 /*!
296  * Sets the \c deviceType field to \a deviceType.
297  *
298  * \param deviceType The field value to set.
299  */
300 void DeviceInfoMessage::setDeviceType(const quint8 deviceType)
301 {
302  Q_D(DeviceInfoMessage);
303  d->deviceType = deviceType;
304 }
305 /*!
306  * Sets the \c manufacturer field to \a manufacturer.
307  *
308  * \param manufacturer The field value to set.
309  */
311 {
312  Q_D(DeviceInfoMessage);
313  d->manufacturer = manufacturer;
314 }
315 /*!
316  * Sets the \c serialNumber field to \a serialNumber.
317  *
318  * \param serialNumber The field value to set.
319  */
321 {
322  Q_D(DeviceInfoMessage);
323  d->serialNumber = serialNumber;
324 }
325 /*!
326  * Sets the \c product field to \a product.
327  *
328  * \param product The field value to set.
329  */
330 void DeviceInfoMessage::setProduct(const quint16 product)
331 {
332  Q_D(DeviceInfoMessage);
333  d->product = product;
334 }
335 /*!
336  * Sets the \c softwareVersion field to \a softwareVersion.
337  *
338  * \param softwareVersion The field value to set.
339  */
340 void DeviceInfoMessage::setSoftwareVersion(const quint16 softwareVersion)
341 {
342  Q_D(DeviceInfoMessage);
343  d->softwareVersion = softwareVersion;
344 }
345 /*!
346  * Sets the \c hardwareVersion field to \a hardwareVersion.
347  *
348  * \param hardwareVersion The field value to set.
349  */
350 void DeviceInfoMessage::setHardwareVersion(const quint8 hardwareVersion)
351 {
352  Q_D(DeviceInfoMessage);
353  d->hardwareVersion = hardwareVersion;
354 }
355 /*!
356  * Sets the \c cumOperatingTime field to \a cumOperatingTime.
357  *
358  * \param cumOperatingTime The field value to set.
359  */
360 void DeviceInfoMessage::setCumOperatingTime(const quint32 cumOperatingTime)
361 {
362  Q_D(DeviceInfoMessage);
363  d->cumOperatingTime = cumOperatingTime;
364 }
365 /*!
366  * Sets the \c batteryVoltage field to \a batteryVoltage.
367  *
368  * \param batteryVoltage The field value to set.
369  */
370 void DeviceInfoMessage::setBatteryVoltage(const quint16 batteryVoltage)
371 {
372  Q_D(DeviceInfoMessage);
373  d->batteryVoltage = batteryVoltage;
374 }
375 /*!
376  * Sets the \c batteryStatus field to \a batteryStatus.
377  *
378  * \param batteryStatus The field value to set.
379  */
381 {
382  Q_D(DeviceInfoMessage);
383  d->batteryStatus = batteryStatus;
384 }
385 /*!
386  * Sets the \c sensorPosition field to \a sensorPosition.
387  *
388  * \param sensorPosition The field value to set.
389  */
391 {
392  Q_D(DeviceInfoMessage);
393  d->sensorPosition = sensorPosition;
394 }
395 /*!
396  * Sets the \c descriptor field to \a descriptor.
397  *
398  * \param descriptor The field value to set.
399  */
400 void DeviceInfoMessage::setDescriptor(const QString descriptor)
401 {
402  Q_D(DeviceInfoMessage);
403  d->descriptor = descriptor;
404 }
405 /*!
406  * Sets the \c antTransmissionType field to \a antTransmissionType.
407  *
408  * \param antTransmissionType The field value to set.
409  */
410 void DeviceInfoMessage::setAntTransmissionType(const quint8z antTransmissionType)
411 {
412  Q_D(DeviceInfoMessage);
413  d->antTransmissionType = antTransmissionType;
414 }
415 /*!
416  * Sets the \c antDeviceNumber field to \a antDeviceNumber.
417  *
418  * \param antDeviceNumber The field value to set.
419  */
421 {
422  Q_D(DeviceInfoMessage);
423  d->antDeviceNumber = antDeviceNumber;
424 }
425 /*!
426  * Sets the \c antNetwork field to \a antNetwork.
427  *
428  * \param antNetwork The field value to set.
429  */
431 {
432  Q_D(DeviceInfoMessage);
433  d->antNetwork = antNetwork;
434 }
435 /*!
436  * Sets the \c sourceType field to \a sourceType.
437  *
438  * \param sourceType The field value to set.
439  */
441 {
442  Q_D(DeviceInfoMessage);
443  d->sourceType = sourceType;
444 }
445 /*!
446  * Sets the \c productName field to \a productName.
447  *
448  * \param productName The field value to set.
449  */
450 void DeviceInfoMessage::setProductName(const QString productName)
451 {
452  Q_D(DeviceInfoMessage);
453  d->productName = productName;
454 }
455 
456 /// \cond internal
457 
458 /*!
459  * \internal
460  *
461  * \class DeviceInfoMessagePrivate
462  *
463  * The DeviceInfoMessagePrivate class provides private implementation for the DeviceInfoMessage.
464  *
465  * \sa DeviceInfoMessage
466  */
467 
468 /*!
469  * \internal
470  *
471  * Constructs a DeviceInfoMessagePrivate object with public implementation \a q.
472  *
473  * \param q Pointer to public implementaton.
474  */
475 DeviceInfoMessagePrivate::DeviceInfoMessagePrivate(DeviceInfoMessage * const q)
477  , timestamp(static_cast<DateTime>(-1))
478  , deviceIndex(static_cast<DeviceIndex>(-1))
479  , deviceType(0xFF)
480  , manufacturer(static_cast<Manufacturer>(-1))
481  , serialNumber(0)
482  , product(0xFFFF)
483  , softwareVersion(0xFFFF)
484  , hardwareVersion(0xFF)
485  , cumOperatingTime(0xFFFFFFFF)
486  , batteryVoltage(0xFFFF)
487  , batteryStatus(static_cast<BatteryStatus>(-1))
488  , sensorPosition(static_cast<BodyLocation>(-1))
489  , antTransmissionType(static_cast<quint8z>(-1))
490  , antDeviceNumber(0)
491  , antNetwork(static_cast<AntNetwork>(-1))
492  , sourceType(static_cast<SourceType>(-1))
493 {
494  globalMessageNumber = MesgNum::DeviceInfo;
495 }
496 
497 /*!
498  * \internal
499  *
500  * Destroys the DeviceInfoMessagePrivate object.
501  */
503 {
504 
505 }
506 
508  const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian)
509 {
510  switch (fieldId) {
511  case 253: // See Profile.xlsx::Messages:device_info.timestamp
512  if (!verify(data, baseType, 4, FitBaseType::Uint32, "device_info.timestamp")) return false;
513  this->timestamp = static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
514  break;
515  case 0: // See Profile.xlsx::Messages:device_info.deviceIndex
516  if (!verify(data, baseType, 1, FitBaseType::Uint8, "device_info.deviceIndex")) return false;
517  this->deviceIndex = static_cast<DeviceIndex>(data.at(0));
518  break;
519  case 1: // See Profile.xlsx::Messages:device_info.deviceType
520  if (!verify(data, baseType, 1, FitBaseType::Uint8, "device_info.deviceType")) return false;
521  this->deviceType = static_cast<quint8>(data.at(0));
522  break;
523  case 2: // See Profile.xlsx::Messages:device_info.manufacturer
524  if (!verify(data, baseType, 2, FitBaseType::Uint16, "device_info.manufacturer")) return false;
525  this->manufacturer = static_cast<Manufacturer>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
526  break;
527  case 3: // See Profile.xlsx::Messages:device_info.serialNumber
528  if (!verify(data, baseType, 4, FitBaseType::Uint32z, "device_info.serialNumber")) return false;
529  this->serialNumber = static_cast<quint32z>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
530  break;
531  case 4: // See Profile.xlsx::Messages:device_info.product
532  if (!verify(data, baseType, 2, FitBaseType::Uint16, "device_info.product")) return false;
533  this->product = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
534  break;
535  case 5: // See Profile.xlsx::Messages:device_info.softwareVersion
536  if (!verify(data, baseType, 2, FitBaseType::Uint16, "device_info.softwareVersion")) return false;
537  this->softwareVersion = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
538  break;
539  case 6: // See Profile.xlsx::Messages:device_info.hardwareVersion
540  if (!verify(data, baseType, 1, FitBaseType::Uint8, "device_info.hardwareVersion")) return false;
541  this->hardwareVersion = static_cast<quint8>(data.at(0));
542  break;
543  case 7: // See Profile.xlsx::Messages:device_info.cumOperatingTime
544  if (!verify(data, baseType, 4, FitBaseType::Uint32, "device_info.cumOperatingTime")) return false;
545  this->cumOperatingTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
546  break;
547  case 10: // See Profile.xlsx::Messages:device_info.batteryVoltage
548  if (!verify(data, baseType, 2, FitBaseType::Uint16, "device_info.batteryVoltage")) return false;
549  this->batteryVoltage = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
550  break;
551  case 11: // See Profile.xlsx::Messages:device_info.batteryStatus
552  if (!verify(data, baseType, 1, FitBaseType::Uint8, "device_info.batteryStatus")) return false;
553  this->batteryStatus = static_cast<BatteryStatus>(data.at(0));
554  break;
555  case 18: // See Profile.xlsx::Messages:device_info.sensorPosition
556  if (!verify(data, baseType, 1, FitBaseType::Enum, "device_info.sensorPosition")) return false;
557  this->sensorPosition = static_cast<BodyLocation>(data.at(0));
558  break;
559  case 19: // See Profile.xlsx::Messages:device_info.descriptor
560  if (!verify(data, baseType, 1, FitBaseType::String, "device_info.descriptor")) return false;
561  this->descriptor = QString::fromUtf8(data);
562  break;
563  case 20: // See Profile.xlsx::Messages:device_info.antTransmissionType
564  if (!verify(data, baseType, 1, FitBaseType::Uint8z, "device_info.antTransmissionType")) return false;
565  this->antTransmissionType = static_cast<quint8z>(data.at(0));
566  break;
567  case 21: // See Profile.xlsx::Messages:device_info.antDeviceNumber
568  if (!verify(data, baseType, 2, FitBaseType::Uint16z, "device_info.antDeviceNumber")) return false;
569  this->antDeviceNumber = static_cast<quint16z>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
570  break;
571  case 22: // See Profile.xlsx::Messages:device_info.antNetwork
572  if (!verify(data, baseType, 1, FitBaseType::Enum, "device_info.antNetwork")) return false;
573  this->antNetwork = static_cast<AntNetwork>(data.at(0));
574  break;
575  case 25: // See Profile.xlsx::Messages:device_info.sourceType
576  if (!verify(data, baseType, 1, FitBaseType::Enum, "device_info.sourceType")) return false;
577  this->sourceType = static_cast<SourceType>(data.at(0));
578  break;
579  case 27: // See Profile.xlsx::Messages:device_info.productName
580  if (!verify(data, baseType, 1, FitBaseType::String, "device_info.productName")) return false;
581  this->productName = QString::fromUtf8(data);
582  break;
583  default:
584  qWarning() << "ignoring unknown device_info message field number" << fieldId << bigEndian;
585  // Fall through to return true, as its still 'safe' to continue parsing data messages.
586  }
587  return true;
588 }
589 
590 /// \endcond
591 
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:78
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:77
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.
quint8 hardwareVersion
The DeviceInfoMessage FIT message's hardwareVersion field.
BatteryStatus batteryStatus
The DeviceInfoMessage FIT message's batteryStatus field.
AntNetwork antNetwork
The DeviceInfoMessage FIT message's antNetwork field.
DeviceIndex deviceIndex
The DeviceInfoMessage FIT message's deviceIndex field.
quint16z antDeviceNumber
The DeviceInfoMessage FIT message's antDeviceNumber field.
SourceType sourceType
The DeviceInfoMessage FIT message's sourceType field.
QString descriptor
The DeviceInfoMessage FIT message's descriptor field.
quint16 product
The DeviceInfoMessage FIT message's product field.
quint8z antTransmissionType
The DeviceInfoMessage FIT message's antTransmissionType field.
DateTime timestamp
The DeviceInfoMessage FIT message's timestamp field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint16 softwareVersion
The DeviceInfoMessage FIT message's softwareVersion field.
quint32 cumOperatingTime
The DeviceInfoMessage FIT message's cumOperatingTime field.
quint8 deviceType
The DeviceInfoMessage FIT message's deviceType field.
Manufacturer manufacturer
The DeviceInfoMessage FIT message's manufacturer field.
BodyLocation sensorPosition
The DeviceInfoMessage FIT message's sensorPosition field.
quint32z serialNumber
The DeviceInfoMessage FIT message's serialNumber field.
QString productName
The DeviceInfoMessage FIT message's productName field.
quint16 batteryVoltage
The DeviceInfoMessage FIT message's batteryVoltage field.
The DeviceInfoMessage class represents a FIT DeviceInfoMessage data message.
void setCumOperatingTime(const quint32 cumOperatingTime)
Sets the cumOperatingTime field to cumOperatingTime.
void setDescriptor(const QString descriptor)
Sets the descriptor field to descriptor.
DeviceIndex deviceIndex() const
Returns the DeviceInfoMessage data message's deviceIndex field's current value.
QString productName() const
Returns the DeviceInfoMessage data message's productName field's current value.
void setProductName(const QString productName)
Sets the productName field to productName.
BatteryStatus batteryStatus() const
Returns the DeviceInfoMessage data message's batteryStatus field's current value.
quint8z antTransmissionType() const
Returns the DeviceInfoMessage data message's antTransmissionType field's current value.
void setSensorPosition(const BodyLocation sensorPosition)
Sets the sensorPosition field to sensorPosition.
void setSourceType(const SourceType sourceType)
Sets the sourceType field to sourceType.
void setHardwareVersion(const quint8 hardwareVersion)
Sets the hardwareVersion field to hardwareVersion.
void setDeviceType(const quint8 deviceType)
Sets the deviceType field to deviceType.
void setAntDeviceNumber(const quint16z antDeviceNumber)
Sets the antDeviceNumber field to antDeviceNumber.
void setBatteryVoltage(const quint16 batteryVoltage)
Sets the batteryVoltage field to batteryVoltage.
quint16 softwareVersion() const
Returns the DeviceInfoMessage data message's softwareVersion field's current value.
quint16 batteryVoltage() const
Returns the DeviceInfoMessage data message's batteryVoltage field's current value.
void setDeviceIndex(const DeviceIndex deviceIndex)
Sets the deviceIndex field to deviceIndex.
void setProduct(const quint16 product)
Sets the product field to product.
void setBatteryStatus(const BatteryStatus batteryStatus)
Sets the batteryStatus field to batteryStatus.
DeviceInfoMessage()
Constructs a DeviceInfoMessage object.
void setSoftwareVersion(const quint16 softwareVersion)
Sets the softwareVersion field to softwareVersion.
DateTime timestamp() const
Returns the DeviceInfoMessage data message's timestamp field's current value.
void setManufacturer(const Manufacturer manufacturer)
Sets the manufacturer field to manufacturer.
AntNetwork antNetwork() const
Returns the DeviceInfoMessage data message's antNetwork field's current value.
void setSerialNumber(const quint32z serialNumber)
Sets the serialNumber field to serialNumber.
quint16 product() const
Returns the DeviceInfoMessage data message's product field's current value.
Manufacturer manufacturer() const
Returns the DeviceInfoMessage data message's manufacturer field's current value.
void setTimestamp(const DateTime timestamp)
Sets the timestamp field to timestamp.
SourceType sourceType() const
Returns the DeviceInfoMessage data message's sourceType field's current value.
BodyLocation sensorPosition() const
Returns the DeviceInfoMessage data message's sensorPosition field's current value.
quint32z serialNumber() const
Returns the DeviceInfoMessage data message's serialNumber field's current value.
void setAntNetwork(const AntNetwork antNetwork)
Sets the antNetwork field to antNetwork.
quint8 hardwareVersion() const
Returns the DeviceInfoMessage data message's hardwareVersion field's current value.
quint8 deviceType() const
Returns the DeviceInfoMessage data message's deviceType field's current value.
quint16z antDeviceNumber() const
Returns the DeviceInfoMessage data message's antDeviceNumber field's current value.
void setAntTransmissionType(const quint8z antTransmissionType)
Sets the antTransmissionType field to antTransmissionType.
QString descriptor() const
Returns the DeviceInfoMessage data message's descriptor field's current value.
quint32 cumOperatingTime() const
Returns the DeviceInfoMessage data message's cumOperatingTime field's current value.
Declares the DeviceInfoMessage class.
Declares the DeviceInfoMessagePrivate class.
SourceType
Garmin FIT SourceType type.
Definition: types.h:2789
DeviceIndex
Garmin FIT DeviceIndex type.
Definition: types.h:278
BodyLocation
Garmin FIT BodyLocation type.
Definition: types.h:2671
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
AntNetwork
Garmin FIT AntNetwork type.
Definition: types.h:2090
quint16 quint16z
16-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:46
Manufacturer
Garmin FIT Manufacturer type.
Definition: types.h:1484
QTFIT_BEGIN_NAMESPACE typedef quint8 quint8z
8-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:45
BatteryStatus
Garmin FIT BatteryStatus type.
Definition: types.h:2132
quint32 quint32z
32-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:47
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237