2022-11-08 01:47:39 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "zh" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
< meta name = "generator" content = "Doxygen 1.9.5" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > XerolySkinnerBscpp: D:/gitt/MicrochipFor32/bscpp_Device/bscpp_MPU6050/mpu6050.cpp 文件参考< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr id = "projectrow" >
< td id = "projectalign" >
< div id = "projectname" > XerolySkinnerBscpp< span id = "projectnumber" >   1.0.0< / span >
< / div >
< div id = "projectbrief" > C++版本的驱动库< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > 首页< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > 相关页面< / span > < / a > < / li >
< li > < a href = "modules.html" > < span > 模块< / span > < / a > < / li >
< li > < a href = "annotated.html" > < span > 类< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > 文件< / span > < / a > < / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "files.html" > < span > 文件列表< / span > < / a > < / li >
< li > < a href = "globals.html" > < span > 文件成员< / span > < / a > < / li >
< / ul >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
2022-11-10 03:34:52 +08:00
< li class = "navelem" > < a class = "el" href = "dir_3bfaf0217183ded7409ebd120766862d.html" > gitt< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_876bb78db91ff67e2b56e1228af3574e.html" > MicrochipFor32< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_2f7647e102f146f5202708a3606f65a7.html" > bscpp_Device< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_30daf241509c7468077f82cc2dd6aa8a.html" > bscpp_MPU6050< / a > < / li > < / ul >
2022-11-08 01:47:39 +08:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#define-members" > 宏定义< / a > |
< a href = "#func-members" > 函数< / a > |
< a href = "#var-members" > 变量< / a > < / div >
< div class = "headertitle" > < div class = "title" > mpu6050.cpp 文件参考< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include " < a class = "el" href = "bscpp___i_i_c___s_t_m32_8h_source.html" > bscpp_IIC_STM32.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "mpu6050_8h_source.html" > mpu6050.h< / a > " < / code > < br / >
< / div > < div class = "textblock" > < div class = "dynheader" >
mpu6050.cpp 的引用(Include)关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp__incl.png" border = "0" usemap = "#a_d_1_2gitt_2_microchip_for32_2bscpp___device_2bscpp___m_p_u6050_2mpu6050_8cpp" alt = "" / > < / div >
< map name = "a_d_1_2gitt_2_microchip_for32_2bscpp___device_2bscpp___m_p_u6050_2mpu6050_8cpp" id = "a_d_1_2gitt_2_microchip_for32_2bscpp___device_2bscpp___m_p_u6050_2mpu6050_8cpp" >
< area shape = "rect" title = " " alt = "" coords = "79,5,288,60" / >
< area shape = "rect" href = "bscpp___i_i_c___s_t_m32_8h.html" title = "实现针对STM32的软件IIC类" alt = "" coords = "46,108,185,133" / >
< area shape = "rect" href = "mpu6050_8h.html" title = " " alt = "" coords = "223,108,309,133" / >
< area shape = "rect" title = " " alt = "" coords = "5,181,63,207" / >
< area shape = "rect" href = "varint_8h.html" title = " " alt = "" coords = "152,255,215,280" / >
< area shape = "rect" href = "bscpp___i_i_c_8h.html" title = "本类实现软件IIC功能 依此类派生出其他软件IIC功能" alt = "" coords = "138,181,229,207" / >
< area shape = "rect" title = " " alt = "" coords = "151,328,216,353" / >
< area shape = "rect" title = " " alt = "" coords = "303,181,365,207" / >
< / map >
< / div >
< / div >
< p > < a href = "mpu6050_8cpp_source.html" > 浏览源代码.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "define-members" name = "define-members" > < / a >
宏定义< / h2 > < / td > < / tr >
< tr class = "memitem:ae7d7fd8356f1a04698bf36a2ff087f7b" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#ae7d7fd8356f1a04698bf36a2ff087f7b" > delay_ms< / a > (var)      HAL_Delay(var)< / td > < / tr >
< tr class = "separator:ae7d7fd8356f1a04698bf36a2ff087f7b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
函数< / h2 > < / td > < / tr >
< tr class = "memitem:ab1f8c6111d59b60a2edb4ee3e8aa3113" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" > MPU_Init< / a > (void)< / td > < / tr >
< tr class = "memdesc:ab1f8c6111d59b60a2edb4ee3e8aa3113" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 初始化MPU6050 < a href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:ab1f8c6111d59b60a2edb4ee3e8aa3113" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa27cc30326ce4980b289a0e1c3f76b5e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#aa27cc30326ce4980b289a0e1c3f76b5e" > MPU_Set_Gyro_Fsr< / a > (< a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > fsr)< / td > < / tr >
< tr class = "memdesc:aa27cc30326ce4980b289a0e1c3f76b5e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 设置MPU6050陀螺仪传感器满量程范围 < a href = "mpu6050_8cpp.html#aa27cc30326ce4980b289a0e1c3f76b5e" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:aa27cc30326ce4980b289a0e1c3f76b5e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6c391137bc5880c3b5e15e84c5a3380f" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a6c391137bc5880c3b5e15e84c5a3380f" > MPU_Set_Accel_Fsr< / a > (< a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > fsr)< / td > < / tr >
< tr class = "memdesc:a6c391137bc5880c3b5e15e84c5a3380f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 设置MPU6050加速度传感器满量程范围 < a href = "mpu6050_8cpp.html#a6c391137bc5880c3b5e15e84c5a3380f" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a6c391137bc5880c3b5e15e84c5a3380f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a2fb9973c9f5ea5327649d0eef5e96217" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a2fb9973c9f5ea5327649d0eef5e96217" > MPU_Set_LPF< / a > (< a class = "el" href = "varint_8h.html#ace9d960e74685e2cd84b36132dbbf8aa" > u16< / a > lpf)< / td > < / tr >
< tr class = "memdesc:a2fb9973c9f5ea5327649d0eef5e96217" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 设置MPU6050的数字低通滤波器 < a href = "mpu6050_8cpp.html#a2fb9973c9f5ea5327649d0eef5e96217" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a2fb9973c9f5ea5327649d0eef5e96217" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a04e58232ce838e94d54aa2b53287cb41" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a04e58232ce838e94d54aa2b53287cb41" > MPU_Set_Rate< / a > (< a class = "el" href = "varint_8h.html#ace9d960e74685e2cd84b36132dbbf8aa" > u16< / a > rate)< / td > < / tr >
< tr class = "memdesc:a04e58232ce838e94d54aa2b53287cb41" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 设置MPU6050的采样率(假定Fs=1KHz) < a href = "mpu6050_8cpp.html#a04e58232ce838e94d54aa2b53287cb41" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a04e58232ce838e94d54aa2b53287cb41" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a41eaf87c26b1281d9d5fc6a06abcf2a8" > < td class = "memItemLeft" align = "right" valign = "top" > short  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a41eaf87c26b1281d9d5fc6a06abcf2a8" > MPU_Get_Temperature< / a > (void)< / td > < / tr >
< tr class = "memdesc:a41eaf87c26b1281d9d5fc6a06abcf2a8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 得到温度值 < a href = "mpu6050_8cpp.html#a41eaf87c26b1281d9d5fc6a06abcf2a8" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a41eaf87c26b1281d9d5fc6a06abcf2a8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8f28105f9dcccc709b78d7d0ce497633" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a8f28105f9dcccc709b78d7d0ce497633" > MPU_Get_Gyroscope< / a > (short *gx, short *gy, short *gz)< / td > < / tr >
< tr class = "memdesc:a8f28105f9dcccc709b78d7d0ce497633" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 得到陀螺仪值(原始值) < a href = "mpu6050_8cpp.html#a8f28105f9dcccc709b78d7d0ce497633" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a8f28105f9dcccc709b78d7d0ce497633" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a2a0a02f6d7c597828a0cc282c76e99e3" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a2a0a02f6d7c597828a0cc282c76e99e3" > MPU_Get_Accelerometer< / a > (short *ax, short *ay, short *az)< / td > < / tr >
< tr class = "memdesc:a2a0a02f6d7c597828a0cc282c76e99e3" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > 得到加速度值(原始值) < a href = "mpu6050_8cpp.html#a2a0a02f6d7c597828a0cc282c76e99e3" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a2a0a02f6d7c597828a0cc282c76e99e3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a59b1c26b234be88e97435a1b3c061330" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a59b1c26b234be88e97435a1b3c061330" > MPU_Write_Len< / a > (< a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > addr, < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > < a class = "el" href = "group___d_r_i_v_e_r_s.html#ga5448c351fc95ff052b110eee80e5f75c" > reg< / a > , < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > len, < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > *buf)< / td > < / tr >
< tr class = "memdesc:a59b1c26b234be88e97435a1b3c061330" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > IIC连续写 < a href = "mpu6050_8cpp.html#a59b1c26b234be88e97435a1b3c061330" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a59b1c26b234be88e97435a1b3c061330" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a63161fa966899e4e7c5791e40ebf2b0a" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a63161fa966899e4e7c5791e40ebf2b0a" > MPU_Read_Len< / a > (< a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > addr, < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > < a class = "el" href = "group___d_r_i_v_e_r_s.html#ga5448c351fc95ff052b110eee80e5f75c" > reg< / a > , < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > len, < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > *buf)< / td > < / tr >
< tr class = "memdesc:a63161fa966899e4e7c5791e40ebf2b0a" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > IIC连续读 < a href = "mpu6050_8cpp.html#a63161fa966899e4e7c5791e40ebf2b0a" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a63161fa966899e4e7c5791e40ebf2b0a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0be9b422bb8613f8444db4af5234e1a1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" > MPU_Write_Byte< / a > (< a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > < a class = "el" href = "group___d_r_i_v_e_r_s.html#ga5448c351fc95ff052b110eee80e5f75c" > reg< / a > , < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > data)< / td > < / tr >
< tr class = "memdesc:a0be9b422bb8613f8444db4af5234e1a1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > IIC写一个字节 < a href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a0be9b422bb8613f8444db4af5234e1a1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a17c11d19a2bb21d61610f08cb2cbe2f7" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a17c11d19a2bb21d61610f08cb2cbe2f7" > MPU_Read_Byte< / a > (< a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > < a class = "el" href = "group___d_r_i_v_e_r_s.html#ga5448c351fc95ff052b110eee80e5f75c" > reg< / a > )< / td > < / tr >
< tr class = "memdesc:a17c11d19a2bb21d61610f08cb2cbe2f7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > IIC读一个字节 < a href = "mpu6050_8cpp.html#a17c11d19a2bb21d61610f08cb2cbe2f7" > 更多...< / a > < br / > < / td > < / tr >
< tr class = "separator:a17c11d19a2bb21d61610f08cb2cbe2f7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "var-members" name = "var-members" > < / a >
变量< / h2 > < / td > < / tr >
< tr class = "memitem:a604895d6ae2b01114260172650252fce" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classbscpp___i_i_c___s_t_m32.html" > bscpp_IIC_STM32< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "mpu6050_8cpp.html#a604895d6ae2b01114260172650252fce" > mpu6050IIC< / a > (IIC_SCK_GPIO_Port, IIC_SCK_Pin, IIC_SDA_GPIO_Port, IIC_SDA_Pin)< / td > < / tr >
< tr class = "separator:a604895d6ae2b01114260172650252fce" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > 宏定义说明< / h2 >
< a id = "ae7d7fd8356f1a04698bf36a2ff087f7b" name = "ae7d7fd8356f1a04698bf36a2ff087f7b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae7d7fd8356f1a04698bf36a2ff087f7b" > ◆   < / a > < / span > delay_ms< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define delay_ms< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > var< / td > < td > )< / td >
< td >       HAL_Delay(var)< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00016" > 16< / a > 行定义.< / p >
< / div >
< / div >
< h2 class = "groupheader" > 函数说明< / h2 >
< a id = "a2a0a02f6d7c597828a0cc282c76e99e3" name = "a2a0a02f6d7c597828a0cc282c76e99e3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2a0a02f6d7c597828a0cc282c76e99e3" > ◆   < / a > < / span > MPU_Get_Accelerometer()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Get_Accelerometer < / td >
< td > (< / td >
< td class = "paramtype" > short *  < / td >
< td class = "paramname" > < em > ax< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > short *  < / td >
< td class = "paramname" > < em > ay< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > short *  < / td >
< td class = "paramname" > < em > az< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 得到加速度值(原始值) < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > ax< / td > < td > 陀螺仪a轴的原始读数(带符号) < / td > < / tr >
< tr > < td class = "paramname" > ay< / td > < td > 陀螺仪a轴的原始读数(带符号) < / td > < / tr >
< tr > < td class = "paramname" > ax< / td > < td > 陀螺仪a轴的原始读数(带符号) < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00137" > 137< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a2a0a02f6d7c597828a0cc282c76e99e3_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a2a0a02f6d7c597828a0cc282c76e99e3_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a2a0a02f6d7c597828a0cc282c76e99e3_cgraph" id = "ampu6050_8cpp_a2a0a02f6d7c597828a0cc282c76e99e3_cgraph" >
< area shape = "rect" title = "得到加速度值(原始值)" alt = "" coords = "5,129,176,155" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a63161fa966899e4e7c5791e40ebf2b0a" title = "IIC连续读" alt = "" coords = "224,129,340,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa012a136b05989578a3f1240baadda3d" title = "使用总线接收定长数据" alt = "" coords = "388,129,527,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#abba11573786999e740a6291c048bdc2d" title = "接收IIC一个字节信号" alt = "" coords = "579,5,737,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a8b3c4c55982c4e07426003dac660ee30" title = "发送IIC应答信号" alt = "" coords = "577,55,739,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "575,104,741,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "589,153,727,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "590,203,726,228" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "579,252,737,277" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "789,80,932,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "793,129,929,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "793,179,929,204" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a8f28105f9dcccc709b78d7d0ce497633" name = "a8f28105f9dcccc709b78d7d0ce497633" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8f28105f9dcccc709b78d7d0ce497633" > ◆   < / a > < / span > MPU_Get_Gyroscope()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Get_Gyroscope < / td >
< td > (< / td >
< td class = "paramtype" > short *  < / td >
< td class = "paramname" > < em > gx< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > short *  < / td >
< td class = "paramname" > < em > gy< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > short *  < / td >
< td class = "paramname" > < em > gz< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 得到陀螺仪值(原始值) < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > gx< / td > < td > 陀螺仪x轴的原始读数(带符号) < / td > < / tr >
< tr > < td class = "paramname" > gy< / td > < td > 陀螺仪y轴的原始读数(带符号) < / td > < / tr >
< tr > < td class = "paramname" > gx< / td > < td > 陀螺仪z轴的原始读数(带符号) < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00121" > 121< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a8f28105f9dcccc709b78d7d0ce497633_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a8f28105f9dcccc709b78d7d0ce497633_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a8f28105f9dcccc709b78d7d0ce497633_cgraph" id = "ampu6050_8cpp_a8f28105f9dcccc709b78d7d0ce497633_cgraph" >
< area shape = "rect" title = "得到陀螺仪值(原始值)" alt = "" coords = "5,129,155,155" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a63161fa966899e4e7c5791e40ebf2b0a" title = "IIC连续读" alt = "" coords = "203,129,319,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa012a136b05989578a3f1240baadda3d" title = "使用总线接收定长数据" alt = "" coords = "367,129,505,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#abba11573786999e740a6291c048bdc2d" title = "接收IIC一个字节信号" alt = "" coords = "557,5,716,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a8b3c4c55982c4e07426003dac660ee30" title = "发送IIC应答信号" alt = "" coords = "555,55,718,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "553,104,720,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "568,153,705,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "569,203,705,228" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "557,252,716,277" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "768,80,911,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "771,129,907,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "771,179,907,204" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a41eaf87c26b1281d9d5fc6a06abcf2a8" name = "a41eaf87c26b1281d9d5fc6a06abcf2a8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a41eaf87c26b1281d9d5fc6a06abcf2a8" > ◆   < / a > < / span > MPU_Get_Temperature()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > short MPU_Get_Temperature < / td >
< td > (< / td >
< td class = "paramtype" > void  < / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 得到温度值 < / p >
< dl class = "section return" > < dt > 返回< / dt > < dd > 温度值(扩大了100倍) < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00105" > 105< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a41eaf87c26b1281d9d5fc6a06abcf2a8_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a41eaf87c26b1281d9d5fc6a06abcf2a8_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a41eaf87c26b1281d9d5fc6a06abcf2a8_cgraph" id = "ampu6050_8cpp_a41eaf87c26b1281d9d5fc6a06abcf2a8_cgraph" >
< area shape = "rect" title = "得到温度值" alt = "" coords = "5,129,164,155" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a63161fa966899e4e7c5791e40ebf2b0a" title = "IIC连续读" alt = "" coords = "212,129,328,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa012a136b05989578a3f1240baadda3d" title = "使用总线接收定长数据" alt = "" coords = "376,129,515,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#abba11573786999e740a6291c048bdc2d" title = "接收IIC一个字节信号" alt = "" coords = "567,5,725,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a8b3c4c55982c4e07426003dac660ee30" title = "发送IIC应答信号" alt = "" coords = "565,55,727,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "563,104,729,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "577,153,715,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "578,203,714,228" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "567,252,725,277" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "777,80,920,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "781,129,917,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "781,179,917,204" / >
< / map >
< / div >
< / div >
< / div >
< a id = "ab1f8c6111d59b60a2edb4ee3e8aa3113" name = "ab1f8c6111d59b60a2edb4ee3e8aa3113" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab1f8c6111d59b60a2edb4ee3e8aa3113" > ◆   < / a > < / span > MPU_Init()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Init < / td >
< td > (< / td >
< td class = "paramtype" > void  < / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 初始化MPU6050 < / p >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00025" > 25< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_ab1f8c6111d59b60a2edb4ee3e8aa3113_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_ab1f8c6111d59b60a2edb4ee3e8aa3113_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_ab1f8c6111d59b60a2edb4ee3e8aa3113_cgraph" id = "ampu6050_8cpp_ab1f8c6111d59b60a2edb4ee3e8aa3113_cgraph" >
< area shape = "rect" title = "初始化MPU6050" alt = "" coords = "5,179,80,204" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a17c11d19a2bb21d61610f08cb2cbe2f7" title = "IIC读一个字节" alt = "" coords = "139,79,261,104" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a6c391137bc5880c3b5e15e84c5a3380f" title = "设置MPU6050加速度传感器满量程范围" alt = "" coords = "128,128,272,153" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" title = "IIC写一个字节" alt = "" coords = "507,204,629,229" / >
< area shape = "rect" href = "mpu6050_8cpp.html#aa27cc30326ce4980b289a0e1c3f76b5e" title = "设置MPU6050陀螺仪传感器满量程范围" alt = "" coords = "320,179,459,204" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a04e58232ce838e94d54aa2b53287cb41" title = "设置MPU6050的采样率(假定Fs=1KHz)" alt = "" coords = "144,280,256,305" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9fa6332b7a0449f9c539bb783030c29e" title = "使用总线接收一个字节数据" alt = "" coords = "677,104,868,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#abba11573786999e740a6291c048bdc2d" title = "接收IIC一个字节信号" alt = "" coords = "920,5,1079,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a8b3c4c55982c4e07426003dac660ee30" title = "发送IIC应答信号" alt = "" coords = "918,55,1081,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "916,104,1083,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "931,153,1068,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "931,203,1067,228" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "920,252,1079,277" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "1131,80,1273,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "1134,129,1270,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "1134,179,1270,204" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#acf6c71a5be44ec8367873501413c4a46" title = "使用总线发送一个字节数据" alt = "" coords = "677,203,868,228" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a2fb9973c9f5ea5327649d0eef5e96217" title = "设置MPU6050的数字低通滤波器" alt = "" coords = "335,280,444,305" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a17c11d19a2bb21d61610f08cb2cbe2f7" name = "a17c11d19a2bb21d61610f08cb2cbe2f7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a17c11d19a2bb21d61610f08cb2cbe2f7" > ◆   < / a > < / span > MPU_Read_Byte()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Read_Byte < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > reg< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > IIC读一个字节 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > reg< / td > < td > 寄存器地址 < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00187" > 187< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_cgraph" id = "ampu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_cgraph" >
< area shape = "rect" title = "IIC读一个字节" alt = "" coords = "5,129,128,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9fa6332b7a0449f9c539bb783030c29e" title = "使用总线接收一个字节数据" alt = "" coords = "176,129,367,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#abba11573786999e740a6291c048bdc2d" title = "接收IIC一个字节信号" alt = "" coords = "419,5,577,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a8b3c4c55982c4e07426003dac660ee30" title = "发送IIC应答信号" alt = "" coords = "417,55,579,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "415,104,581,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "429,153,567,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "430,203,566,228" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "419,252,577,277" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "629,80,772,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "633,129,769,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "633,179,769,204" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_icgraph" id = "ampu6050_8cpp_a17c11d19a2bb21d61610f08cb2cbe2f7_icgraph" >
< area shape = "rect" title = "IIC读一个字节" alt = "" coords = "128,5,251,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" title = "初始化MPU6050" alt = "" coords = "5,5,80,31" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a63161fa966899e4e7c5791e40ebf2b0a" name = "a63161fa966899e4e7c5791e40ebf2b0a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a63161fa966899e4e7c5791e40ebf2b0a" > ◆   < / a > < / span > MPU_Read_Len()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Read_Len < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > addr< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > reg< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > len< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > *  < / td >
< td class = "paramname" > < em > buf< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > IIC连续读 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > addr< / td > < td > 器件地址 < / td > < / tr >
< tr > < td class = "paramname" > reg< / td > < td > 寄存器地址 < / td > < / tr >
< tr > < td class = "paramname" > len< / td > < td > 读取长度 < / td > < / tr >
< tr > < td class = "paramname" > *buf< / td > < td > 读取数据区 < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00168" > 168< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_cgraph" id = "ampu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_cgraph" >
< area shape = "rect" title = "IIC连续读" alt = "" coords = "5,129,121,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa012a136b05989578a3f1240baadda3d" title = "使用总线接收定长数据" alt = "" coords = "169,129,308,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#abba11573786999e740a6291c048bdc2d" title = "接收IIC一个字节信号" alt = "" coords = "360,5,519,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a8b3c4c55982c4e07426003dac660ee30" title = "发送IIC应答信号" alt = "" coords = "358,55,521,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "356,104,523,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "371,153,508,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "371,203,507,228" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "360,252,519,277" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "571,80,713,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "574,129,710,155" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "574,179,710,204" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_icgraph" id = "ampu6050_8cpp_a63161fa966899e4e7c5791e40ebf2b0a_icgraph" >
< area shape = "rect" title = "IIC连续读" alt = "" coords = "224,55,340,80" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a2a0a02f6d7c597828a0cc282c76e99e3" title = "得到加速度值(原始值)" alt = "" coords = "5,5,176,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a8f28105f9dcccc709b78d7d0ce497633" title = "得到陀螺仪值(原始值)" alt = "" coords = "16,55,165,80" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a41eaf87c26b1281d9d5fc6a06abcf2a8" title = "得到温度值" alt = "" coords = "11,104,170,129" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a6c391137bc5880c3b5e15e84c5a3380f" name = "a6c391137bc5880c3b5e15e84c5a3380f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6c391137bc5880c3b5e15e84c5a3380f" > ◆   < / a > < / span > MPU_Set_Accel_Fsr()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Set_Accel_Fsr < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > fsr< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 设置MPU6050加速度传感器满量程范围 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > fsr< / td > < td > 0,±2g 1,±4g 2,±8g 3,±16g < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00067" > 67< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_cgraph" id = "ampu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_cgraph" >
< area shape = "rect" title = "设置MPU6050加速度传感器满量程范围" alt = "" coords = "5,80,149,105" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" title = "IIC写一个字节" alt = "" coords = "197,80,320,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#acf6c71a5be44ec8367873501413c4a46" title = "使用总线发送一个字节数据" alt = "" coords = "368,80,559,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "607,104,773,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "621,153,759,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "622,5,758,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "611,55,769,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "821,31,964,56" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "825,80,961,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "825,129,961,155" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_icgraph" id = "ampu6050_8cpp_a6c391137bc5880c3b5e15e84c5a3380f_icgraph" >
< area shape = "rect" title = "设置MPU6050加速度传感器满量程范围" alt = "" coords = "128,5,272,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" title = "初始化MPU6050" alt = "" coords = "5,5,80,31" / >
< / map >
< / div >
< / div >
< / div >
< a id = "aa27cc30326ce4980b289a0e1c3f76b5e" name = "aa27cc30326ce4980b289a0e1c3f76b5e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa27cc30326ce4980b289a0e1c3f76b5e" > ◆   < / a > < / span > MPU_Set_Gyro_Fsr()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Set_Gyro_Fsr < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > fsr< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 设置MPU6050陀螺仪传感器满量程范围 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > fsr< / td > < td > 0,±250dps 1,±500dps 2,±1000dps 3,±2000dps < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00055" > 55< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_cgraph" id = "ampu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_cgraph" >
< area shape = "rect" title = "设置MPU6050陀螺仪传感器满量程范围" alt = "" coords = "5,80,144,105" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" title = "IIC写一个字节" alt = "" coords = "192,80,315,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#acf6c71a5be44ec8367873501413c4a46" title = "使用总线发送一个字节数据" alt = "" coords = "363,80,553,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "601,104,768,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "616,153,753,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "617,5,753,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "605,55,764,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "816,31,959,56" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "819,80,955,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "819,129,955,155" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_icgraph" id = "ampu6050_8cpp_aa27cc30326ce4980b289a0e1c3f76b5e_icgraph" >
< area shape = "rect" title = "设置MPU6050陀螺仪传感器满量程范围" alt = "" coords = "128,5,267,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" title = "初始化MPU6050" alt = "" coords = "5,5,80,31" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a2fb9973c9f5ea5327649d0eef5e96217" name = "a2fb9973c9f5ea5327649d0eef5e96217" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2fb9973c9f5ea5327649d0eef5e96217" > ◆   < / a > < / span > MPU_Set_LPF()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Set_LPF < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#ace9d960e74685e2cd84b36132dbbf8aa" > u16< / a >   < / td >
< td class = "paramname" > < em > lpf< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 设置MPU6050的数字低通滤波器 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > lpf< / td > < td > 数字低通滤波频率(Hz) < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00076" > 76< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_cgraph" id = "ampu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_cgraph" >
< area shape = "rect" title = "设置MPU6050的数字低通滤波器" alt = "" coords = "5,80,115,105" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" title = "IIC写一个字节" alt = "" coords = "163,80,285,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#acf6c71a5be44ec8367873501413c4a46" title = "使用总线发送一个字节数据" alt = "" coords = "333,80,524,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "572,104,739,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "587,153,724,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "587,5,723,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "576,55,735,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "787,31,929,56" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "790,80,926,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "790,129,926,155" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_icgraph" id = "ampu6050_8cpp_a2fb9973c9f5ea5327649d0eef5e96217_icgraph" >
< area shape = "rect" title = "设置MPU6050的数字低通滤波器" alt = "" coords = "288,5,397,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a04e58232ce838e94d54aa2b53287cb41" title = "设置MPU6050的采样率(假定Fs=1KHz)" alt = "" coords = "128,5,240,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" title = "初始化MPU6050" alt = "" coords = "5,5,80,31" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a04e58232ce838e94d54aa2b53287cb41" name = "a04e58232ce838e94d54aa2b53287cb41" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a04e58232ce838e94d54aa2b53287cb41" > ◆   < / a > < / span > MPU_Set_Rate()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Set_Rate < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#ace9d960e74685e2cd84b36132dbbf8aa" > u16< / a >   < / td >
< td class = "paramname" > < em > rate< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > 设置MPU6050的采样率(假定Fs=1KHz) < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > rate< / td > < td > 4~1000(Hz) < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00092" > 92< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_cgraph" id = "ampu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_cgraph" >
< area shape = "rect" title = "设置MPU6050的采样率(假定Fs=1KHz)" alt = "" coords = "5,80,117,105" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a2fb9973c9f5ea5327649d0eef5e96217" title = "设置MPU6050的数字低通滤波器" alt = "" coords = "165,105,275,131" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a0be9b422bb8613f8444db4af5234e1a1" title = "IIC写一个字节" alt = "" coords = "323,80,445,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#acf6c71a5be44ec8367873501413c4a46" title = "使用总线发送一个字节数据" alt = "" coords = "493,80,684,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "732,104,899,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "747,153,884,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "747,5,883,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "736,55,895,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "947,31,1089,56" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "950,80,1086,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "950,129,1086,155" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_icgraph" id = "ampu6050_8cpp_a04e58232ce838e94d54aa2b53287cb41_icgraph" >
< area shape = "rect" title = "设置MPU6050的采样率(假定Fs=1KHz)" alt = "" coords = "128,5,240,31" / >
< area shape = "rect" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" title = "初始化MPU6050" alt = "" coords = "5,5,80,31" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a0be9b422bb8613f8444db4af5234e1a1" name = "a0be9b422bb8613f8444db4af5234e1a1" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0be9b422bb8613f8444db4af5234e1a1" > ◆   < / a > < / span > MPU_Write_Byte()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Write_Byte < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > reg< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > data< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > IIC写一个字节 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > reg< / td > < td > 寄存器地址 < / td > < / tr >
< tr > < td class = "paramname" > data< / td > < td > 数据 < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00178" > 178< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_cgraph" id = "ampu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_cgraph" >
< area shape = "rect" title = "IIC写一个字节" alt = "" coords = "5,80,128,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#acf6c71a5be44ec8367873501413c4a46" title = "使用总线发送一个字节数据" alt = "" coords = "176,80,367,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "415,104,581,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "429,153,567,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "430,5,566,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "419,55,577,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "629,31,772,56" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "633,80,769,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "633,129,769,155" / >
< / map >
< / div >
< div class = "dynheader" >
这是这个函数的调用关系图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_icgraph.png" border = "0" usemap = "#ampu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_icgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_icgraph" id = "ampu6050_8cpp_a0be9b422bb8613f8444db4af5234e1a1_icgraph" >
< area shape = "rect" title = "IIC写一个字节" alt = "" coords = "507,90,629,115" / >
< area shape = "rect" href = "mpu6050_8cpp.html#ab1f8c6111d59b60a2edb4ee3e8aa3113" title = "初始化MPU6050" alt = "" coords = "5,64,80,90" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a6c391137bc5880c3b5e15e84c5a3380f" title = "设置MPU6050加速度传感器满量程范围" alt = "" coords = "128,39,272,64" / >
< area shape = "rect" href = "mpu6050_8cpp.html#aa27cc30326ce4980b289a0e1c3f76b5e" title = "设置MPU6050陀螺仪传感器满量程范围" alt = "" coords = "320,90,459,115" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a2fb9973c9f5ea5327649d0eef5e96217" title = "设置MPU6050的数字低通滤波器" alt = "" coords = "335,139,444,164" / >
< area shape = "rect" href = "mpu6050_8cpp.html#a04e58232ce838e94d54aa2b53287cb41" title = "设置MPU6050的采样率(假定Fs=1KHz)" alt = "" coords = "144,140,256,166" / >
< / map >
< / div >
< / div >
< / div >
< a id = "a59b1c26b234be88e97435a1b3c061330" name = "a59b1c26b234be88e97435a1b3c061330" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a59b1c26b234be88e97435a1b3c061330" > ◆   < / a > < / span > MPU_Write_Len()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > MPU_Write_Len < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > addr< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > reg< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a >   < / td >
< td class = "paramname" > < em > len< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "varint_8h.html#a92c50087ca0e64fa93fc59402c55f8ca" > u8< / a > *  < / td >
< td class = "paramname" > < em > buf< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > IIC连续写 < / p >
< dl class = "params" > < dt > 参数< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > addr< / td > < td > 器件地址 < / td > < / tr >
< tr > < td class = "paramname" > reg< / td > < td > 寄存器地址 < / td > < / tr >
< tr > < td class = "paramname" > len< / td > < td > 写入长度 < / td > < / tr >
< tr > < td class = "paramname" > *buf< / td > < td > 数据区 < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > 返回< / dt > < dd > 0,设置成功 < / dd > < / dl >
< p class = "definition" > 在文件 < a class = "el" href = "mpu6050_8cpp_source.html" > mpu6050.cpp< / a > 第 < a class = "el" href = "mpu6050_8cpp_source.html#l00156" > 156< / a > 行定义.< / p >
< div class = "dynheader" >
函数调用图:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "mpu6050_8cpp_a59b1c26b234be88e97435a1b3c061330_cgraph.png" border = "0" usemap = "#ampu6050_8cpp_a59b1c26b234be88e97435a1b3c061330_cgraph" alt = "" / > < / div >
< map name = "ampu6050_8cpp_a59b1c26b234be88e97435a1b3c061330_cgraph" id = "ampu6050_8cpp_a59b1c26b234be88e97435a1b3c061330_cgraph" >
< area shape = "rect" title = "IIC连续写" alt = "" coords = "5,80,123,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a90560b42df225b0af3b0a8c7eef1f6c1" title = "使用总线发送定长数据" alt = "" coords = "171,80,311,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#ac7a376c17d9188557c5016213180d628" title = "发送IIC一个字节信号" alt = "" coords = "359,104,525,129" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#afd0d1de6960b3c063d76bad5ca6706ad" title = "发送IIC开始信号" alt = "" coords = "373,153,511,179" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9b34db5312bee0c9decafc3e12231e65" title = "发送IIC停止信号" alt = "" coords = "374,5,510,31" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#aa1dd077b2e7f83735b2b57edd1aae7a0" title = "等待应答信号" alt = "" coords = "363,55,521,80" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a9ecb52cad582a9fbf6969fb1869437da" title = "时序中的延时 在此处短暂延时" alt = "" coords = "573,31,716,56" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a1dfe20de93d00a928e82f087c1f26100" title = "控制SCK管脚口" alt = "" coords = "577,80,713,105" / >
< area shape = "rect" href = "classbscpp___i_i_c.html#a03b0f1f860d09779d5491c9035fd4c32" title = "控制SDA管脚口" alt = "" coords = "577,129,713,155" / >
< / map >
< / div >
< / div >
< / div >
< h2 class = "groupheader" > 变量说明< / h2 >
< a id = "a604895d6ae2b01114260172650252fce" name = "a604895d6ae2b01114260172650252fce" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a604895d6ae2b01114260172650252fce" > ◆   < / a > < / span > mpu6050IIC< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classbscpp___i_i_c___s_t_m32.html" > bscpp_IIC_STM32< / a > mpu6050IIC(IIC_SCK_GPIO_Port, IIC_SCK_Pin, IIC_SDA_GPIO_Port, IIC_SDA_Pin) < / td >
< td > (< / td >
< td class = "paramtype" > IIC_SCK_GPIO_Port  < / td >
< td class = "paramname" > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > IIC_SCK_Pin  < / td >
< td class = "paramname" > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > IIC_SDA_GPIO_Port  < / td >
< td class = "paramname" > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > IIC_SDA_Pin  < / td >
< td class = "paramname" >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
制作者  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.5
< / small > < / address >
< / body >
< / html >