![]() |
LibDriver MPU6500
|
mpu6500 dmp driver modules More...
Macros | |
| #define | MPU6500_DMP_CODE_SIZE 3062 |
| mpu6500 dmp code definition | |
Functions | |
| uint8_t | mpu6500_dmp_load_firmware (mpu6500_handle_t *handle) |
| load the dmp firmware | |
| uint8_t | mpu6500_dmp_set_pedometer_walk_time (mpu6500_handle_t *handle, uint32_t ms) |
| dmp set the pedometer walk time | |
| uint8_t | mpu6500_dmp_get_pedometer_walk_time (mpu6500_handle_t *handle, uint32_t *ms) |
| dmp get the pedometer walk time | |
| uint8_t | mpu6500_dmp_set_pedometer_step_count (mpu6500_handle_t *handle, uint32_t count) |
| dmp set the pedometer step count | |
| uint8_t | mpu6500_dmp_get_pedometer_step_count (mpu6500_handle_t *handle, uint32_t *count) |
| dmp get the pedometer step count | |
| uint8_t | mpu6500_dmp_set_shake_reject_timeout (mpu6500_handle_t *handle, uint16_t ms) |
| dmp set the shake reject timeout | |
| uint8_t | mpu6500_dmp_get_shake_reject_timeout (mpu6500_handle_t *handle, uint16_t *ms) |
| dmp get the shake reject timeout | |
| uint8_t | mpu6500_dmp_set_shake_reject_time (mpu6500_handle_t *handle, uint16_t ms) |
| dmp set the shake reject time | |
| uint8_t | mpu6500_dmp_get_shake_reject_time (mpu6500_handle_t *handle, uint16_t *ms) |
| dmp get the shake reject time | |
| uint8_t | mpu6500_dmp_set_shake_reject_thresh (mpu6500_handle_t *handle, uint16_t dps) |
| dmp set the shake reject thresh | |
| uint8_t | mpu6500_dmp_get_shake_reject_thresh (mpu6500_handle_t *handle, uint16_t *dps) |
| dmp get the shake reject thresh | |
| uint8_t | mpu6500_dmp_set_tap_time_multi (mpu6500_handle_t *handle, uint16_t ms) |
| dmp set max time between taps to register as a multi tap | |
| uint8_t | mpu6500_dmp_get_tap_time_multi (mpu6500_handle_t *handle, uint16_t *ms) |
| dmp get max time between taps to register as a multi tap | |
| uint8_t | mpu6500_dmp_set_tap_time (mpu6500_handle_t *handle, uint16_t ms) |
| dmp set the tap time | |
| uint8_t | mpu6500_dmp_get_tap_time (mpu6500_handle_t *handle, uint16_t *ms) |
| dmp get the tap time | |
| uint8_t | mpu6500_dmp_set_min_tap_count (mpu6500_handle_t *handle, uint8_t cnt) |
| dmp set the min tap count | |
| uint8_t | mpu6500_dmp_get_min_tap_count (mpu6500_handle_t *handle, uint8_t *cnt) |
| dmp get the min tap count | |
| uint8_t | mpu6500_dmp_set_gyro_calibrate (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| dmp enable or disable gyro calibrate | |
| uint8_t | mpu6500_dmp_set_3x_quaternion (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| dmp enable or disable generate 3 axis quaternions from dmp | |
| uint8_t | mpu6500_dmp_set_6x_quaternion (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| dmp enable or disable generate 6 axis quaternions from dmp | |
| uint8_t | mpu6500_dmp_set_interrupt_mode (mpu6500_handle_t *handle, mpu6500_dmp_interrupt_mode_t mode) |
| dmp set the interrupt mode | |
| uint8_t | mpu6500_dmp_set_gyro_bias (mpu6500_handle_t *handle, int32_t bias[3]) |
| dmp set the gyro bias | |
| uint8_t | mpu6500_dmp_set_accel_bias (mpu6500_handle_t *handle, int32_t bias[3]) |
| dmp set the accel bias | |
| uint8_t | mpu6500_dmp_set_orientation (mpu6500_handle_t *handle, int8_t mat[9]) |
| dmp set the orientation | |
| uint8_t | mpu6500_dmp_set_feature (mpu6500_handle_t *handle, uint16_t mask) |
| dmp enable or disable the dmp feature | |
| uint8_t | mpu6500_dmp_set_fifo_rate (mpu6500_handle_t *handle, uint16_t rate) |
| dmp set the fifo rate | |
| uint8_t | mpu6500_dmp_get_fifo_rate (mpu6500_handle_t *handle, uint16_t *rate) |
| dmp get the fifo rate | |
| uint8_t | mpu6500_dmp_set_tap_axes (mpu6500_handle_t *handle, mpu6500_axis_t axis, mpu6500_bool_t enable) |
| dmp enable or disable the tap axes | |
| uint8_t | mpu6500_dmp_get_tap_axes (mpu6500_handle_t *handle, mpu6500_axis_t axis, mpu6500_bool_t *enable) |
| dmp get the tap axes status | |
| uint8_t | mpu6500_dmp_set_tap_thresh (mpu6500_handle_t *handle, mpu6500_axis_t axis, uint16_t mg_ms) |
| dmp set the tap thresh | |
| uint8_t | mpu6500_dmp_get_tap_thresh (mpu6500_handle_t *handle, mpu6500_axis_t axis, uint16_t *mg_ms) |
| dmp get the tap thresh | |
| uint8_t | mpu6500_dmp_read (mpu6500_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 | mpu6500_dmp_set_tap_callback (mpu6500_handle_t *handle, void(*callback)(uint8_t count, uint8_t direction)) |
| dmp set the tap callback | |
| uint8_t | mpu6500_dmp_set_orient_callback (mpu6500_handle_t *handle, void(*callback)(uint8_t orientation)) |
| dmp set the orient callback | |
| uint8_t | mpu6500_dmp_set_enable (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the dmp | |
| uint8_t | mpu6500_dmp_gyro_accel_raw_offset_convert (mpu6500_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 | |
mpu6500 dmp driver modules
| #define MPU6500_DMP_CODE_SIZE 3062 |
mpu6500 dmp feature enumeration definition
Definition at line 402 of file driver_mpu6500.h.
mpu6500 dmp interrupt mode enumeration definition
| Enumerator | |
|---|---|
| MPU6500_DMP_INTERRUPT_MODE_CONTINUOUS | continuous mode |
| MPU6500_DMP_INTERRUPT_MODE_GESTURE | gesture mode |
Definition at line 393 of file driver_mpu6500.h.
| enum mpu6500_dmp_orient_t |
mpu6500 dmp orient enumeration definition
| Enumerator | |
|---|---|
| MPU6500_DMP_ORIENT_PORTRAIT | portrait |
| MPU6500_DMP_ORIENT_LANDSCAPE | landscape |
| MPU6500_DMP_ORIENT_REVERSE_PORTRAIT | reverse portrait |
| MPU6500_DMP_ORIENT_REVERSE_LANDSCAPE | reverse landscape |
Definition at line 431 of file driver_mpu6500.h.
| enum mpu6500_dmp_tap_t |
mpu6500 dmp tap enumeration definition
Definition at line 418 of file driver_mpu6500.h.
| uint8_t mpu6500_dmp_get_fifo_rate | ( | mpu6500_handle_t * | handle, |
| uint16_t * | rate ) |
dmp get the fifo rate
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *rate | pointer to a rate buffer |
Definition at line 2920 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_min_tap_count | ( | mpu6500_handle_t * | handle, |
| uint8_t * | cnt ) |
dmp get the min tap count
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *cnt | pointer to a tap counter buffer |
Definition at line 1785 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_pedometer_step_count | ( | mpu6500_handle_t * | handle, |
| uint32_t * | count ) |
dmp get the pedometer step count
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *count | pointer to a step count buffer |
Definition at line 1223 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_pedometer_walk_time | ( | mpu6500_handle_t * | handle, |
| uint32_t * | ms ) |
dmp get the pedometer walk time
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *ms | pointer to a walk time buffer |
Definition at line 1130 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_shake_reject_thresh | ( | mpu6500_handle_t * | handle, |
| uint16_t * | dps ) |
dmp get the shake reject thresh
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *dps | pointer to a shake reject thresh dps buffer |
Definition at line 1502 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_shake_reject_time | ( | mpu6500_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get the shake reject time
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *ms | pointer to a shake reject time buffer |
Definition at line 1407 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_shake_reject_timeout | ( | mpu6500_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get the shake reject timeout
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *ms | pointer to a reject timeout buffer |
Definition at line 1315 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_tap_axes | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| mpu6500_bool_t * | enable ) |
dmp get the tap axes status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | set axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3028 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_tap_thresh | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| uint16_t * | mg_ms ) |
dmp get the tap thresh
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | set axis |
| [out] | *mg_ms | pointer to an mg/ms thresh buffer |
Definition at line 3229 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_tap_time | ( | mpu6500_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get the tap time
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *ms | pointer to a tap time buffer |
Definition at line 1689 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_get_tap_time_multi | ( | mpu6500_handle_t * | handle, |
| uint16_t * | ms ) |
dmp get max time between taps to register as a multi tap
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *ms | pointer to a delay time buffer |
Definition at line 1597 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_gyro_accel_raw_offset_convert | ( | mpu6500_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 mpu6500 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 3738 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_load_firmware | ( | mpu6500_handle_t * | handle | ) |
load the dmp firmware
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 1004 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_read | ( | mpu6500_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 mpu6500 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 3345 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_3x_quaternion | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
dmp enable or disable generate 3 axis quaternions from dmp
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 1892 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_6x_quaternion | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
dmp enable or disable generate 6 axis quaternions from dmp
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 1969 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_accel_bias | ( | mpu6500_handle_t * | handle, |
| int32_t | bias[3] ) |
dmp set the accel bias
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | *bias | pointer to a bias buffer |
Definition at line 2205 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the dmp
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 3683 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_feature | ( | mpu6500_handle_t * | handle, |
| uint16_t | mask ) |
dmp enable or disable the dmp feature
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mask | set mask |
Definition at line 2412 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_fifo_rate | ( | mpu6500_handle_t * | handle, |
| uint16_t | rate ) |
dmp set the fifo rate
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | rate | set rate |
Definition at line 2854 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_gyro_bias | ( | mpu6500_handle_t * | handle, |
| int32_t | bias[3] ) |
dmp set the gyro bias
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | *bias | pointer to a bias buffer |
Definition at line 2115 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_gyro_calibrate | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
dmp enable or disable gyro calibrate
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 1829 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_interrupt_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_dmp_interrupt_mode_t | mode ) |
dmp set the interrupt mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mode | dmp interrupt mode |
Definition at line 2046 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_min_tap_count | ( | mpu6500_handle_t * | handle, |
| uint8_t | cnt ) |
dmp set the min tap count
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | cnt | tap counter |
Definition at line 1735 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_orient_callback | ( | mpu6500_handle_t * | handle, |
| void(* | callback )(uint8_t orientation) ) |
dmp set the orient callback
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | *callback | pointer to a callback function address |
Definition at line 3649 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_orientation | ( | mpu6500_handle_t * | handle, |
| int8_t | mat[9] ) |
dmp set the orientation
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | *mat | pointer to an orientation matrix buffer |
Definition at line 2308 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_pedometer_step_count | ( | mpu6500_handle_t * | handle, |
| uint32_t | count ) |
dmp set the pedometer step count
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | count | step count |
Definition at line 1175 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_pedometer_walk_time | ( | mpu6500_handle_t * | handle, |
| uint32_t | ms ) |
dmp set the pedometer walk time
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | ms | walk time |
Definition at line 1081 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_shake_reject_thresh | ( | mpu6500_handle_t * | handle, |
| uint16_t | dps ) |
dmp set the shake reject thresh
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | dps | shake reject thresh |
Definition at line 1452 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_shake_reject_time | ( | mpu6500_handle_t * | handle, |
| uint16_t | ms ) |
dmp set the shake reject time
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | ms | shake reject time |
Definition at line 1360 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_shake_reject_timeout | ( | mpu6500_handle_t * | handle, |
| uint16_t | ms ) |
dmp set the shake reject timeout
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | ms | reject timeout |
Definition at line 1268 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_tap_axes | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| mpu6500_bool_t | enable ) |
dmp enable or disable the tap axes
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | set axis |
| [in] | enable | bool value |
Definition at line 2967 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_tap_callback | ( | mpu6500_handle_t * | handle, |
| void(* | callback )(uint8_t count, uint8_t direction) ) |
dmp set the tap callback
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | *callback | pointer to a callback function address |
Definition at line 3615 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_tap_thresh | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| uint16_t | mg_ms ) |
dmp set the tap thresh
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | set axis |
| [in] | mg_ms | set thresh |
Definition at line 3084 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_tap_time | ( | mpu6500_handle_t * | handle, |
| uint16_t | ms ) |
dmp set the tap time
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | ms | tap time |
Definition at line 1642 of file driver_mpu6500.c.
| uint8_t mpu6500_dmp_set_tap_time_multi | ( | mpu6500_handle_t * | handle, |
| uint16_t | ms ) |
dmp set max time between taps to register as a multi tap
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | ms | delay time |
Definition at line 1550 of file driver_mpu6500.c.