123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- 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. 2013
- 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;
- }
- }
- }
|