Files
MicrochipFor32/Doc/xml/mpu6050_8h.xml

1366 lines
96 KiB
XML
Raw Normal View History

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.5" xml:lang="zh">
<compounddef id="mpu6050_8h" kind="file" language="C++">
<compoundname>mpu6050.h</compoundname>
<includes local="yes">main.h</includes>
<includes refid="varint_8h" local="yes">varint.h</includes>
<includedby refid="mpu6050_8cpp" local="yes">D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp</includedby>
<incdepgraph>
<node id="3">
<label>varint.h</label>
<link refid="varint_8h"/>
<childnode refid="4" relation="include">
</childnode>
</node>
<node id="1">
<label>D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h</label>
<link refid="mpu6050_8h"/>
<childnode refid="2" relation="include">
</childnode>
<childnode refid="3" relation="include">
</childnode>
</node>
<node id="2">
<label>main.h</label>
</node>
<node id="4">
<label>stdint.h</label>
</node>
</incdepgraph>
<invincdepgraph>
<node id="2">
<label>D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp</label>
<link refid="mpu6050_8cpp"/>
</node>
<node id="1">
<label>D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h</label>
<link refid="mpu6050_8h"/>
<childnode refid="2" relation="include">
</childnode>
</node>
</invincdepgraph>
<sectiondef kind="define">
<memberdef kind="define" id="mpu6050_8h_1af02b592f85ebbfcc6f5e13d8287832de" prot="public" static="no">
<name>MPU_SELF_TESTX_REG</name>
<initializer>0X0D</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="20" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="20" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a029c571acc0e3a941d14d4af3e3ecd5f" prot="public" static="no">
<name>MPU_SELF_TESTY_REG</name>
<initializer>0X0E</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="21" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="21" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1aa7f091c311c419133b4799a37919ce24" prot="public" static="no">
<name>MPU_SELF_TESTZ_REG</name>
<initializer>0X0F</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="22" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="22" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a9f2d6b09b992598daadf6a0afa9a8b9c" prot="public" static="no">
<name>MPU_SELF_TESTA_REG</name>
<initializer>0X10</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="23" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="23" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a4b95cfafadb4b30146a17fac36819ca3" prot="public" static="no">
<name>MPU_SAMPLE_RATE_REG</name>
<initializer>0X19</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="24" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="24" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a5034e2fc680fc68faa369a48f6955837" prot="public" static="no">
<name>MPU_CFG_REG</name>
<initializer>0X1A</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="25" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="25" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ac8ce2e66126327cf30cfba19c4c38db5" prot="public" static="no">
<name>MPU_GYRO_CFG_REG</name>
<initializer>0X1B</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="26" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="26" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a7bc1a37b846a3869f13a29e00072bbc7" prot="public" static="no">
<name>MPU_ACCEL_CFG_REG</name>
<initializer>0X1C</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="27" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="27" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ad214879acffccefd843d291949a2abb6" prot="public" static="no">
<name>MPU_MOTION_DET_REG</name>
<initializer>0X1F</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="28" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="28" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a6ac27367cd834a85810e99df72b97621" prot="public" static="no">
<name>MPU_FIFO_EN_REG</name>
<initializer>0X23</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="29" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="29" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a077d9362ddf1c52a0fca0740164533ca" prot="public" static="no">
<name>MPU_I2CMST_CTRL_REG</name>
<initializer>0X24</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="30" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="30" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a0482943c31faa0c896d63ef5d66755e1" prot="public" static="no">
<name>MPU_I2CSLV0_ADDR_REG</name>
<initializer>0X25</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="31" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="31" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a53122cbda4565a4a060e5df3bb9a37a7" prot="public" static="no">
<name>MPU_I2CSLV0_REG</name>
<initializer>0X26</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="32" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="32" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a22b266f1daab1a09f9257cfeb96fbb68" prot="public" static="no">
<name>MPU_I2CSLV0_CTRL_REG</name>
<initializer>0X27</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="33" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="33" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a9123fc86edcdc301cbb75f7ebe4b5875" prot="public" static="no">
<name>MPU_I2CSLV1_ADDR_REG</name>
<initializer>0X28</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="34" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="34" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a7a0758891de15a4b4bf0ef2c4e75efeb" prot="public" static="no">
<name>MPU_I2CSLV1_REG</name>
<initializer>0X29</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="35" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="35" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a237cf43cb562d63ea2f2d98eeac464bc" prot="public" static="no">
<name>MPU_I2CSLV1_CTRL_REG</name>
<initializer>0X2A</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="36" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="36" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a5a7b90007c003c428c098d0073fa4f9c" prot="public" static="no">
<name>MPU_I2CSLV2_ADDR_REG</name>
<initializer>0X2B</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="37" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="37" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a1d01e992631966ee1af8795ec14710bc" prot="public" static="no">
<name>MPU_I2CSLV2_REG</name>
<initializer>0X2C</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="38" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="38" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a1c2971fc921e219f0060640349d4a58a" prot="public" static="no">
<name>MPU_I2CSLV2_CTRL_REG</name>
<initializer>0X2D</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="39" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="39" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a0627354a9a7143a3967bbf1552952e11" prot="public" static="no">
<name>MPU_I2CSLV3_ADDR_REG</name>
<initializer>0X2E</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="40" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="40" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a82236d7861a3a175cff0058d5d5b4716" prot="public" static="no">
<name>MPU_I2CSLV3_REG</name>
<initializer>0X2F</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="41" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="41" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ac907afde99231069287fa0d78c305549" prot="public" static="no">
<name>MPU_I2CSLV3_CTRL_REG</name>
<initializer>0X30</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="42" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="42" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a6fbb07805d44b04e97f4f7d30d7c65bf" prot="public" static="no">
<name>MPU_I2CSLV4_ADDR_REG</name>
<initializer>0X31</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="43" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="43" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a838f7301336bd077e84a3a4fbe6e16e7" prot="public" static="no">
<name>MPU_I2CSLV4_REG</name>
<initializer>0X32</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="44" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="44" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a5bf6ae395ef8815c28c23d5343116871" prot="public" static="no">
<name>MPU_I2CSLV4_DO_REG</name>
<initializer>0X33</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="45" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="45" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a144d40f6321e971c85d9987ceaedf539" prot="public" static="no">
<name>MPU_I2CSLV4_CTRL_REG</name>
<initializer>0X34</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="46" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="46" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ab62d9fd87688d16052273b6598d5572f" prot="public" static="no">
<name>MPU_I2CSLV4_DI_REG</name>
<initializer>0X35</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="47" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="47" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a818abd42a819632acfee736d8db636f5" prot="public" static="no">
<name>MPU_I2CMST_STA_REG</name>
<initializer>0X36</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="49" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="49" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a41676476ba5dbb1b213f8f8e252d17f9" prot="public" static="no">
<name>MPU_INTBP_CFG_REG</name>
<initializer>0X37</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="50" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="50" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1afa56d3602a6044562c45cecf6403fb8b" prot="public" static="no">
<name>MPU_INT_EN_REG</name>
<initializer>0X38</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="51" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="51" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a186faa987a57c9d2a3ea6bfaba0bdd46" prot="public" static="no">
<name>MPU_INT_STA_REG</name>
<initializer>0X3A</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="52" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="52" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a571a31cdf2a467b2b1df39fea686ea0d" prot="public" static="no">
<name>MPU_ACCEL_XOUTH_REG</name>
<initializer>0X3B</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="54" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="54" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ad7193ffe844d2c844b0c419a50d40173" prot="public" static="no">
<name>MPU_ACCEL_XOUTL_REG</name>
<initializer>0X3C</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="55" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="55" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a42eb93ccf84e25005cd1eca7c43b7516" prot="public" static="no">
<name>MPU_ACCEL_YOUTH_REG</name>
<initializer>0X3D</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="56" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="56" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1aa1b06e69bcbb83ced2e28a8891ee8558" prot="public" static="no">
<name>MPU_ACCEL_YOUTL_REG</name>
<initializer>0X3E</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="57" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="57" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1af3a12a4f04a41df24c977c491a4aad5f" prot="public" static="no">
<name>MPU_ACCEL_ZOUTH_REG</name>
<initializer>0X3F</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="58" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="58" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a82eb10a4b48c58f8bf7bc96a892533b6" prot="public" static="no">
<name>MPU_ACCEL_ZOUTL_REG</name>
<initializer>0X40</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="59" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="59" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1af2665b26b7f1ce9b3982a9f6418748e9" prot="public" static="no">
<name>MPU_TEMP_OUTH_REG</name>
<initializer>0X41</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="61" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="61" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a5f4a1c425564e1e56bfe51576ba3ea82" prot="public" static="no">
<name>MPU_TEMP_OUTL_REG</name>
<initializer>0X42</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="62" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="62" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a7e16f1a459d902b070ca67df67be862b" prot="public" static="no">
<name>MPU_GYRO_XOUTH_REG</name>
<initializer>0X43</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="64" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="64" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a0b2e09225774ed67f49666ec1bbea501" prot="public" static="no">
<name>MPU_GYRO_XOUTL_REG</name>
<initializer>0X44</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="65" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="65" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1af71ca06f446573faed7a73979237e51e" prot="public" static="no">
<name>MPU_GYRO_YOUTH_REG</name>
<initializer>0X45</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="66" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="66" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a0007fe50b455737a3076e38f300bce14" prot="public" static="no">
<name>MPU_GYRO_YOUTL_REG</name>
<initializer>0X46</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="67" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="67" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ad5811a104c711b123b648b46bcc6f929" prot="public" static="no">
<name>MPU_GYRO_ZOUTH_REG</name>
<initializer>0X47</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="68" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="68" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a289046a426f3c6ef18cb504c5e991652" prot="public" static="no">
<name>MPU_GYRO_ZOUTL_REG</name>
<initializer>0X48</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="69" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="69" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a93d37f52e6ac87e1ef103339b22770af" prot="public" static="no">
<name>MPU_I2CSLV0_DO_REG</name>
<initializer>0X63</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="71" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="71" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1af03578391ec1c0c6b357207c83ce28bb" prot="public" static="no">
<name>MPU_I2CSLV1_DO_REG</name>
<initializer>0X64</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="72" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="72" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a14db443ae863599bc0f16fa3733d4056" prot="public" static="no">
<name>MPU_I2CSLV2_DO_REG</name>
<initializer>0X65</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="73" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="73" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a4343d92e344dd56343094d46798a5e0e" prot="public" static="no">
<name>MPU_I2CSLV3_DO_REG</name>
<initializer>0X66</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="74" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="74" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ad7209fcea0ea70f90f6cb43e862f8f5b" prot="public" static="no">
<name>MPU_I2CMST_DELAY_REG</name>
<initializer>0X67</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="76" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="76" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a82c9cecb9ee30b37f8b054feca2bc1da" prot="public" static="no">
<name>MPU_SIGPATH_RST_REG</name>
<initializer>0X68</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="77" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="77" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a1e60421d39a0a24b0c513f309e1d6910" prot="public" static="no">
<name>MPU_MDETECT_CTRL_REG</name>
<initializer>0X69</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="78" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="78" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a0146ef35d7ff0b037eafb0a5dac53b0f" prot="public" static="no">
<name>MPU_USER_CTRL_REG</name>
<initializer>0X6A</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="79" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="79" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1abbe7ea135ee03eb0f1296ecb22be7554" prot="public" static="no">
<name>MPU_PWR_MGMT1_REG</name>
<initializer>0X6B</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="80" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="80" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a3fa9eb0485744e73d0274b198f0ad705" prot="public" static="no">
<name>MPU_PWR_MGMT2_REG</name>
<initializer>0X6C</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="81" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="81" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a9c04be29f6f59066df910560a1eb9ddf" prot="public" static="no">
<name>MPU_FIFO_CNTH_REG</name>
<initializer>0X72</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="82" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="82" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a66dc73eec1f79cfefe8ad3d4c2a81c0d" prot="public" static="no">
<name>MPU_FIFO_CNTL_REG</name>
<initializer>0X73</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="83" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="83" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1af3acc9068f9c3b6a54c3d65ca91dc52e" prot="public" static="no">
<name>MPU_FIFO_RW_REG</name>
<initializer>0X74</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="84" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="84" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1a9668e5ccfcfb0aa64da044a381a56f9c" prot="public" static="no">
<name>MPU_DEVICE_ID_REG</name>
<initializer>0X75</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="85" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="85" bodyend="-1"/>
</memberdef>
<memberdef kind="define" id="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" prot="public" static="no">
<name>MPU_ADDR</name>
<initializer>0X68</initializer>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="89" column="9" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" bodystart="89" bodyend="-1"/>
</memberdef>
</sectiondef>
<sectiondef kind="func">
<memberdef kind="function" id="mpu6050_8h_1ab1f8c6111d59b60a2edb4ee3e8aa3113" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Init</definition>
<argsstring>(void)</argsstring>
<name>MPU_Init</name>
<param>
<type>void</type>
</param>
<briefdescription>
<para>初始化MPU6050 </para>
</briefdescription>
<detaileddescription>
<para><simplesect kind="return"><para>0,成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="91" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="25" bodyend="45" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="91" declcolumn="4"/>
<references refid="mpu6050_8cpp_1ae7d7fd8356f1a04698bf36a2ff087f7b" compoundref="mpu6050_8cpp" startline="16">delay_ms</references>
<references refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" compoundref="mpu6050_8h" startline="89">MPU_ADDR</references>
<references refid="mpu6050_8h_1a9668e5ccfcfb0aa64da044a381a56f9c" compoundref="mpu6050_8h" startline="85">MPU_DEVICE_ID_REG</references>
<references refid="mpu6050_8h_1a6ac27367cd834a85810e99df72b97621" compoundref="mpu6050_8h" startline="29">MPU_FIFO_EN_REG</references>
<references refid="mpu6050_8h_1afa56d3602a6044562c45cecf6403fb8b" compoundref="mpu6050_8h" startline="51">MPU_INT_EN_REG</references>
<references refid="mpu6050_8h_1a41676476ba5dbb1b213f8f8e252d17f9" compoundref="mpu6050_8h" startline="50">MPU_INTBP_CFG_REG</references>
<references refid="mpu6050_8h_1abbe7ea135ee03eb0f1296ecb22be7554" compoundref="mpu6050_8h" startline="80">MPU_PWR_MGMT1_REG</references>
<references refid="mpu6050_8h_1a3fa9eb0485744e73d0274b198f0ad705" compoundref="mpu6050_8h" startline="81">MPU_PWR_MGMT2_REG</references>
<references refid="mpu6050_8cpp_1a17c11d19a2bb21d61610f08cb2cbe2f7" compoundref="mpu6050_8cpp" startline="187" endline="188">MPU_Read_Byte</references>
<references refid="mpu6050_8cpp_1a6c391137bc5880c3b5e15e84c5a3380f" compoundref="mpu6050_8cpp" startline="67" endline="69">MPU_Set_Accel_Fsr</references>
<references refid="mpu6050_8cpp_1aa27cc30326ce4980b289a0e1c3f76b5e" compoundref="mpu6050_8cpp" startline="55" endline="57">MPU_Set_Gyro_Fsr</references>
<references refid="mpu6050_8cpp_1a04e58232ce838e94d54aa2b53287cb41" compoundref="mpu6050_8cpp" startline="92" endline="99">MPU_Set_Rate</references>
<references refid="mpu6050_8h_1a0146ef35d7ff0b037eafb0a5dac53b0f" compoundref="mpu6050_8h" startline="79">MPU_USER_CTRL_REG</references>
<references refid="mpu6050_8cpp_1a0be9b422bb8613f8444db4af5234e1a1" compoundref="mpu6050_8cpp" startline="178" endline="180">MPU_Write_Byte</references>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a59b1c26b234be88e97435a1b3c061330" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Write_Len</definition>
<argsstring>(u8 addr, u8 reg, u8 len, u8 *buf)</argsstring>
<name>MPU_Write_Len</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>addr</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>reg</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>len</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref> *</type>
<declname>buf</declname>
</param>
<briefdescription>
<para>IIC连续写 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>addr</parametername>
</parameternamelist>
<parameterdescription>
<para>器件地址 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>reg</parametername>
</parameternamelist>
<parameterdescription>
<para>寄存器地址 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>len</parametername>
</parameternamelist>
<parameterdescription>
<para>写入长度 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>*buf</parametername>
</parameternamelist>
<parameterdescription>
<para>数据区 </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="92" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="156" bodyend="158" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="92" declcolumn="4"/>
<references refid="mpu6050_8cpp_1a0e5583807e7dcaae30835311a2195583">mpu6050IIC</references>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a63161fa966899e4e7c5791e40ebf2b0a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Read_Len</definition>
<argsstring>(u8 addr, u8 reg, u8 len, u8 *buf)</argsstring>
<name>MPU_Read_Len</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>addr</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>reg</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>len</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref> *</type>
<declname>buf</declname>
</param>
<briefdescription>
<para>IIC连续读 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>addr</parametername>
</parameternamelist>
<parameterdescription>
<para>器件地址 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>reg</parametername>
</parameternamelist>
<parameterdescription>
<para>寄存器地址 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>len</parametername>
</parameternamelist>
<parameterdescription>
<para>读取长度 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>*buf</parametername>
</parameternamelist>
<parameterdescription>
<para>读取数据区 </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="93" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="168" bodyend="170" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="93" declcolumn="4"/>
<references refid="mpu6050_8cpp_1a0e5583807e7dcaae30835311a2195583">mpu6050IIC</references>
<referencedby refid="mpu6050_8cpp_1a2a0a02f6d7c597828a0cc282c76e99e3" compoundref="mpu6050_8cpp" startline="137" endline="144">MPU_Get_Accelerometer</referencedby>
<referencedby refid="mpu6050_8cpp_1a8f28105f9dcccc709b78d7d0ce497633" compoundref="mpu6050_8cpp" startline="121" endline="128">MPU_Get_Gyroscope</referencedby>
<referencedby refid="mpu6050_8cpp_1a41eaf87c26b1281d9d5fc6a06abcf2a8" compoundref="mpu6050_8cpp" startline="105" endline="112">MPU_Get_Temperature</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a0be9b422bb8613f8444db4af5234e1a1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Write_Byte</definition>
<argsstring>(u8 reg, u8 data)</argsstring>
<name>MPU_Write_Byte</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>reg</declname>
</param>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>data</declname>
</param>
<briefdescription>
<para>IIC写一个字节 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>reg</parametername>
</parameternamelist>
<parameterdescription>
<para>寄存器地址 </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>data</parametername>
</parameternamelist>
<parameterdescription>
<para>数据 </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="94" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="178" bodyend="180" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="94" declcolumn="4"/>
<references refid="mpu6050_8cpp_1a0e5583807e7dcaae30835311a2195583">mpu6050IIC</references>
<references refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" compoundref="mpu6050_8h" startline="89">MPU_ADDR</references>
<referencedby refid="mpu6050_8cpp_1ab1f8c6111d59b60a2edb4ee3e8aa3113" compoundref="mpu6050_8cpp" startline="25" endline="45">MPU_Init</referencedby>
<referencedby refid="mpu6050_8cpp_1a6c391137bc5880c3b5e15e84c5a3380f" compoundref="mpu6050_8cpp" startline="67" endline="69">MPU_Set_Accel_Fsr</referencedby>
<referencedby refid="mpu6050_8cpp_1aa27cc30326ce4980b289a0e1c3f76b5e" compoundref="mpu6050_8cpp" startline="55" endline="57">MPU_Set_Gyro_Fsr</referencedby>
<referencedby refid="mpu6050_8cpp_1a2fb9973c9f5ea5327649d0eef5e96217" compoundref="mpu6050_8cpp" startline="76" endline="85">MPU_Set_LPF</referencedby>
<referencedby refid="mpu6050_8cpp_1a04e58232ce838e94d54aa2b53287cb41" compoundref="mpu6050_8cpp" startline="92" endline="99">MPU_Set_Rate</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a17c11d19a2bb21d61610f08cb2cbe2f7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Read_Byte</definition>
<argsstring>(u8 reg)</argsstring>
<name>MPU_Read_Byte</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>reg</declname>
</param>
<briefdescription>
<para>IIC读一个字节 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>reg</parametername>
</parameternamelist>
<parameterdescription>
<para>寄存器地址 </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="95" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="187" bodyend="188" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="95" declcolumn="4"/>
<references refid="mpu6050_8cpp_1a0e5583807e7dcaae30835311a2195583">mpu6050IIC</references>
<references refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" compoundref="mpu6050_8h" startline="89">MPU_ADDR</references>
<referencedby refid="mpu6050_8cpp_1ab1f8c6111d59b60a2edb4ee3e8aa3113" compoundref="mpu6050_8cpp" startline="25" endline="45">MPU_Init</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1aa27cc30326ce4980b289a0e1c3f76b5e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Set_Gyro_Fsr</definition>
<argsstring>(u8 fsr)</argsstring>
<name>MPU_Set_Gyro_Fsr</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>fsr</declname>
</param>
<briefdescription>
<para>设置MPU6050陀螺仪传感器满量程范围 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>fsr</parametername>
</parameternamelist>
<parameterdescription>
<para>0,±250dps 1,±500dps 2,±1000dps 3,±2000dps </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="97" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="55" bodyend="57" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="97" declcolumn="4"/>
<references refid="mpu6050_8h_1ac8ce2e66126327cf30cfba19c4c38db5" compoundref="mpu6050_8h" startline="26">MPU_GYRO_CFG_REG</references>
<references refid="mpu6050_8cpp_1a0be9b422bb8613f8444db4af5234e1a1" compoundref="mpu6050_8cpp" startline="178" endline="180">MPU_Write_Byte</references>
<referencedby refid="mpu6050_8cpp_1ab1f8c6111d59b60a2edb4ee3e8aa3113" compoundref="mpu6050_8cpp" startline="25" endline="45">MPU_Init</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a6c391137bc5880c3b5e15e84c5a3380f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Set_Accel_Fsr</definition>
<argsstring>(u8 fsr)</argsstring>
<name>MPU_Set_Accel_Fsr</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>fsr</declname>
</param>
<briefdescription>
<para>设置MPU6050加速度传感器满量程范围 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>fsr</parametername>
</parameternamelist>
<parameterdescription>
<para>0,±2g 1,±4g 2,±8g 3,±16g </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="98" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="67" bodyend="69" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="98" declcolumn="4"/>
<references refid="mpu6050_8h_1a7bc1a37b846a3869f13a29e00072bbc7" compoundref="mpu6050_8h" startline="27">MPU_ACCEL_CFG_REG</references>
<references refid="mpu6050_8cpp_1a0be9b422bb8613f8444db4af5234e1a1" compoundref="mpu6050_8cpp" startline="178" endline="180">MPU_Write_Byte</references>
<referencedby refid="mpu6050_8cpp_1ab1f8c6111d59b60a2edb4ee3e8aa3113" compoundref="mpu6050_8cpp" startline="25" endline="45">MPU_Init</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a2fb9973c9f5ea5327649d0eef5e96217" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Set_LPF</definition>
<argsstring>(u16 lpf)</argsstring>
<name>MPU_Set_LPF</name>
<param>
<type><ref refid="varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa" kindref="member">u16</ref></type>
<declname>lpf</declname>
</param>
<briefdescription>
<para>设置MPU6050的数字低通滤波器 </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>lpf</parametername>
</parameternamelist>
<parameterdescription>
<para>数字低通滤波频率(Hz) </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="99" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="76" bodyend="85" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="99" declcolumn="4"/>
<references refid="mpu6050_8h_1a5034e2fc680fc68faa369a48f6955837" compoundref="mpu6050_8h" startline="25">MPU_CFG_REG</references>
<references refid="mpu6050_8cpp_1a0be9b422bb8613f8444db4af5234e1a1" compoundref="mpu6050_8cpp" startline="178" endline="180">MPU_Write_Byte</references>
<referencedby refid="mpu6050_8cpp_1a04e58232ce838e94d54aa2b53287cb41" compoundref="mpu6050_8cpp" startline="92" endline="99">MPU_Set_Rate</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a04e58232ce838e94d54aa2b53287cb41" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Set_Rate</definition>
<argsstring>(u16 rate)</argsstring>
<name>MPU_Set_Rate</name>
<param>
<type><ref refid="varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa" kindref="member">u16</ref></type>
<declname>rate</declname>
</param>
<briefdescription>
<para>设置MPU6050的采样率(假定Fs=1KHz) </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>rate</parametername>
</parameternamelist>
<parameterdescription>
<para>4~1000(Hz) </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="100" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="92" bodyend="99" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="100" declcolumn="4"/>
<references refid="mpu6050_8h_1a4b95cfafadb4b30146a17fac36819ca3" compoundref="mpu6050_8h" startline="24">MPU_SAMPLE_RATE_REG</references>
<references refid="mpu6050_8cpp_1a2fb9973c9f5ea5327649d0eef5e96217" compoundref="mpu6050_8cpp" startline="76" endline="85">MPU_Set_LPF</references>
<references refid="mpu6050_8cpp_1a0be9b422bb8613f8444db4af5234e1a1" compoundref="mpu6050_8cpp" startline="178" endline="180">MPU_Write_Byte</references>
<referencedby refid="mpu6050_8cpp_1ab1f8c6111d59b60a2edb4ee3e8aa3113" compoundref="mpu6050_8cpp" startline="25" endline="45">MPU_Init</referencedby>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a91e0ee4610726fcf9f45570245269a0e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Set_Fifo</definition>
<argsstring>(u8 sens)</argsstring>
<name>MPU_Set_Fifo</name>
<param>
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<declname>sens</declname>
</param>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="101" column="4" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="101" declcolumn="4"/>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a41eaf87c26b1281d9d5fc6a06abcf2a8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type>short</type>
<definition>short MPU_Get_Temperature</definition>
<argsstring>(void)</argsstring>
<name>MPU_Get_Temperature</name>
<param>
<type>void</type>
</param>
<briefdescription>
<para>得到温度值 </para>
</briefdescription>
<detaileddescription>
<para><simplesect kind="return"><para>温度值(扩大了100倍) </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="103" column="7" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="105" bodyend="112" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="103" declcolumn="7"/>
<references refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" compoundref="mpu6050_8h" startline="89">MPU_ADDR</references>
<references refid="mpu6050_8cpp_1a63161fa966899e4e7c5791e40ebf2b0a" compoundref="mpu6050_8cpp" startline="168" endline="170">MPU_Read_Len</references>
<references refid="mpu6050_8h_1af2665b26b7f1ce9b3982a9f6418748e9" compoundref="mpu6050_8h" startline="61">MPU_TEMP_OUTH_REG</references>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a8f28105f9dcccc709b78d7d0ce497633" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Get_Gyroscope</definition>
<argsstring>(short *gx, short *gy, short *gz)</argsstring>
<name>MPU_Get_Gyroscope</name>
<param>
<type>short *</type>
<declname>gx</declname>
</param>
<param>
<type>short *</type>
<declname>gy</declname>
</param>
<param>
<type>short *</type>
<declname>gz</declname>
</param>
<briefdescription>
<para>得到陀螺仪值(原始值) </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>gx</parametername>
</parameternamelist>
<parameterdescription>
<para>陀螺仪x轴的原始读数(带符号) </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>gy</parametername>
</parameternamelist>
<parameterdescription>
<para>陀螺仪y轴的原始读数(带符号) </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>gx</parametername>
</parameternamelist>
<parameterdescription>
<para>陀螺仪z轴的原始读数(带符号) </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="104" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="121" bodyend="128" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="104" declcolumn="4"/>
<references refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" compoundref="mpu6050_8h" startline="89">MPU_ADDR</references>
<references refid="mpu6050_8h_1a7e16f1a459d902b070ca67df67be862b" compoundref="mpu6050_8h" startline="64">MPU_GYRO_XOUTH_REG</references>
<references refid="mpu6050_8cpp_1a63161fa966899e4e7c5791e40ebf2b0a" compoundref="mpu6050_8cpp" startline="168" endline="170">MPU_Read_Len</references>
</memberdef>
<memberdef kind="function" id="mpu6050_8h_1a2a0a02f6d7c597828a0cc282c76e99e3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref></type>
<definition>u8 MPU_Get_Accelerometer</definition>
<argsstring>(short *ax, short *ay, short *az)</argsstring>
<name>MPU_Get_Accelerometer</name>
<param>
<type>short *</type>
<declname>ax</declname>
</param>
<param>
<type>short *</type>
<declname>ay</declname>
</param>
<param>
<type>short *</type>
<declname>az</declname>
</param>
<briefdescription>
<para>得到加速度值(原始值) </para>
</briefdescription>
<detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>ax</parametername>
</parameternamelist>
<parameterdescription>
<para>陀螺仪a轴的原始读数(带符号) </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>ay</parametername>
</parameternamelist>
<parameterdescription>
<para>陀螺仪a轴的原始读数(带符号) </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>ax</parametername>
</parameternamelist>
<parameterdescription>
<para>陀螺仪a轴的原始读数(带符号) </para>
</parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>0,设置成功 </para>
</simplesect>
</para>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" line="105" column="4" bodyfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.cpp" bodystart="137" bodyend="144" declfile="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h" declline="105" declcolumn="4"/>
<references refid="mpu6050_8h_1a571a31cdf2a467b2b1df39fea686ea0d" compoundref="mpu6050_8h" startline="54">MPU_ACCEL_XOUTH_REG</references>
<references refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" compoundref="mpu6050_8h" startline="89">MPU_ADDR</references>
<references refid="mpu6050_8cpp_1a63161fa966899e4e7c5791e40ebf2b0a" compoundref="mpu6050_8cpp" startline="168" endline="170">MPU_Read_Len</references>
</memberdef>
</sectiondef>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="normal"></highlight></codeline>
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">&quot;C&quot;</highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;main.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="varint_8h" kindref="compound">varint.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="17"><highlight class="normal"></highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight><highlight class="comment">//#define<sp/>MPU_ACCEL_OFFS_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X06<sp/><sp/><sp/><sp/>//accel_offs寄存器,可读取版本号,寄存器手册未提到</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="comment">//#define<sp/>MPU_PROD_ID_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X0C<sp/><sp/><sp/><sp/>//prod<sp/>id寄存器,在寄存器手册未提到</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="20" refid="mpu6050_8h_1af02b592f85ebbfcc6f5e13d8287832de" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_SELF_TESTX_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X0D<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//自检寄存器X</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="21" refid="mpu6050_8h_1a029c571acc0e3a941d14d4af3e3ecd5f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_SELF_TESTY_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X0E<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//自检寄存器Y</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="22" refid="mpu6050_8h_1aa7f091c311c419133b4799a37919ce24" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_SELF_TESTZ_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X0F<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//自检寄存器Z</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="23" refid="mpu6050_8h_1a9f2d6b09b992598daadf6a0afa9a8b9c" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_SELF_TESTA_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X10<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//自检寄存器A</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24" refid="mpu6050_8h_1a4b95cfafadb4b30146a17fac36819ca3" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_SAMPLE_RATE_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X19<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//采样频率分频器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="25" refid="mpu6050_8h_1a5034e2fc680fc68faa369a48f6955837" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_CFG_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X1A<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//配置寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="26" refid="mpu6050_8h_1ac8ce2e66126327cf30cfba19c4c38db5" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_CFG_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X1B<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪配置寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="27" refid="mpu6050_8h_1a7bc1a37b846a3869f13a29e00072bbc7" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_CFG_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X1C<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度计配置寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="28" refid="mpu6050_8h_1ad214879acffccefd843d291949a2abb6" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_MOTION_DET_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X1F<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//运动检测阀值设置寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="29" refid="mpu6050_8h_1a6ac27367cd834a85810e99df72b97621" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_FIFO_EN_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X23<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//FIFO使能寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="30" refid="mpu6050_8h_1a077d9362ddf1c52a0fca0740164533ca" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CMST_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X24<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC主机控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="31" refid="mpu6050_8h_1a0482943c31faa0c896d63ef5d66755e1" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV0_ADDR_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X25<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机0器件地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="32" refid="mpu6050_8h_1a53122cbda4565a4a060e5df3bb9a37a7" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV0_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X26<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机0数据地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33" refid="mpu6050_8h_1a22b266f1daab1a09f9257cfeb96fbb68" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV0_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X27<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机0控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="34" refid="mpu6050_8h_1a9123fc86edcdc301cbb75f7ebe4b5875" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV1_ADDR_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X28<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机1器件地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="35" refid="mpu6050_8h_1a7a0758891de15a4b4bf0ef2c4e75efeb" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV1_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X29<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机1数据地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="36" refid="mpu6050_8h_1a237cf43cb562d63ea2f2d98eeac464bc" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV1_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X2A<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机1控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="37" refid="mpu6050_8h_1a5a7b90007c003c428c098d0073fa4f9c" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV2_ADDR_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X2B<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机2器件地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="38" refid="mpu6050_8h_1a1d01e992631966ee1af8795ec14710bc" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV2_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X2C<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机2数据地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="39" refid="mpu6050_8h_1a1c2971fc921e219f0060640349d4a58a" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV2_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X2D<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机2控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="40" refid="mpu6050_8h_1a0627354a9a7143a3967bbf1552952e11" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV3_ADDR_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X2E<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机3器件地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41" refid="mpu6050_8h_1a82236d7861a3a175cff0058d5d5b4716" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV3_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X2F<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机3数据地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="42" refid="mpu6050_8h_1ac907afde99231069287fa0d78c305549" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV3_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X30<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机3控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="43" refid="mpu6050_8h_1a6fbb07805d44b04e97f4f7d30d7c65bf" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV4_ADDR_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X31<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机4器件地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="44" refid="mpu6050_8h_1a838f7301336bd077e84a3a4fbe6e16e7" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV4_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X32<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机4数据地址寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="45" refid="mpu6050_8h_1a5bf6ae395ef8815c28c23d5343116871" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV4_DO_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X33<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机4写数据寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="46" refid="mpu6050_8h_1a144d40f6321e971c85d9987ceaedf539" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV4_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X34<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机4控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="47" refid="mpu6050_8h_1ab62d9fd87688d16052273b6598d5572f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV4_DI_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X35<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机4读数据寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight></codeline>
<codeline lineno="49" refid="mpu6050_8h_1a818abd42a819632acfee736d8db636f5" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CMST_STA_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X36<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC主机状态寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="50" refid="mpu6050_8h_1a41676476ba5dbb1b213f8f8e252d17f9" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_INTBP_CFG_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X37<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//中断/旁路设置寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="51" refid="mpu6050_8h_1afa56d3602a6044562c45cecf6403fb8b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_INT_EN_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X38<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//中断使能寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="52" refid="mpu6050_8h_1a186faa987a57c9d2a3ea6bfaba0bdd46" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_INT_STA_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X3A<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//中断状态寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
<codeline lineno="54" refid="mpu6050_8h_1a571a31cdf2a467b2b1df39fea686ea0d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_XOUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X3B<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度值,X轴高8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="55" refid="mpu6050_8h_1ad7193ffe844d2c844b0c419a50d40173" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_XOUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X3C<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度值,X轴低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="56" refid="mpu6050_8h_1a42eb93ccf84e25005cd1eca7c43b7516" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_YOUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X3D<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度值,Y轴高8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="57" refid="mpu6050_8h_1aa1b06e69bcbb83ced2e28a8891ee8558" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_YOUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X3E<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度值,Y轴低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="58" refid="mpu6050_8h_1af3a12a4f04a41df24c977c491a4aad5f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_ZOUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X3F<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度值,Z轴高8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="59" refid="mpu6050_8h_1a82eb10a4b48c58f8bf7bc96a892533b6" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ACCEL_ZOUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X40<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//加速度值,Z轴低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="60"><highlight class="normal"></highlight></codeline>
<codeline lineno="61" refid="mpu6050_8h_1af2665b26b7f1ce9b3982a9f6418748e9" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_TEMP_OUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X41<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//温度值高八位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="62" refid="mpu6050_8h_1a5f4a1c425564e1e56bfe51576ba3ea82" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_TEMP_OUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X42<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//温度值低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="63"><highlight class="normal"></highlight></codeline>
<codeline lineno="64" refid="mpu6050_8h_1a7e16f1a459d902b070ca67df67be862b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_XOUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X43<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪值,X轴高8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="65" refid="mpu6050_8h_1a0b2e09225774ed67f49666ec1bbea501" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_XOUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X44<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪值,X轴低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="66" refid="mpu6050_8h_1af71ca06f446573faed7a73979237e51e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_YOUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X45<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪值,Y轴高8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="67" refid="mpu6050_8h_1a0007fe50b455737a3076e38f300bce14" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_YOUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X46<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪值,Y轴低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="68" refid="mpu6050_8h_1ad5811a104c711b123b648b46bcc6f929" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_ZOUTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X47<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪值,Z轴高8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="69" refid="mpu6050_8h_1a289046a426f3c6ef18cb504c5e991652" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_GYRO_ZOUTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X48<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//陀螺仪值,Z轴低8位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="70"><highlight class="normal"></highlight></codeline>
<codeline lineno="71" refid="mpu6050_8h_1a93d37f52e6ac87e1ef103339b22770af" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV0_DO_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X63<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机0数据寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="72" refid="mpu6050_8h_1af03578391ec1c0c6b357207c83ce28bb" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV1_DO_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X64<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机1数据寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="73" refid="mpu6050_8h_1a14db443ae863599bc0f16fa3733d4056" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV2_DO_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X65<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机2数据寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="74" refid="mpu6050_8h_1a4343d92e344dd56343094d46798a5e0e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CSLV3_DO_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X66<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC从机3数据寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="75"><highlight class="normal"></highlight></codeline>
<codeline lineno="76" refid="mpu6050_8h_1ad7209fcea0ea70f90f6cb43e862f8f5b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_I2CMST_DELAY_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X67<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC主机延时管理寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="77" refid="mpu6050_8h_1a82c9cecb9ee30b37f8b054feca2bc1da" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_SIGPATH_RST_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X68<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//信号通道复位寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="78" refid="mpu6050_8h_1a1e60421d39a0a24b0c513f309e1d6910" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_MDETECT_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X69<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//运动检测控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="79" refid="mpu6050_8h_1a0146ef35d7ff0b037eafb0a5dac53b0f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_USER_CTRL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X6A<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//用户控制寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="80" refid="mpu6050_8h_1abbe7ea135ee03eb0f1296ecb22be7554" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_PWR_MGMT1_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X6B<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//电源管理寄存器1</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="81" refid="mpu6050_8h_1a3fa9eb0485744e73d0274b198f0ad705" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_PWR_MGMT2_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X6C<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//电源管理寄存器2<sp/></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="82" refid="mpu6050_8h_1a9c04be29f6f59066df910560a1eb9ddf" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_FIFO_CNTH_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X72<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//FIFO计数寄存器高八位</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="83" refid="mpu6050_8h_1a66dc73eec1f79cfefe8ad3d4c2a81c0d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_FIFO_CNTL_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X73<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//FIFO计数寄存器低八位</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="84" refid="mpu6050_8h_1af3acc9068f9c3b6a54c3d65ca91dc52e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_FIFO_RW_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X74<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//FIFO读写寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="85" refid="mpu6050_8h_1a9668e5ccfcfb0aa64da044a381a56f9c" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_DEVICE_ID_REG<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X75<sp/><sp/><sp/><sp/></highlight><highlight class="comment">//器件ID寄存器</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="87"><highlight class="normal"></highlight><highlight class="comment">//如果AD0脚(9脚)接地,IIC地址为0X68(不包含最低位).</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="88"><highlight class="normal"></highlight><highlight class="comment">//如果接V3.3,则IIC地址为0X69(不包含最低位).</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="89" refid="mpu6050_8h_1ac3281ee64415e63422da7d65db161891" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MPU_ADDR<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0X68</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="90"><highlight class="normal"></highlight></codeline>
<codeline lineno="91"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1ab1f8c6111d59b60a2edb4ee3e8aa3113" kindref="member">MPU_Init</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//初始化MPU6050</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="92"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a59b1c26b234be88e97435a1b3c061330" kindref="member">MPU_Write_Len</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>addr,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>reg,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>len,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>*buf);</highlight><highlight class="comment">//IIC连续写</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a63161fa966899e4e7c5791e40ebf2b0a" kindref="member">MPU_Read_Len</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>addr,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>reg,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>len,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>*buf);<sp/></highlight><highlight class="comment">//IIC连续读<sp/></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="94"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a0be9b422bb8613f8444db4af5234e1a1" kindref="member">MPU_Write_Byte</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>reg,<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>data);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC写一个字节</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="95"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a17c11d19a2bb21d61610f08cb2cbe2f7" kindref="member">MPU_Read_Byte</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>reg);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//IIC读一个字节</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="96"><highlight class="normal"></highlight></codeline>
<codeline lineno="97"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1aa27cc30326ce4980b289a0e1c3f76b5e" kindref="member">MPU_Set_Gyro_Fsr</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>fsr);</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a6c391137bc5880c3b5e15e84c5a3380f" kindref="member">MPU_Set_Accel_Fsr</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>fsr);</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a2fb9973c9f5ea5327649d0eef5e96217" kindref="member">MPU_Set_LPF</ref>(<ref refid="varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa" kindref="member">u16</ref><sp/>lpf);</highlight></codeline>
<codeline lineno="100"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a04e58232ce838e94d54aa2b53287cb41" kindref="member">MPU_Set_Rate</ref>(<ref refid="varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa" kindref="member">u16</ref><sp/>rate);</highlight></codeline>
<codeline lineno="101" refid="mpu6050_8h_1a91e0ee4610726fcf9f45570245269a0e" refkind="member"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a91e0ee4610726fcf9f45570245269a0e" kindref="member">MPU_Set_Fifo</ref>(<ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/>sens);</highlight></codeline>
<codeline lineno="102"><highlight class="normal"></highlight></codeline>
<codeline lineno="103"><highlight class="normal"></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/><ref refid="mpu6050_8h_1a41eaf87c26b1281d9d5fc6a06abcf2a8" kindref="member">MPU_Get_Temperature</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="104"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a8f28105f9dcccc709b78d7d0ce497633" kindref="member">MPU_Get_Gyroscope</ref>(</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*gx,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*gy,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*gz);</highlight></codeline>
<codeline lineno="105"><highlight class="normal"><ref refid="varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca" kindref="member">u8</ref><sp/><ref refid="mpu6050_8h_1a2a0a02f6d7c597828a0cc282c76e99e3" kindref="member">MPU_Get_Accelerometer</ref>(</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*ax,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*ay,</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*az);</highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight></codeline>
<codeline lineno="107"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="108"><highlight class="normal">}</highlight></codeline>
<codeline lineno="109"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
</programlisting>
<location file="D:/gitt/MicrochipFor32/bsp_MPU6050/mpu6050.h"/>
</compounddef>
</doxygen>