#region Copyright //////////////////////////////////////////////////////////////////////////////// // The following FIT Protocol software provided may be used with FIT protocol // devices only and remains the copyrighted property of Dynastream Innovations Inc. // The software is being provided on an "as-is" basis and as an accommodation, // and therefore all warranties, representations, or guarantees of any kind // (whether express, implied or statutory) including, without limitation, // warranties of merchantability, non-infringement, or fitness for a particular // purpose, are specifically disclaimed. // // Copyright 2016 Dynastream Innovations Inc. //////////////////////////////////////////////////////////////////////////////// // ****WARNING**** This file is auto-generated! Do NOT edit this file. // Profile Version = 16.60Release // Tag = production-akw-16.60.00-0-g5d3d436 //////////////////////////////////////////////////////////////////////////////// #endregion using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.IO; namespace Dynastream.Fit { /// /// Implements the AntTx profile message. /// public class AntTxMesg : Mesg { #region Fields #endregion #region Constructors public AntTxMesg() : base(Profile.GetMesg(MesgNum.AntTx)) { } public AntTxMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the Timestamp field /// Units: s /// Returns DateTime representing the Timestamp field public DateTime GetTimestamp() { return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField)); } /// /// Set Timestamp field /// Units: s /// Nullable field value to be set public void SetTimestamp(DateTime timestamp_) { SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the FractionalTimestamp field /// Units: s /// Returns nullable float representing the FractionalTimestamp field public float? GetFractionalTimestamp() { return (float?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField); } /// /// Set FractionalTimestamp field /// Units: s /// Nullable field value to be set public void SetFractionalTimestamp(float? fractionalTimestamp_) { SetFieldValue(0, 0, fractionalTimestamp_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MesgId field /// Returns nullable byte representing the MesgId field public byte? GetMesgId() { return (byte?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField); } /// /// Set MesgId field /// Nullable field value to be set public void SetMesgId(byte? mesgId_) { SetFieldValue(1, 0, mesgId_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field MesgData public int GetNumMesgData() { return GetNumFieldValues(2, Fit.SubfieldIndexMainField); } /// /// Retrieves the MesgData field /// 0 based index of MesgData element to retrieve /// Returns nullable byte representing the MesgData field public byte? GetMesgData(int index) { return (byte?)GetFieldValue(2, index, Fit.SubfieldIndexMainField); } /// /// Set MesgData field /// 0 based index of mesg_data /// Nullable field value to be set public void SetMesgData(int index, byte? mesgData_) { SetFieldValue(2, index, mesgData_, Fit.SubfieldIndexMainField); } /// /// Retrieves the ChannelNumber field /// Returns nullable byte representing the ChannelNumber field public byte? GetChannelNumber() { return (byte?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField); } /// /// Set ChannelNumber field /// Nullable field value to be set public void SetChannelNumber(byte? channelNumber_) { SetFieldValue(3, 0, channelNumber_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field Data public int GetNumData() { return GetNumFieldValues(4, Fit.SubfieldIndexMainField); } /// /// Retrieves the Data field /// 0 based index of Data element to retrieve /// Returns nullable byte representing the Data field public byte? GetData(int index) { return (byte?)GetFieldValue(4, index, Fit.SubfieldIndexMainField); } /// /// Set Data field /// 0 based index of data /// Nullable field value to be set public void SetData(int index, byte? data_) { SetFieldValue(4, index, data_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace