![]() |
LibDriver MPU6050
|
mpu6050 dmp driver modules More...
Macros | |
| #define | MPU6050_DMP_CODE_SIZE 3062 |
| mpu6050 dmp code definition | |
Functions | |
| uint8_t | mpu6050_dmp_load_firmware (mpu6050_handle_t *handle) |
| load the dmp firmware | |
| uint8_t | mpu6050_dmp_set_pedometer_walk_time (mpu6050_handle_t *handle, uint32_t ms) |
| dmp set the pedometer walk time | |
| uint8_t | mpu6050_dmp_get_pedometer_walk_time (mpu6050_handle_t *handle, uint32_t *ms) |
| dmp get the pedometer walk time | |
| uint8_t | mpu6050_dmp_set_pedometer_step_count (mpu6050_handle_t *handle, uint32_t count) |
| dmp set the pedometer step count | |
| uint8_t | mpu6050_dmp_get_pedometer_step_count (mpu6050_handle_t *handle, uint32_t *count) |
| dmp get the pedometer step count | |
| uint8_t | mpu6050_dmp_set_shake_reject_timeout (mpu6050_handle_t *handle, uint16_t ms) |
| dmp set the shake reject timeout | |
| uint8_t | mpu6050_dmp_get_shake_reject_timeout (mpu6050_handle_t *handle, uint16_t *ms) |
| dmp get the shake reject timeout | |
| uint8_t | mpu6050_dmp_set_shake_reject_time (mpu6050_handle_t *handle, uint16_t ms) |
| dmp set the shake reject time | |
| uint8_t | mpu6050_dmp_get_shake_reject_time (mpu6050_handle_t *handle, uint16_t *ms) |
| dmp get the shake reject time | |
| uint8_t | mpu6050_dmp_set_shake_reject_thresh (mpu6050_handle_t *handle, uint16_t dps) |
| dmp set the shake reject thresh | |
| uint8_t | mpu6050_dmp_get_shake_reject_thresh (mpu6050_handle_t *handle, uint16_t *dps) |
| dmp get the shake reject thresh | |
| uint8_t | mpu6050_dmp_set_tap_time_multi (mpu6050_handle_t *handle, uint16_t ms) |
| dmp set max time between taps to register as a multi tap | |
| uint8_t | mpu6050_dmp_get_tap_time_multi (mpu6050_handle_t *handle, uint16_t *ms) |
| dmp get max time between taps to register as a multi tap | |
| uint8_t | mpu6050_dmp_set_tap_time (mpu6050_handle_t *handle, uint16_t ms) |
| dmp set the tap time | |
| uint8_t | mpu6050_dmp_get_tap_time (mpu6050_handle_t *handle, uint16_t *ms) |
| dmp get the tap time | |
| uint8_t | mpu6050_dmp_set_min_tap_count (mpu6050_handle_t *handle, uint8_t cnt) |
| dmp set the min tap count | |
| uint8_t | mpu6050_dmp_get_min_tap_count (mpu6050_handle_t *handle, uint8_t *cnt) |
| dmp get the min tap count | |
| uint8_t | mpu6050_dmp_set_tap_axes (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t enable) |
| dmp enable or disable the tap axes | |
| uint8_t | mpu6050_dmp_get_tap_axes (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t *enable) |
| dmp get the tap axes status | |
| uint8_t | mpu6050_dmp_set_tap_thresh (mpu6050_handle_t *handle, mpu6050_axis_t axis, uint16_t mg_ms) |
| dmp set the tap thresh | |
| uint8_t | mpu6050_dmp_get_tap_thresh (mpu6050_handle_t *handle, mpu6050_axis_t axis, uint16_t *mg_ms) |
| dmp get the tap thresh | |
| uint8_t | mpu6050_dmp_set_fifo_rate (mpu6050_handle_t *handle, uint16_t rate) |
| dmp set the fifo rate | |
| uint8_t | mpu6050_dmp_get_fifo_rate (mpu6050_handle_t *handle, uint16_t *rate) |
| dmp get the fifo rate | |
| uint8_t | mpu6050_dmp_set_gyro_calibrate (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| dmp enable or disable gyro calibrate | |
| uint8_t | mpu6050_dmp_set_3x_quaternion (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| dmp enable or disable generate 3 axis quaternions from dmp | |
| uint8_t | mpu6050_dmp_set_6x_quaternion (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| dmp enable or disable generate 6 axis quaternions from dmp | |
| uint8_t | mpu6050_dmp_set_interrupt_mode (mpu6050_handle_t *handle, mpu6050_dmp_interrupt_mode_t mode) |
| dmp set the interrupt mode | |
| uint8_t | mpu6050_dmp_set_gyro_bias (mpu6050_handle_t *handle, int32_t bias[3]) |
| dmp set the gyro bias | |
| uint8_t | mpu6050_dmp_set_accel_bias (mpu6050_handle_t *handle, int32_t bias[3]) |
| dmp set the accel bias | |
| uint8_t | mpu6050_dmp_set_orientation (mpu6050_handle_t *handle, int8_t mat[9]) |
| dmp set the orientation | |
| uint8_t | mpu6050_dmp_set_feature (mpu6050_handle_t *handle, uint16_t mask) |
| dmp enable or disable the dmp feature | |
| uint8_t | mpu6050_dmp_read (mpu6050_handle_t *handle, int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], int32_t(*quat)[4], float *pitch, float *roll, float *yaw, uint16_t *l) |
| dmp read the data | |
| uint8_t | mpu6050_dmp_set_tap_callback (mpu6050_handle_t *handle, void(*callback)(uint8_t count, uint8_t direction)) |
| dmp set the tap callback | |
| uint8_t | mpu6050_dmp_set_orient_callback (mpu6050_handle_t *handle, void(*callback)(uint8_t orientation)) |
| dmp set the orient callback | |
| uint8_t | mpu6050_dmp_set_enable (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the dmp | |
| uint8_t | mpu6050_dmp_gyro_accel_raw_offset_convert (mpu6050_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3], int32_t gyro_offset[3], int32_t accel_offset[3]) |
| dmp gyro accel raw offset convert | |
mpu6050 dmp driver modules
| #define MPU6050_DMP_CODE_SIZE 3062 |
mpu6050 dmp feature enumeration definition
Definition at line 360 of file driver_mpu6050.h.
mpu6050 dmp interrupt mode enumeration definition
| Enumerator | |
|---|---|
| MPU6050_DMP_INTERRUPT_MODE_CONTINUOUS | continuous mode |
| MPU6050_DMP_INTERRUPT_MODE_GESTURE | gesture mode |
Definition at line 351 of file driver_mpu6050.h.
| enum mpu6050_dmp_orient_t |
mpu6050 dmp orient enumeration definition
| Enumerator | |
|---|---|
| MPU6050_DMP_ORIENT_PORTRAIT | portrait |
| MPU6050_DMP_ORIENT_LANDSCAPE | landscape |
| MPU6050_DMP_ORIENT_REVERSE_PORTRAIT | reverse portrait |
| MPU6050_DMP_ORIENT_REVERSE_LANDSCAPE | reverse landscape |
Definition at line 389 of file driver_mpu6050.h.
| enum mpu6050_dmp_tap_t |
mpu6050 dmp tap enumeration definition
Definition at line 376 of file driver_mpu6050.h.
| uint8_t mpu6050_dmp_get_fifo_rate | ( | mpu6050_handle_t * | handle, |
| uint16_t * | rate ) |
dmp get the fifo rate
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *rate | pointer to a rate buffer |
Definition at line 2754 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_min_tap_count | ( | mpu6050_handle_t * | handle, |
| uint8_t * | cnt ) |
dmp get the min tap count
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *cnt | pointer to a tap counter buffer |
Definition at line 1618 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_pedometer_step_count | ( | mpu6050_handle_t * | handle, |
| uint32_t * | count ) |
dmp get the pedometer step count
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *count | pointer to a step count buffer |
Definition at line 1056 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_pedometer_walk_time | ( | mpu6050_handle_t * | handle, |
| uint32_t * | ms ) |
dmp get the pedometer walk time
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *ms | pointer to a walk time buffer |
Definition at line 963 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_shake_reject_thresh | ( | mpu6050_handle_t * | handle, |
| uint16_t * | dps ) |
dmp get the shake reject thresh
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *dps | pointer to a shake reject thresh dps buffer |
Definition at line 1335 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_shake_reject_time | ( | mpu6050_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get the shake reject time
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *ms | pointer to a shake reject time buffer |
Definition at line 1240 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_shake_reject_timeout | ( | mpu6050_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get the shake reject timeout
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *ms | pointer to a reject timeout buffer |
Definition at line 1148 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_tap_axes | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| mpu6050_bool_t * | enable ) |
dmp get the tap axes status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | set axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2862 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_tap_thresh | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| uint16_t * | mg_ms ) |
dmp get the tap thresh
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | set axis |
| [out] | *mg_ms | pointer to an mg/ms thresh buffer |
Definition at line 3063 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_tap_time | ( | mpu6050_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get the tap time
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *ms | pointer to a tap time buffer |
Definition at line 1522 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_get_tap_time_multi | ( | mpu6050_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get max time between taps to register as a multi tap
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *ms | pointer to a delay time buffer |
Definition at line 1430 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_gyro_accel_raw_offset_convert | ( | mpu6050_handle_t * | handle, |
| int32_t | gyro_offset_raw[3], | ||
| int32_t | accel_offset_raw[3], | ||
| int32_t | gyro_offset[3], | ||
| int32_t | accel_offset[3] ) |
dmp gyro accel raw offset convert
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *gyro_offset_raw | pointer to a gyro offset raw buffer |
| [in] | *accel_offset_raw | pointer to an accel offset raw buffer |
| [out] | *gyro_offset | pointer to a gyro offset buffer |
| [out] | *accel_offset | pointer to an accel offset buffer |
Definition at line 3572 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_load_firmware | ( | mpu6050_handle_t * | handle | ) |
load the dmp firmware
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 836 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_read | ( | mpu6050_handle_t * | handle, |
| int16_t(*) | accel_raw[3], | ||
| float(*) | accel_g[3], | ||
| int16_t(*) | gyro_raw[3], | ||
| float(*) | gyro_dps[3], | ||
| int32_t(*) | quat[4], | ||
| float * | pitch, | ||
| float * | roll, | ||
| float * | yaw, | ||
| uint16_t * | l ) |
dmp read the data
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *accel_raw | pointer to an accel raw buffer |
| [out] | *accel_g | pointer to an accel g buffer |
| [out] | *gyro_raw | pointer to a gyro raw buffer |
| [out] | *gyro_dps | pointer to a gyro dps buffer |
| [out] | *quat | pointer to a quat buffer |
| [out] | *pitch | pointer to a pitch buffer |
| [out] | *roll | pointer to a roll buffer |
| [out] | *yaw | pointer to a yaw buffer |
| [in,out] | *l | pointer to a length buffer |
Definition at line 3179 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_3x_quaternion | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
dmp enable or disable generate 3 axis quaternions from dmp
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 1725 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_6x_quaternion | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
dmp enable or disable generate 6 axis quaternions from dmp
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 1802 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_accel_bias | ( | mpu6050_handle_t * | handle, |
| int32_t | bias[3] ) |
dmp set the accel bias
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *bias | pointer to a bias buffer |
Definition at line 2038 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the dmp
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 3517 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_feature | ( | mpu6050_handle_t * | handle, |
| uint16_t | mask ) |
dmp enable or disable the dmp feature
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | mask | set mask |
Definition at line 2245 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_fifo_rate | ( | mpu6050_handle_t * | handle, |
| uint16_t | rate ) |
dmp set the fifo rate
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | rate | set rate |
Definition at line 2688 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_gyro_bias | ( | mpu6050_handle_t * | handle, |
| int32_t | bias[3] ) |
dmp set the gyro bias
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *bias | pointer to a bias buffer |
Definition at line 1948 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_gyro_calibrate | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
dmp enable or disable gyro calibrate
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 1662 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_interrupt_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_dmp_interrupt_mode_t | mode ) |
dmp set the interrupt mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | mode | dmp interrupt mode |
Definition at line 1879 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_min_tap_count | ( | mpu6050_handle_t * | handle, |
| uint8_t | cnt ) |
dmp set the min tap count
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | cnt | tap counter |
Definition at line 1568 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_orient_callback | ( | mpu6050_handle_t * | handle, |
| void(* | callback )(uint8_t orientation) ) |
dmp set the orient callback
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *callback | pointer to a callback function address |
Definition at line 3483 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_orientation | ( | mpu6050_handle_t * | handle, |
| int8_t | mat[9] ) |
dmp set the orientation
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *mat | pointer to an orientation matrix buffer |
Definition at line 2141 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_pedometer_step_count | ( | mpu6050_handle_t * | handle, |
| uint32_t | count ) |
dmp set the pedometer step count
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | count | step count |
Definition at line 1008 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_pedometer_walk_time | ( | mpu6050_handle_t * | handle, |
| uint32_t | ms ) |
dmp set the pedometer walk time
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | ms | walk time |
Definition at line 914 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_shake_reject_thresh | ( | mpu6050_handle_t * | handle, |
| uint16_t | dps ) |
dmp set the shake reject thresh
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | dps | shake reject thresh |
Definition at line 1285 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_shake_reject_time | ( | mpu6050_handle_t * | handle, |
| uint16_t | ms ) |
dmp set the shake reject time
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | ms | shake reject time |
Definition at line 1193 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_shake_reject_timeout | ( | mpu6050_handle_t * | handle, |
| uint16_t | ms ) |
dmp set the shake reject timeout
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | ms | reject timeout |
Definition at line 1101 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_tap_axes | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| mpu6050_bool_t | enable ) |
dmp enable or disable the tap axes
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | set axis |
| [in] | enable | bool value |
Definition at line 2801 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_tap_callback | ( | mpu6050_handle_t * | handle, |
| void(* | callback )(uint8_t count, uint8_t direction) ) |
dmp set the tap callback
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *callback | pointer to a callback function address |
Definition at line 3449 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_tap_thresh | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| uint16_t | mg_ms ) |
dmp set the tap thresh
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | set axis |
| [in] | mg_ms | set thresh |
Definition at line 2918 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_tap_time | ( | mpu6050_handle_t * | handle, |
| uint16_t | ms ) |
dmp set the tap time
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | ms | tap time |
Definition at line 1475 of file driver_mpu6050.c.
| uint8_t mpu6050_dmp_set_tap_time_multi | ( | mpu6050_handle_t * | handle, |
| uint16_t | ms ) |
dmp set max time between taps to register as a multi tap
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | ms | delay time |
Definition at line 1383 of file driver_mpu6050.c.