bs.h 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 BS_H
  9. #define BS_H
  10. #define BS_REV 1.2 // Device Profile Rev.
  11. #define BS_DEVICE_TYPE ((UCHAR) 123)
  12. #define BS_TX_TYPE ((UCHAR) 1)
  13. #define BS_MSG_PERIOD ((USHORT) 8118) // ~4.04 Hz
  14. #define BS_HALF_PERIOD ((USHORT) 16236) // ~2.02 Hz (supported only on receivers)
  15. #define BS_QUARTER_PERIOD ((USHORT) 32472) // ~1.01 Hz (supported only on receivers)
  16. #define BS_RESERVED ((UCHAR) 0xFF)
  17. #define BS_PAGE0 ((UCHAR) 0)
  18. #define BS_PAGE1 ((UCHAR) 1)
  19. #define BS_PAGE2 ((UCHAR) 2)
  20. #define BS_PAGE3 ((UCHAR) 3)
  21. #define BS_TOGGLE_MASK ((UCHAR) 0x80)
  22. #define BS_BACKGROUND_INTERVAL 65
  23. typedef enum
  24. {
  25. BS_STD0_PAGE = 0,
  26. BS_STD1_PAGE = 1,
  27. BS_INIT_PAGE = 2,
  28. BS_EXT_PAGE = 3
  29. } BSStatePage;
  30. #endif