summaryrefslogtreecommitdiff
path: root/6515/libsensors_iio/software/simple_apps/common/testsupport.h
blob: 0cab781c3b5db8abfcf4072a0a08300204d76891 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 $License:
    Copyright (C) 2011 InvenSense Corporation, All Rights Reserved.
 $
 */

/*******************************************************************************
 *
 * $Id: testsupport.h 5629 2011-06-11 03:13:08Z mcaramello $
 *
 ******************************************************************************/
 
#ifndef _TESTSUPPORT_H_
#define _TESTSUPPORT_H_

#ifdef __cplusplus
extern "C" {
#endif

/*---------------------------
    Includes
---------------------------*/

#include "mltypes.h"
#include "mlerrorcode.h"

#include "mlsl.h"
#include "log.h"

/*---------------------------
    Defines
---------------------------*/

/*---------------------------
    p-Types
---------------------------*/
#ifdef TESTING_SUPPORT
    void            SetHandle           (void *sl_handle);
    void            CommandPrompt       (void *sl_handle);
    void            RegisterMap         (void *sl_handle);
    void            DataLogger          (const unsigned long flag);
    void            DataLoggerSelector  (const unsigned long flag);
    void            DataLoggerCb        (void);
    unsigned short  KeyboardHandler     (unsigned char key);
    char*           CompassStateName    (char* out, int state);
#else
#define DataLoggerSelector(x)           //
#define DataLogger(x)                   //
#define DataLoggerCb                    NULL
#endif

#ifdef __cplusplus
}
#endif

#endif // _TESTSUPPORT_H_