ANT_ChannelID.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except
  4. in compliance with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2016
  6. All rights reserved.
  7. */
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. namespace ANT_Managed_Library
  13. {
  14. /// <summary>
  15. /// Structure containing the data composing a channel ID
  16. /// </summary>
  17. public struct ANT_ChannelID
  18. {
  19. /// <summary>
  20. /// Device Number
  21. /// </summary>
  22. public UInt16 deviceNumber;
  23. /// <summary>
  24. /// Pairing Bit
  25. /// </summary>
  26. public bool pairingBit;
  27. /// <summary>
  28. /// Device Type ID
  29. /// </summary>
  30. public byte deviceTypeID;
  31. /// <summary>
  32. /// Transmission Type ID
  33. /// </summary>
  34. public byte transmissionTypeID;
  35. /// <summary>
  36. /// Initializes a new Channel ID Object
  37. /// </summary>
  38. /// <param name="deviceNumber">Device Number</param>
  39. /// <param name="deviceType">Device Type ID</param>
  40. /// <param name="transmissionType">Transmission Type ID</param>
  41. public ANT_ChannelID(ushort deviceNumber, byte deviceType, byte transmissionType)
  42. {
  43. this.deviceNumber = deviceNumber;
  44. this.deviceTypeID = deviceType;
  45. this.transmissionTypeID = transmissionType;
  46. this.pairingBit = false;
  47. }
  48. }
  49. }