2
0

hrm.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. 2012
  6. All rights reserved.
  7. */
  8. #ifndef HRM_H
  9. #define HRM_H
  10. #define HRM_REV 1.13 // Device Profile Rev.
  11. #define HRM_DEVICE_TYPE ((UCHAR) 120)
  12. #define HRM_TX_TYPE ((UCHAR) 1)
  13. #define HRM_MSG_PERIOD ((USHORT) 8070) // ~4.06 Hz
  14. #define HRM_HALF_PERIOD ((USHORT 16140) // ~2.03 Hz (only supported on receiver)
  15. #define HRM_QUARTER_PERIOD ((USHORT) 32280) // ~1.02 Hz (only supported on receiver)
  16. #define HRM_RESERVED ((UCHAR) 0xFF)
  17. #define HRM_INVALID_BPM ((UCHAR) 0)
  18. #define HRM_PAGE0 ((UCHAR) 0)
  19. #define HRM_PAGE1 ((UCHAR) 1)
  20. #define HRM_PAGE2 ((UCHAR) 2)
  21. #define HRM_PAGE3 ((UCHAR) 3)
  22. #define HRM_PAGE4 ((UCHAR) 4)
  23. #define HRM_TOGGLE_MASK ((UCHAR) 0x80)
  24. #define HRM_BACKGROUND_INTERVAL 65
  25. typedef enum
  26. {
  27. HRM_STD0_PAGE = 0,
  28. HRM_STD1_PAGE = 1,
  29. HRM_INIT_PAGE = 2,
  30. HRM_EXT_PAGE = 3
  31. } HRMStatePage;
  32. #endif