summaryrefslogtreecommitdiffstats
path: root/libsensors_iio/software/core/mllite/message_layer.h
blob: e6d90d5357f4a411b35dcf2a6d093125531932e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 $License:
    Copyright (C) 2011-2012 InvenSense Corporation, All Rights Reserved.
    See included License.txt for License information.
 $
 */
#ifndef INV_MESSAGE_LAYER_H__
#define INV_MESSAGE_LAYER_H__

#include "mltypes.h"

#ifdef __cplusplus
extern "C" {
#endif

    /* Level 0 Type Messages */
    /** A motion event has occured */
#define INV_MSG_MOTION_EVENT    (0x01)
    /** A no motion event has occured */
#define INV_MSG_NO_MOTION_EVENT (0x02)
    /** A setting of the gyro bias has occured */
#define INV_MSG_NEW_GB_EVENT    (0x04)
    /** A setting of the compass bias has occured */
#define INV_MSG_NEW_CB_EVENT    (0x08)
    /** A setting of the accel bias has occured */
#define INV_MSG_NEW_AB_EVENT    (0x10)

    void inv_set_message(long set, long clear, int level);
    long inv_get_message_level_0(int clear);

#ifdef __cplusplus
}
#endif

#endif  // INV_MESSAGE_LAYER_H__