Embedded MotionDriver 6.1 Sourced from InvenSense

Embed: (wiki syntax)

« Back to documentation index

inv_mpu_dmp_motion_driver.c File Reference

inv_mpu_dmp_motion_driver.c File Reference

DMP image and interface functions. More...

Go to the source code of this file.

Functions

int dmp_load_motion_driver_firmware (void)
 Load the DMP with this image.
int dmp_set_orientation (unsigned short orient)
 Push gyro and accel orientation to the DMP.
int dmp_set_gyro_bias (long *bias)
 Push gyro biases to the DMP.
int dmp_set_accel_bias (long *bias)
 Push accel biases to the DMP.
int dmp_set_fifo_rate (unsigned short rate)
 Set DMP output rate.
int dmp_get_fifo_rate (unsigned short *rate)
 Get DMP output rate.
int dmp_set_tap_thresh (unsigned char axis, unsigned short thresh)
 Set tap threshold for a specific axis.
int dmp_set_tap_axes (unsigned char axis)
 Set which axes will register a tap.
int dmp_set_tap_count (unsigned char min_taps)
 Set minimum number of taps needed for an interrupt.
int dmp_set_tap_time (unsigned short time)
 Set length between valid taps.
int dmp_set_tap_time_multi (unsigned short time)
 Set max time between taps to register as a multi-tap.
int dmp_set_shake_reject_thresh (long sf, unsigned short thresh)
 Set shake rejection threshold.
int dmp_set_shake_reject_time (unsigned short time)
 Set shake rejection time.
int dmp_set_shake_reject_timeout (unsigned short time)
 Set shake rejection timeout.
int dmp_get_pedometer_step_count (unsigned long *count)
 Get current step count.
int dmp_set_pedometer_step_count (unsigned long count)
 Overwrite current step count.
int dmp_get_pedometer_walk_time (unsigned long *time)
 Get duration of walking time.
int dmp_set_pedometer_walk_time (unsigned long time)
 Overwrite current walk time.
int dmp_enable_feature (unsigned short mask)
 Enable DMP features.
int dmp_get_enabled_features (unsigned short *mask)
 Get list of currently enabled DMP features.
int dmp_enable_gyro_cal (unsigned char enable)
 Calibrate the gyro data in the DMP.
int dmp_enable_lp_quat (unsigned char enable)
 Generate 3-axis quaternions from the DMP.
int dmp_enable_6x_lp_quat (unsigned char enable)
 Generate 6-axis quaternions from the DMP.
static int decode_gesture (unsigned char *gesture)
 Decode the four-byte gesture data and execute any callbacks.
int dmp_set_interrupt_mode (unsigned char mode)
 Specify when a DMP interrupt should occur.
int dmp_read_fifo (short *gyro, short *accel, long *quat, unsigned long *timestamp, short *sensors, unsigned char *more)
 Get one packet from the FIFO.
int dmp_register_tap_cb (void(*func)(unsigned char, unsigned char))
 Register a function to be executed on a tap event.
int dmp_register_android_orient_cb (void(*func)(unsigned char))
 Register a function to be executed on a android orientation event.

Detailed Description

DMP image and interface functions.

All functions are preceded by the dmp_ prefix to differentiate among MPL and general driver function calls.

Definition in file inv_mpu_dmp_motion_driver.c.