12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- This software is subject to the license described in the License.txt file
- included with this software distribution. You may not use this file except
- in compliance with this license.
- Copyright (c) Dynastream Innovations Inc. 2016
- All rights reserved.
- */
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ANT_Managed_Library
- {
- /// <summary>
- /// Structure containing the data composing a channel ID
- /// </summary>
- public struct ANT_ChannelID
- {
- /// <summary>
- /// Device Number
- /// </summary>
- public UInt16 deviceNumber;
- /// <summary>
- /// Pairing Bit
- /// </summary>
- public bool pairingBit;
- /// <summary>
- /// Device Type ID
- /// </summary>
- public byte deviceTypeID;
- /// <summary>
- /// Transmission Type ID
- /// </summary>
- public byte transmissionTypeID;
- /// <summary>
- /// Initializes a new Channel ID Object
- /// </summary>
- /// <param name="deviceNumber">Device Number</param>
- /// <param name="deviceType">Device Type ID</param>
- /// <param name="transmissionType">Transmission Type ID</param>
- public ANT_ChannelID(ushort deviceNumber, byte deviceType, byte transmissionType)
- {
- this.deviceNumber = deviceNumber;
- this.deviceTypeID = deviceType;
- this.transmissionTypeID = transmissionType;
- this.pairingBit = false;
- }
- }
- }
|