![]() |
LibDriver MPU6050
1.0.0
MPU6050 full-featured driver
|
mpu6050 dmp driver modules More...
Macros | |
#define | MPU6050_DMP_CODE_SIZE 3062 |
mpu6050 dmp code definition More... | |
Functions | |
uint8_t | mpu6050_dmp_load_firmware (mpu6050_handle_t *handle) |
load the dmp firmware More... | |
uint8_t | mpu6050_dmp_set_pedometer_walk_time (mpu6050_handle_t *handle, uint32_t ms) |
dmp set the pedometer walk time More... | |
uint8_t | mpu6050_dmp_get_pedometer_walk_time (mpu6050_handle_t *handle, uint32_t *ms) |
dmp get the pedometer walk time More... | |
uint8_t | mpu6050_dmp_set_pedometer_step_count (mpu6050_handle_t *handle, uint32_t count) |
dmp set the pedometer step count More... | |
uint8_t | mpu6050_dmp_get_pedometer_step_count (mpu6050_handle_t *handle, uint32_t *count) |
dmp get the pedometer step count More... | |
uint8_t | mpu6050_dmp_set_shake_reject_timeout (mpu6050_handle_t *handle, uint16_t ms) |
dmp set the shake reject timeout More... | |
uint8_t | mpu6050_dmp_get_shake_reject_timeout (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get the shake reject timeout More... | |
uint8_t | mpu6050_dmp_set_shake_reject_time (mpu6050_handle_t *handle, uint16_t ms) |
dmp set the shake reject time More... | |
uint8_t | mpu6050_dmp_get_shake_reject_time (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get the shake reject time More... | |
uint8_t | mpu6050_dmp_set_shake_reject_thresh (mpu6050_handle_t *handle, uint16_t dps) |
dmp set the shake reject thresh More... | |
uint8_t | mpu6050_dmp_get_shake_reject_thresh (mpu6050_handle_t *handle, uint16_t *dps) |
dmp get the shake reject thresh More... | |
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 More... | |
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 More... | |
uint8_t | mpu6050_dmp_set_tap_time (mpu6050_handle_t *handle, uint16_t ms) |
dmp set the tap time More... | |
uint8_t | mpu6050_dmp_get_tap_time (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get the tap time More... | |
uint8_t | mpu6050_dmp_set_min_tap_count (mpu6050_handle_t *handle, uint8_t cnt) |
dmp set the min tap count More... | |
uint8_t | mpu6050_dmp_get_min_tap_count (mpu6050_handle_t *handle, uint8_t *cnt) |
dmp get the min tap count More... | |
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 More... | |
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 More... | |
uint8_t | mpu6050_dmp_set_tap_thresh (mpu6050_handle_t *handle, mpu6050_axis_t axis, uint16_t mg_ms) |
dmp set the tap thresh More... | |
uint8_t | mpu6050_dmp_get_tap_thresh (mpu6050_handle_t *handle, mpu6050_axis_t axis, uint16_t *mg_ms) |
dmp get the tap thresh More... | |
uint8_t | mpu6050_dmp_set_fifo_rate (mpu6050_handle_t *handle, uint16_t rate) |
dmp set the fifo rate More... | |
uint8_t | mpu6050_dmp_get_fifo_rate (mpu6050_handle_t *handle, uint16_t *rate) |
dmp get the fifo rate More... | |
uint8_t | mpu6050_dmp_set_gyro_calibrate (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
dmp enable or disable gyro calibrate More... | |
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 More... | |
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 More... | |
uint8_t | mpu6050_dmp_set_interrupt_mode (mpu6050_handle_t *handle, mpu6050_dmp_interrupt_mode_t mode) |
dmp set the interrupt mode More... | |
uint8_t | mpu6050_dmp_set_gyro_bias (mpu6050_handle_t *handle, int32_t bias[3]) |
dmp set the gyro bias More... | |
uint8_t | mpu6050_dmp_set_accel_bias (mpu6050_handle_t *handle, int32_t bias[3]) |
dmp set the accel bias More... | |
uint8_t | mpu6050_dmp_set_orientation (mpu6050_handle_t *handle, int8_t mat[9]) |
dmp set the orientation More... | |
uint8_t | mpu6050_dmp_set_feature (mpu6050_handle_t *handle, uint16_t mask) |
dmp enable or disable the dmp feature More... | |
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 More... | |
uint8_t | mpu6050_dmp_set_tap_callback (mpu6050_handle_t *handle, void(*callback)(uint8_t count, uint8_t direction)) |
dmp set the tap callback More... | |
uint8_t | mpu6050_dmp_set_orient_callback (mpu6050_handle_t *handle, void(*callback)(uint8_t orientation)) |
dmp set the orient callback More... | |
uint8_t | mpu6050_dmp_set_enable (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the dmp More... | |
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 More... | |
mpu6050 dmp driver modules
#define MPU6050_DMP_CODE_SIZE 3062 |
mpu6050 dmp code definition
3062 bytes
mpu6050 dmp feature enumeration definition
enum mpu6050_dmp_orient_t |
enum mpu6050_dmp_tap_t |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
uint8_t mpu6050_dmp_load_firmware | ( | mpu6050_handle_t * | handle | ) |
load the dmp firmware
[in] | *handle | pointer to an mpu6050 handle structure |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
uint8_t mpu6050_dmp_set_orient_callback | ( | mpu6050_handle_t * | handle, |
void(*)(uint8_t orientation) | callback | ||
) |
dmp set the orient callback
[in] | *handle | pointer to an mpu6050 handle structure |
[in] | *callback | pointer to a callback function address |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
uint8_t mpu6050_dmp_set_tap_callback | ( | mpu6050_handle_t * | handle, |
void(*)(uint8_t count, uint8_t direction) | callback | ||
) |
dmp set the tap callback
[in] | *handle | pointer to an mpu6050 handle structure |
[in] | *callback | pointer to a callback function address |
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 |
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 |
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 |