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
10#include "mltypes.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16    /* Level 0 Type Messages */
17    /** A motion event has occured */
18#define INV_MSG_MOTION_EVENT    (0x01)
19    /** A no motion event has occured */
20#define INV_MSG_NO_MOTION_EVENT (0x02)
21    /** A setting of the gyro bias has occured */
22#define INV_MSG_NEW_GB_EVENT    (0x04)
23    /** A setting of the compass bias has occured */
24#define INV_MSG_NEW_CB_EVENT    (0x08)
25    /** A setting of the accel bias has occured */
26#define INV_MSG_NEW_AB_EVENT    (0x10)
27
28    void inv_set_message(long set, long clear, int level);
29    long inv_get_message_level_0(int clear);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif  // INV_MESSAGE_LAYER_H__
36