<trclass="memdesc:ga66626a842452f444e9af29cb0d2c6150"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Load the DMP with this image. <ahref="group___d_r_i_v_e_r_s.html#ga66626a842452f444e9af29cb0d2c6150">更多...</a><br/></td></tr>
<trclass="memitem:ga5399728fd572a7694af20286cc9d4121"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga5399728fd572a7694af20286cc9d4121">dmp_set_fifo_rate</a> (unsigned short rate)</td></tr>
<trclass="memdesc:ga5399728fd572a7694af20286cc9d4121"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set DMP output rate. Only used when DMP is on. <ahref="group___d_r_i_v_e_r_s.html#ga5399728fd572a7694af20286cc9d4121">更多...</a><br/></td></tr>
<trclass="memitem:gaf3f9953bc04af751b1101700daffa951"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#gaf3f9953bc04af751b1101700daffa951">dmp_get_fifo_rate</a> (unsigned short *rate)</td></tr>
<trclass="memitem:ga70c485bdfa30515e5b869b081192caa1"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga70c485bdfa30515e5b869b081192caa1">dmp_enable_feature</a> (unsigned short mask)</td></tr>
<trclass="memdesc:ga70c485bdfa30515e5b869b081192caa1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Enable DMP features. The following #define's are used in the input mask: <br/>
DMP_FEATURE_TAP <br/>
DMP_FEATURE_ANDROID_ORIENT <br/>
DMP_FEATURE_LP_QUAT <br/>
DMP_FEATURE_6X_LP_QUAT <br/>
DMP_FEATURE_GYRO_CAL <br/>
DMP_FEATURE_SEND_RAW_ACCEL <br/>
DMP_FEATURE_SEND_RAW_GYRO <br/>
NOTE: DMP_FEATURE_LP_QUAT and DMP_FEATURE_6X_LP_QUAT are mutually exclusive. <br/>
NOTE: DMP_FEATURE_SEND_RAW_GYRO and DMP_FEATURE_SEND_CAL_GYRO are also mutually exclusive. <ahref="group___d_r_i_v_e_r_s.html#ga70c485bdfa30515e5b869b081192caa1">更多...</a><br/></td></tr>
<trclass="memitem:ga92b920b72f5146ea14d45ad2d529b64c"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga92b920b72f5146ea14d45ad2d529b64c">dmp_get_enabled_features</a> (unsigned short *mask)</td></tr>
<trclass="memdesc:ga92b920b72f5146ea14d45ad2d529b64c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get list of currently enabled DMP features. <ahref="group___d_r_i_v_e_r_s.html#ga92b920b72f5146ea14d45ad2d529b64c">更多...</a><br/></td></tr>
<trclass="memdesc:gaf10c08103d2aec9aa5555a5694bafced"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Specify when a DMP interrupt should occur. A DMP interrupt can be configured to trigger on either of the two conditions below: <br/>
a. One FIFO period has elapsed (set by <em>mpu_set_sample_rate</em>). <br/>
b. A tap event has been detected. <ahref="group___d_r_i_v_e_r_s.html#gaf10c08103d2aec9aa5555a5694bafced">更多...</a><br/></td></tr>
<trclass="memitem:ga6cb5ff144ce6e1546f00809de8bb24a4"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga6cb5ff144ce6e1546f00809de8bb24a4">dmp_set_orientation</a> (unsigned short orient)</td></tr>
<trclass="memdesc:ga6cb5ff144ce6e1546f00809de8bb24a4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Push gyro and accel orientation to the DMP. The orientation is represented here as the output of <em>inv_orientation_matrix_to_scalar</em>. <ahref="group___d_r_i_v_e_r_s.html#ga6cb5ff144ce6e1546f00809de8bb24a4">更多...</a><br/></td></tr>
<trclass="memdesc:ga4766e37ef95cbf0044c8f9594ed811d1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Push gyro biases to the DMP. Because the gyro integration is handled in the DMP, any gyro biases calculated by the MPL should be pushed down to DMP memory to remove 3-axis quaternion drift. <br/>
NOTE: If the DMP-based gyro calibration is enabled, the DMP will overwrite the biases written to this location once a new one is computed. <ahref="group___d_r_i_v_e_r_s.html#ga4766e37ef95cbf0044c8f9594ed811d1">更多...</a><br/></td></tr>
<trclass="memdesc:gafbd714aee6086836f70aaea847771669"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Push accel biases to the DMP. These biases will be removed from the DMP 6-axis quaternion. <ahref="group___d_r_i_v_e_r_s.html#gafbd714aee6086836f70aaea847771669">更多...</a><br/></td></tr>
<trclass="memdesc:ga8a2df36126e34b78863e3acf1249d814"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Register a function to be executed on a tap event. The tap direction is represented by one of the following: <br/>
<trclass="memitem:ga15da67c0a6c94e0cdaceb8b165e13af9"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga15da67c0a6c94e0cdaceb8b165e13af9">dmp_set_tap_thresh</a> (unsigned char axis, unsigned short thresh)</td></tr>
<trclass="memdesc:ga15da67c0a6c94e0cdaceb8b165e13af9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set tap threshold for a specific axis. <ahref="group___d_r_i_v_e_r_s.html#ga15da67c0a6c94e0cdaceb8b165e13af9">更多...</a><br/></td></tr>
<trclass="memdesc:ga66bc5c8fc26fcb498df53fc62aa87e4f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set which axes will register a tap. <ahref="group___d_r_i_v_e_r_s.html#ga66bc5c8fc26fcb498df53fc62aa87e4f">更多...</a><br/></td></tr>
<trclass="memdesc:ga819f947b2cb107ada7b9a94c41be0dad"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set minimum number of taps needed for an interrupt. <ahref="group___d_r_i_v_e_r_s.html#ga819f947b2cb107ada7b9a94c41be0dad">更多...</a><br/></td></tr>
<trclass="memitem:ga97466067f4a23368f4d7e2547fe359d9"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga97466067f4a23368f4d7e2547fe359d9">dmp_set_tap_time</a> (unsigned short time)</td></tr>
<trclass="memdesc:ga97466067f4a23368f4d7e2547fe359d9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set length between valid taps. <ahref="group___d_r_i_v_e_r_s.html#ga97466067f4a23368f4d7e2547fe359d9">更多...</a><br/></td></tr>
<trclass="memitem:gaeca250a90eb816eb2609229849481337"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#gaeca250a90eb816eb2609229849481337">dmp_set_tap_time_multi</a> (unsigned short time)</td></tr>
<trclass="memdesc:gaeca250a90eb816eb2609229849481337"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set max time between taps to register as a multi-tap. <ahref="group___d_r_i_v_e_r_s.html#gaeca250a90eb816eb2609229849481337">更多...</a><br/></td></tr>
<trclass="memitem:ga62efdae1330d5bcaf4c75b069ded0ed0"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga62efdae1330d5bcaf4c75b069ded0ed0">dmp_set_shake_reject_thresh</a> (long sf, unsigned short thresh)</td></tr>
<trclass="memdesc:ga62efdae1330d5bcaf4c75b069ded0ed0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set shake rejection threshold. If the DMP detects a gyro sample larger than <em>thresh</em>, taps are rejected. <ahref="group___d_r_i_v_e_r_s.html#ga62efdae1330d5bcaf4c75b069ded0ed0">更多...</a><br/></td></tr>
<trclass="memitem:ga09d7a6d90e1bd2e907f1866d850c5608"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga09d7a6d90e1bd2e907f1866d850c5608">dmp_set_shake_reject_time</a> (unsigned short time)</td></tr>
<trclass="memdesc:ga09d7a6d90e1bd2e907f1866d850c5608"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set shake rejection time. Sets the length of time that the gyro must be outside of the threshold set by <em>gyro_set_shake_reject_thresh</em> before taps are rejected. A mandatory 60 ms is added to this parameter. <ahref="group___d_r_i_v_e_r_s.html#ga09d7a6d90e1bd2e907f1866d850c5608">更多...</a><br/></td></tr>
<trclass="memitem:ga5d44d1a32535000e6902cdc5224d1b54"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga5d44d1a32535000e6902cdc5224d1b54">dmp_set_shake_reject_timeout</a> (unsigned short time)</td></tr>
<trclass="memdesc:ga5d44d1a32535000e6902cdc5224d1b54"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set shake rejection timeout. Sets the length of time after a shake rejection that the gyro must stay inside of the threshold before taps can be detected again. A mandatory 60 ms is added to this parameter. <ahref="group___d_r_i_v_e_r_s.html#ga5d44d1a32535000e6902cdc5224d1b54">更多...</a><br/></td></tr>
<trclass="memdesc:ga2e66a02d29ec89466cf339587592943c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Register a function to be executed on a android orientation event. <ahref="group___d_r_i_v_e_r_s.html#ga2e66a02d29ec89466cf339587592943c">更多...</a><br/></td></tr>
<trclass="memdesc:ga4ee4339b79a58558d121ba8206056394"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Generate 3-axis quaternions from the DMP. In this driver, the 3-axis and 6-axis DMP quaternion features are mutually exclusive. <ahref="group___d_r_i_v_e_r_s.html#ga4ee4339b79a58558d121ba8206056394">更多...</a><br/></td></tr>
<trclass="memdesc:gaac712ef33727433f666b3861894873be"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Generate 6-axis quaternions from the DMP. In this driver, the 3-axis and 6-axis DMP quaternion features are mutually exclusive. <ahref="group___d_r_i_v_e_r_s.html#gaac712ef33727433f666b3861894873be">更多...</a><br/></td></tr>
<trclass="memitem:gad8f4d1a93e0f03d950559501c5a7255b"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#gad8f4d1a93e0f03d950559501c5a7255b">dmp_get_pedometer_step_count</a> (unsigned long *count)</td></tr>
<trclass="memdesc:gad8f4d1a93e0f03d950559501c5a7255b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get current step count. <ahref="group___d_r_i_v_e_r_s.html#gad8f4d1a93e0f03d950559501c5a7255b">更多...</a><br/></td></tr>
<trclass="memitem:ga568562c19998f585b1d2ba056cd209db"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga568562c19998f585b1d2ba056cd209db">dmp_set_pedometer_step_count</a> (unsigned long count)</td></tr>
<trclass="memdesc:ga568562c19998f585b1d2ba056cd209db"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Overwrite current step count. WARNING: This function writes to DMP memory and could potentially encounter a race condition if called while the pedometer is enabled. <ahref="group___d_r_i_v_e_r_s.html#ga568562c19998f585b1d2ba056cd209db">更多...</a><br/></td></tr>
<trclass="memitem:ga62c8e5e99986b0e60ca0dc9a9b9c3fcc"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga62c8e5e99986b0e60ca0dc9a9b9c3fcc">dmp_get_pedometer_walk_time</a> (unsigned long *time)</td></tr>
<trclass="memdesc:ga62c8e5e99986b0e60ca0dc9a9b9c3fcc"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get duration of walking time. <ahref="group___d_r_i_v_e_r_s.html#ga62c8e5e99986b0e60ca0dc9a9b9c3fcc">更多...</a><br/></td></tr>
<trclass="memitem:ga62f469269047f8cba16a2b7f5349acc0"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga62f469269047f8cba16a2b7f5349acc0">dmp_set_pedometer_walk_time</a> (unsigned long time)</td></tr>
<trclass="memdesc:ga62f469269047f8cba16a2b7f5349acc0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Overwrite current walk time. WARNING: This function writes to DMP memory and could potentially encounter a race condition if called while the pedometer is enabled. <ahref="group___d_r_i_v_e_r_s.html#ga62f469269047f8cba16a2b7f5349acc0">更多...</a><br/></td></tr>
<trclass="memdesc:ga653ebcec6758f006dd89939e8f3c6ebb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Calibrate the gyro data in the DMP. After eight seconds of no motion, the DMP will compute gyro biases and subtract them from the quaternion output. If <em>dmp_enable_feature</em> is called with <em>DMP_FEATURE_SEND_CAL_GYRO</em>, the biases will also be subtracted from the gyro output. <ahref="group___d_r_i_v_e_r_s.html#ga653ebcec6758f006dd89939e8f3c6ebb">更多...</a><br/></td></tr>
<trclass="memitem:ga02db5f25359abe84be002c543cdc3803"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group___d_r_i_v_e_r_s.html#ga02db5f25359abe84be002c543cdc3803">dmp_read_fifo</a> (short *gyro, short *accel, long *quat, unsigned long *timestamp, short *sensors, unsigned char *more)</td></tr>
<trclass="memdesc:ga02db5f25359abe84be002c543cdc3803"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get one packet from the FIFO. If <em>sensors</em> does not contain a particular sensor, disregard the data returned to that pointer. <br/>
<em>sensors</em> can contain a combination of the following flags: <br/>
INV_X_GYRO, INV_Y_GYRO, INV_Z_GYRO <br/>
INV_XYZ_GYRO <br/>
INV_XYZ_ACCEL <br/>
INV_WXYZ_QUAT <br/>
If the FIFO has no new data, <em>sensors</em> will be zero. <br/>
If the FIFO is disabled, <em>sensors</em> will be zero and this function will return a non-zero error code. <ahref="group___d_r_i_v_e_r_s.html#ga02db5f25359abe84be002c543cdc3803">更多...</a><br/></td></tr>