-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharduino_mpu9250_log.h
58 lines (47 loc) · 1.55 KB
/
arduino_mpu9250_log.h
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
58
/******************************************************************************
arduino_mpu9250_log.h - MPU-9250 Digital Motion Processor Arduino Library
Jim Lindblom @ SparkFun Electronics
original creation date: November 23, 2016
https://github.com/sparkfun/SparkFun_MPU9250_DMP_Arduino_Library
This library implements motion processing functions of Invensense's MPU-9250.
It is based on their Emedded MotionDriver 6.12 library.
https://www.invensense.com/developers/software-downloads/
Development environment specifics:
Arduino IDE 1.6.12
SparkFun 9DoF Razor IMU M0
Supported Platforms:
- ATSAMD21 (Arduino Zero, SparkFun SAMD21 Breakouts)
******************************************************************************/
#ifndef _ARDUINO_MPU9250_LOG_H_
#define _ARDUINO_MPU9250_LOG_H_
#define MPL_LOG_UNKNOWN (0)
#define MPL_LOG_DEFAULT (1)
#define MPL_LOG_VERBOSE (2)
#define MPL_LOG_DEBUG (3)
#define MPL_LOG_INFO (4)
#define MPL_LOG_WARN (5)
#define MPL_LOG_ERROR (6)
#define MPL_LOG_SILENT (8)
typedef enum {
PACKET_DATA_ACCEL = 0,
PACKET_DATA_GYRO,
PACKET_DATA_COMPASS,
PACKET_DATA_QUAT,
PACKET_DATA_EULER,
PACKET_DATA_ROT,
PACKET_DATA_HEADING,
PACKET_DATA_LINEAR_ACCEL,
NUM_DATA_PACKETS
} eMPL_packet_e;
#if defined(__cplusplus)
extern "C" {
#endif
#include <stdarg.h>
void logString(char * string);
int _MLPrintLog (int priority, const char* tag, const char* fmt, ...);
void eMPL_send_quat(long *quat);
void eMPL_send_data(unsigned char type, long *data);
#if defined(__cplusplus)
}
#endif
#endif // _ARDUINO_MPU9250_LOG_H_