MBot Software Library
v1.0
An API documentation to mbot_firmware repository
mbot_firmware
mbot
include
mbot
imu
bhy_uc_driver_constants.h
Go to the documentation of this file.
1
51
#ifndef BHY_UC_DRIVER_CONSTANTS_H_
52
#define BHY_UC_DRIVER_CONSTANTS_H_
53
54
#include "
bhy_uc_driver_config.h
"
55
56
/****************************************************************************/
57
/* Constants definitions */
58
/****************************************************************************/
59
60
/* definition of all the known IDs. User can add their own IDs to the */
61
/* bhy_parse_next_fifo_packet function. follow section 15 table 28 of the */
62
/* BHI160 datasheet. */
63
#define VS_ID_PADDING 0
64
#define VS_ID_ACCELEROMETER 1
65
#define VS_ID_MAGNETOMETER 2
66
#define VS_ID_ORIENTATION 3
67
#define VS_ID_GYROSCOPE 4
68
#define VS_ID_LIGHT 5
69
#define VS_ID_BAROMETER 6
70
#define VS_ID_TEMPERATURE 7
71
#define VS_ID_PROXIMITY 8
72
#define VS_ID_GRAVITY 9
73
#define VS_ID_LINEAR_ACCELERATION 10
74
#define VS_ID_ROTATION_VECTOR 11
75
#define VS_ID_HUMIDITY 12
76
#define VS_ID_AMBIENT_TEMPERATURE 13
77
#define VS_ID_UNCALIBRATED_MAGNETOMETER 14
78
#define VS_ID_GAME_ROTATION_VECTOR 15
79
#define VS_ID_UNCALIBRATED_GYROSCOPE 16
80
#define VS_ID_SIGNIFICANT_MOTION 17
81
#define VS_ID_STEP_DETECTOR 18
82
#define VS_ID_STEP_COUNTER 19
83
#define VS_ID_GEOMAGNETIC_ROTATION_VECTOR 20
84
#define VS_ID_HEART_RATE 21
85
#define VS_ID_TILT_DETECTOR 22
86
#define VS_ID_WAKE_GESTURE 23
87
#define VS_ID_GLANCE_GESTURE 24
88
#define VS_ID_PICKUP_GESTURE 25
89
#define VS_ID_CUS1 26
90
#define VS_ID_CUS2 27
91
#define VS_ID_CUS3 28
92
#define VS_ID_CUS4 29
93
#define VS_ID_CUS5 30
94
#define VS_ID_ACTIVITY 31
95
96
#define VS_ID_ACCELEROMETER_WAKEUP (VS_ID_ACCELEROMETER+32)
97
#define VS_ID_MAGNETOMETER_WAKEUP (VS_ID_MAGNETOMETER+32)
98
#define VS_ID_ORIENTATION_WAKEUP (VS_ID_ORIENTATION+32)
99
#define VS_ID_GYROSCOPE_WAKEUP (VS_ID_GYROSCOPE+32)
100
#define VS_ID_LIGHT_WAKEUP (VS_ID_LIGHT+32)
101
#define VS_ID_BAROMETER_WAKEUP (VS_ID_BAROMETER+32)
102
#define VS_ID_TEMPERATURE_WAKEUP (VS_ID_TEMPERATURE+32)
103
#define VS_ID_PROXIMITY_WAKEUP (VS_ID_PROXIMITY+32)
104
#define VS_ID_GRAVITY_WAKEUP (VS_ID_GRAVITY+32)
105
#define VS_ID_LINEAR_ACCELERATION_WAKEUP (VS_ID_LINEAR_ACCELERATION+32)
106
#define VS_ID_ROTATION_VECTOR_WAKEUP (VS_ID_ROTATION_VECTOR+32)
107
#define VS_ID_HUMIDITY_WAKEUP (VS_ID_HUMIDITY+32)
108
#define VS_ID_AMBIENT_TEMPERATURE_WAKEUP (VS_ID_AMBIENT_TEMPERATURE+32)
109
#define VS_ID_UNCALIBRATED_MAGNETOMETER_WAKEUP (VS_ID_UNCALIBRATED_MAGNETOMETER+32)
110
#define VS_ID_GAME_ROTATION_VECTOR_WAKEUP (VS_ID_GAME_ROTATION_VECTOR+32)
111
#define VS_ID_UNCALIBRATED_GYROSCOPE_WAKEUP (VS_ID_UNCALIBRATED_GYROSCOPE+32)
112
#define VS_ID_SIGNIFICANT_MOTION_WAKEUP (VS_ID_SIGNIFICANT_MOTION+32)
113
#define VS_ID_STEP_DETECTOR_WAKEUP (VS_ID_STEP_DETECTOR+32)
114
#define VS_ID_STEP_COUNTER_WAKEUP (VS_ID_STEP_COUNTER+32)
115
#define VS_ID_GEOMAGNETIC_ROTATION_VECTOR_WAKEUP (VS_ID_GEOMAGNETIC_ROTATION_VECTOR+32)
116
#define VS_ID_HEART_RATE_WAKEUP (VS_ID_HEART_RATE+32)
117
#define VS_ID_TILT_DETECTOR_WAKEUP (VS_ID_TILT_DETECTOR+32)
118
#define VS_ID_WAKE_GESTURE_WAKEUP (VS_ID_WAKE_GESTURE+32)
119
#define VS_ID_GLANCE_GESTURE_WAKEUP (VS_ID_GLANCE_GESTURE+32)
120
#define VS_ID_PICKUP_GESTURE_WAKEUP (VS_ID_PICKUP_GESTURE+32)
121
#define VS_ID_CUS1_WAKEUP (VS_ID_CUS1+32)
122
#define VS_ID_CUS2_WAKEUP (VS_ID_CUS2+32)
123
#define VS_ID_CUS3_WAKEUP (VS_ID_CUS3+32)
124
#define VS_ID_CUS4_WAKEUP (VS_ID_CUS4+32)
125
#define VS_ID_CUS5_WAKEUP (VS_ID_CUS5+32)
126
#define VS_ID_ACTIVITY_WAKEUP (VS_ID_ACTIVITY+32)
127
128
#define VS_ID_DEBUG 245
129
#define VS_ID_TIMESTAMP_LSW_WAKEUP 246
130
#define VS_ID_TIMESTAMP_MSW_WAKEUP 247
131
#define VS_ID_META_EVENT_WAKEUP 248
132
#define VS_ID_BSX_C 249
133
#define VS_ID_BSX_B 250
134
#define VS_ID_BSX_A 251
135
#define VS_ID_TIMESTAMP_LSW 252
136
#define VS_ID_TIMESTAMP_MSW 253
137
#define VS_ID_META_EVENT 254
138
139
#endif
/* BHY_UC_DRIVER_CONSTANTS_H_ */
bhy_uc_driver_config.h
header file of bhy_uc_driver.c
Generated by
1.9.1