bc.h 920 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 BC_H
  9. #define BC_H
  10. #define BC_REV 1.2 // Device Profile Rev.
  11. #define BC_DEVICE_TYPE ((UCHAR) 122)
  12. #define BC_TX_TYPE ((UCHAR) 1)
  13. #define BC_MSG_PERIOD ((USHORT) 8102) // ~4.04 Hz
  14. #define BC_HALF_PERIOD ((USHORT) 16204) // ~2.02 Hz
  15. #define BC_QUARTER_PERIOD ((USHORT) 32408) // ~1.01 Hz
  16. #define BC_RESERVED ((UCHAR) 0xFF)
  17. #define BC_PAGE0 ((UCHAR) 0)
  18. #define BC_PAGE1 ((UCHAR) 1)
  19. #define BC_PAGE2 ((UCHAR) 2)
  20. #define BC_PAGE3 ((UCHAR) 3)
  21. #define BC_TOGGLE_MASK ((UCHAR) 0x80)
  22. #define BC_BACKGROUND_INTERVAL 65
  23. typedef enum
  24. {
  25. BC_STD0_PAGE = 0,
  26. BC_STD1_PAGE = 1,
  27. BC_INIT_PAGE = 2,
  28. BC_EXT_PAGE = 3
  29. } BCStatePage;
  30. #endif