SdmProfileMesg.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. #region Copyright
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // The following FIT Protocol software provided may be used with FIT protocol
  4. // devices only and remains the copyrighted property of Dynastream Innovations Inc.
  5. // The software is being provided on an "as-is" basis and as an accommodation,
  6. // and therefore all warranties, representations, or guarantees of any kind
  7. // (whether express, implied or statutory) including, without limitation,
  8. // warranties of merchantability, non-infringement, or fitness for a particular
  9. // purpose, are specifically disclaimed.
  10. //
  11. // Copyright 2016 Dynastream Innovations Inc.
  12. ////////////////////////////////////////////////////////////////////////////////
  13. // ****WARNING**** This file is auto-generated! Do NOT edit this file.
  14. // Profile Version = 16.60Release
  15. // Tag = production-akw-16.60.00-0-g5d3d436
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #endregion
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Diagnostics;
  21. using System.Text;
  22. using System.IO;
  23. namespace Dynastream.Fit
  24. {
  25. /// <summary>
  26. /// Implements the SdmProfile profile message.
  27. /// </summary>
  28. public class SdmProfileMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public SdmProfileMesg() : base(Profile.GetMesg(MesgNum.SdmProfile))
  34. {
  35. }
  36. public SdmProfileMesg(Mesg mesg) : base(mesg)
  37. {
  38. }
  39. #endregion // Constructors
  40. #region Methods
  41. ///<summary>
  42. /// Retrieves the MessageIndex field</summary>
  43. /// <returns>Returns nullable ushort representing the MessageIndex field</returns>
  44. public ushort? GetMessageIndex()
  45. {
  46. return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
  47. }
  48. /// <summary>
  49. /// Set MessageIndex field</summary>
  50. /// <param name="messageIndex_">Nullable field value to be set</param>
  51. public void SetMessageIndex(ushort? messageIndex_)
  52. {
  53. SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
  54. }
  55. ///<summary>
  56. /// Retrieves the Enabled field</summary>
  57. /// <returns>Returns nullable Bool enum representing the Enabled field</returns>
  58. public Bool? GetEnabled()
  59. {
  60. object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
  61. Bool? value = obj == null ? (Bool?)null : (Bool)obj;
  62. return value;
  63. }
  64. /// <summary>
  65. /// Set Enabled field</summary>
  66. /// <param name="enabled_">Nullable field value to be set</param>
  67. public void SetEnabled(Bool? enabled_)
  68. {
  69. SetFieldValue(0, 0, enabled_, Fit.SubfieldIndexMainField);
  70. }
  71. ///<summary>
  72. /// Retrieves the SdmAntId field</summary>
  73. /// <returns>Returns nullable ushort representing the SdmAntId field</returns>
  74. public ushort? GetSdmAntId()
  75. {
  76. return (ushort?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
  77. }
  78. /// <summary>
  79. /// Set SdmAntId field</summary>
  80. /// <param name="sdmAntId_">Nullable field value to be set</param>
  81. public void SetSdmAntId(ushort? sdmAntId_)
  82. {
  83. SetFieldValue(1, 0, sdmAntId_, Fit.SubfieldIndexMainField);
  84. }
  85. ///<summary>
  86. /// Retrieves the SdmCalFactor field
  87. /// Units: %</summary>
  88. /// <returns>Returns nullable float representing the SdmCalFactor field</returns>
  89. public float? GetSdmCalFactor()
  90. {
  91. return (float?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
  92. }
  93. /// <summary>
  94. /// Set SdmCalFactor field
  95. /// Units: %</summary>
  96. /// <param name="sdmCalFactor_">Nullable field value to be set</param>
  97. public void SetSdmCalFactor(float? sdmCalFactor_)
  98. {
  99. SetFieldValue(2, 0, sdmCalFactor_, Fit.SubfieldIndexMainField);
  100. }
  101. ///<summary>
  102. /// Retrieves the Odometer field
  103. /// Units: m</summary>
  104. /// <returns>Returns nullable float representing the Odometer field</returns>
  105. public float? GetOdometer()
  106. {
  107. return (float?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
  108. }
  109. /// <summary>
  110. /// Set Odometer field
  111. /// Units: m</summary>
  112. /// <param name="odometer_">Nullable field value to be set</param>
  113. public void SetOdometer(float? odometer_)
  114. {
  115. SetFieldValue(3, 0, odometer_, Fit.SubfieldIndexMainField);
  116. }
  117. ///<summary>
  118. /// Retrieves the SpeedSource field
  119. /// Comment: Use footpod for speed source instead of GPS</summary>
  120. /// <returns>Returns nullable Bool enum representing the SpeedSource field</returns>
  121. public Bool? GetSpeedSource()
  122. {
  123. object obj = GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
  124. Bool? value = obj == null ? (Bool?)null : (Bool)obj;
  125. return value;
  126. }
  127. /// <summary>
  128. /// Set SpeedSource field
  129. /// Comment: Use footpod for speed source instead of GPS</summary>
  130. /// <param name="speedSource_">Nullable field value to be set</param>
  131. public void SetSpeedSource(Bool? speedSource_)
  132. {
  133. SetFieldValue(4, 0, speedSource_, Fit.SubfieldIndexMainField);
  134. }
  135. ///<summary>
  136. /// Retrieves the SdmAntIdTransType field</summary>
  137. /// <returns>Returns nullable byte representing the SdmAntIdTransType field</returns>
  138. public byte? GetSdmAntIdTransType()
  139. {
  140. return (byte?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
  141. }
  142. /// <summary>
  143. /// Set SdmAntIdTransType field</summary>
  144. /// <param name="sdmAntIdTransType_">Nullable field value to be set</param>
  145. public void SetSdmAntIdTransType(byte? sdmAntIdTransType_)
  146. {
  147. SetFieldValue(5, 0, sdmAntIdTransType_, Fit.SubfieldIndexMainField);
  148. }
  149. ///<summary>
  150. /// Retrieves the OdometerRollover field
  151. /// Comment: Rollover counter that can be used to extend the odometer</summary>
  152. /// <returns>Returns nullable byte representing the OdometerRollover field</returns>
  153. public byte? GetOdometerRollover()
  154. {
  155. return (byte?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
  156. }
  157. /// <summary>
  158. /// Set OdometerRollover field
  159. /// Comment: Rollover counter that can be used to extend the odometer</summary>
  160. /// <param name="odometerRollover_">Nullable field value to be set</param>
  161. public void SetOdometerRollover(byte? odometerRollover_)
  162. {
  163. SetFieldValue(7, 0, odometerRollover_, Fit.SubfieldIndexMainField);
  164. }
  165. #endregion // Methods
  166. } // Class
  167. } // namespace