message_layer.h 899 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. $License:
  3. Copyright (C) 2011-2012 InvenSense Corporation, All Rights Reserved.
  4. See included License.txt for License information.
  5. $
  6. */
  7. #ifndef INV_MESSAGE_LAYER_H__
  8. #define INV_MESSAGE_LAYER_H__
  9. #include "mltypes.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /* Level 0 Type Messages */
  14. /** A motion event has occured */
  15. #define INV_MSG_MOTION_EVENT (0x01)
  16. /** A no motion event has occured */
  17. #define INV_MSG_NO_MOTION_EVENT (0x02)
  18. /** A setting of the gyro bias has occured */
  19. #define INV_MSG_NEW_GB_EVENT (0x04)
  20. /** A setting of the compass bias has occured */
  21. #define INV_MSG_NEW_CB_EVENT (0x08)
  22. /** A setting of the accel bias has occured */
  23. #define INV_MSG_NEW_AB_EVENT (0x10)
  24. void inv_set_message(long set, long clear, int level);
  25. long inv_get_message_level_0(int clear);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif // INV_MESSAGE_LAYER_H__