QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
OneDSensorCalibrationMessage Class Reference

The OneDSensorCalibrationMessage class represents a FIT OneDSensorCalibrationMessage data message. More...

Inheritance diagram for OneDSensorCalibrationMessage:
[legend]
Collaboration diagram for OneDSensorCalibrationMessage:
[legend]

Public Member Functions

 OneDSensorCalibrationMessage ()
 Constructs a OneDSensorCalibrationMessage object. More...
 
DateTime timestamp () const
 Returns the OneDSensorCalibrationMessage data message's timestamp field's current value. More...
 
SensorType sensorType () const
 Returns the OneDSensorCalibrationMessage data message's sensorType field's current value. More...
 
quint32 calibrationFactor () const
 Returns the OneDSensorCalibrationMessage data message's calibrationFactor field's current value. More...
 
quint32 calibrationDivisor () const
 Returns the OneDSensorCalibrationMessage data message's calibrationDivisor field's current value. More...
 
quint32 levelShift () const
 Returns the OneDSensorCalibrationMessage data message's levelShift field's current value. More...
 
qint32 offsetCal () const
 Returns the OneDSensorCalibrationMessage data message's offsetCal field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setSensorType (const SensorType sensorType)
 Sets the sensorType field to sensorType. More...
 
void setCalibrationFactor (const quint32 calibrationFactor)
 Sets the calibrationFactor field to calibrationFactor. More...
 
void setCalibrationDivisor (const quint32 calibrationDivisor)
 Sets the calibrationDivisor field to calibrationDivisor. More...
 
void setLevelShift (const quint32 levelShift)
 Sets the levelShift field to levelShift. More...
 
void setOffsetCal (const qint32 offsetCal)
 Sets the offsetCal field to offsetCal. More...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 

Detailed Description

The OneDSensorCalibrationMessage class represents a FIT OneDSensorCalibrationMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ OneDSensorCalibrationMessage()

OneDSensorCalibrationMessage::OneDSensorCalibrationMessage ( )

Constructs a OneDSensorCalibrationMessage 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.

Member Function Documentation

◆ calibrationDivisor()

quint32 OneDSensorCalibrationMessage::calibrationDivisor ( ) const

Returns the OneDSensorCalibrationMessage data message's calibrationDivisor field's current value.

Calibration factor divisor

Returns
the calibrationDivisor field value.
Here is the caller graph for this function:

◆ calibrationFactor()

quint32 OneDSensorCalibrationMessage::calibrationFactor ( ) const

Returns the OneDSensorCalibrationMessage data message's calibrationFactor field's current value.

Calibration factor used to convert from raw ADC value to degrees, g, etc.

Returns
the calibrationFactor field value.
Here is the caller graph for this function:

◆ levelShift()

quint32 OneDSensorCalibrationMessage::levelShift ( ) const

Returns the OneDSensorCalibrationMessage data message's levelShift field's current value.

Level shift value used to shift the ADC value back into range

Returns
the levelShift field value.
Here is the caller graph for this function:

◆ offsetCal()

qint32 OneDSensorCalibrationMessage::offsetCal ( ) const

Returns the OneDSensorCalibrationMessage data message's offsetCal field's current value.

Internal Calibration factor

Returns
the offsetCal field value.
Here is the caller graph for this function:

◆ sensorType()

SensorType OneDSensorCalibrationMessage::sensorType ( ) const

Returns the OneDSensorCalibrationMessage data message's sensorType field's current value.

Indicates which sensor the calibration is for

Returns
the sensorType field value.
Here is the caller graph for this function:

◆ setCalibrationDivisor()

void OneDSensorCalibrationMessage::setCalibrationDivisor ( const quint32  calibrationDivisor)

Sets the calibrationDivisor field to calibrationDivisor.

Parameters
calibrationDivisorThe field value to set.
Here is the call graph for this function:

◆ setCalibrationFactor()

void OneDSensorCalibrationMessage::setCalibrationFactor ( const quint32  calibrationFactor)

Sets the calibrationFactor field to calibrationFactor.

Parameters
calibrationFactorThe field value to set.
Here is the call graph for this function:

◆ setLevelShift()

void OneDSensorCalibrationMessage::setLevelShift ( const quint32  levelShift)

Sets the levelShift field to levelShift.

Parameters
levelShiftThe field value to set.
Here is the call graph for this function:

◆ setOffsetCal()

void OneDSensorCalibrationMessage::setOffsetCal ( const qint32  offsetCal)

Sets the offsetCal field to offsetCal.

Parameters
offsetCalThe field value to set.
Here is the call graph for this function:

◆ setSensorType()

void OneDSensorCalibrationMessage::setSensorType ( const SensorType  sensorType)

Sets the sensorType field to sensorType.

Parameters
sensorTypeThe field value to set.
Here is the call graph for this function:

◆ setTimestamp()

void OneDSensorCalibrationMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.
Here is the call graph for this function:

◆ timestamp()

DateTime OneDSensorCalibrationMessage::timestamp ( ) const

Returns the OneDSensorCalibrationMessage data message's timestamp field's current value.

Whole second part of the timestamp

Returns
the timestamp field value.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: