ANT_ChannelStatus.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 in compliance
  4. with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2013
  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. /// Contains the information returned by a channel status request message
  16. /// </summary>
  17. public struct ANT_ChannelStatus
  18. {
  19. /// <summary>
  20. /// Bits 0-1 of the status response
  21. /// </summary>
  22. public ANT_ReferenceLibrary.BasicChannelStatusCode BasicStatus;
  23. /// <summary>
  24. /// Bits 2-3 of the status response. Invalid on AP1.
  25. /// </summary>
  26. public byte networkNumber;
  27. /// <summary>
  28. /// Bits 4-7 of the status response. Not a valid channelType on AP1.
  29. /// </summary>
  30. public ANT_ReferenceLibrary.ChannelType ChannelType;
  31. /// <summary>
  32. /// Creates and fills the ChannelStatus
  33. /// </summary>
  34. /// <param name="BasicStatus"></param>
  35. /// <param name="networkNumber"></param>
  36. /// <param name="ChannelType"></param>
  37. public ANT_ChannelStatus(ANT_ReferenceLibrary.BasicChannelStatusCode BasicStatus, byte networkNumber, ANT_ReferenceLibrary.ChannelType ChannelType)
  38. {
  39. this.BasicStatus = BasicStatus;
  40. this.networkNumber = networkNumber;
  41. this.ChannelType = ChannelType;
  42. }
  43. }
  44. }