1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6<meta name="generator" content="Doxygen 1.8.13"/>
7<meta name="viewport" content="width=device-width, initial-scale=1"/>
8<title>ISSDK: algorithms/pedometer/examples/pedometer_stepcount_motion_mma8652.c Source File</title>
9<link href="tabs.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="dynsections.js"></script>
12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" />
13</head>
14<body>
15<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16<div id="titlearea">
17<table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr style="height: 56px;">
20  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
21  <td id="projectalign" style="padding-left: 0.5em;">
22   <div id="projectname">ISSDK
23   &#160;<span id="projectnumber">1.8</span>
24   </div>
25   <div id="projectbrief">IoT Sensing Software Development Kit</div>
26  </td>
27 </tr>
28 </tbody>
29</table>
30</div>
31<!-- end header part -->
32<!-- Generated by Doxygen 1.8.13 -->
33<script type="text/javascript" src="menudata.js"></script>
34<script type="text/javascript" src="menu.js"></script>
35<script type="text/javascript">
36$(function() {
37  initMenu('',false,false,'search.php','Search');
38});
39</script>
40<div id="main-nav"></div>
41<div id="nav-path" class="navpath">
42  <ul>
43<li class="navelem"><a class="el" href="dir_c0ce462e37efe0a8d60c01d75f78f8a0.html">algorithms</a></li><li class="navelem"><a class="el" href="dir_fee404f6f831fcfa321ee67f90b1e1c1.html">pedometer</a></li><li class="navelem"><a class="el" href="dir_82ba1771cf9ff13cea8934af5507220d.html">examples</a></li>  </ul>
44</div>
45</div><!-- top -->
46<div class="header">
47  <div class="headertitle">
48<div class="title">pedometer_stepcount_motion_mma8652.c</div>  </div>
49</div><!--header-->
50<div class="contents">
51<a href="a00953.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * @file pedometer_stepcount_mma8652.c</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * @brief The pedometer_stepcount_mma8652.c file implements the ISSDK MMA8652 sensor</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *        driver example demonstration for Motion Activated Pedometer.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// SDK Includes</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;board.h&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;pin_mux.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;clock_config.h&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;fsl_debug_console.h&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// CMSIS Includes</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;Driver_I2C.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// ISSDK Includes</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;issdk_hal.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00956.html">pedometer.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;gpio_driver.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00146.html">mma865x_drv.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// Macros</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="a00953.html#af17be18e5bc74f21df9e565c4dda77ee">   39</a></span>&#160;<span class="preprocessor">#define MT_FF_MT_THS 0x15  </span><span class="comment">/* Threshold Value. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="a00953.html#ac1de58f19be26d0d484cf2fa338c9eb5">   40</a></span>&#160;<span class="preprocessor">#define ASLP_COUNTER 0x10   </span><span class="comment">/* Auto Sleep after ~5s. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="a00953.html#a2c8dc64063c1a31d171819eae83feed9">   41</a></span>&#160;<span class="preprocessor">#define MMA865x_DATA_SIZE 6 </span><span class="comment">/* 2-byte Accel x,y,z each */</span><span class="preprocessor"></span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">// Constants</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span><span class="comment"></span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*! @brief MMA865x Motion based Pedometer Register Write List. */</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="a00953.html#add72e042f8083f042429ec70ed3ca556">   47</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00953.html#add72e042f8083f042429ec70ed3ca556">cMma865xCommonConfiguration</a>[] = {</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba0f55367e454ff228e8f779852f053f90">MMA865x_ASLP_COUNT</a>, <a class="code" href="a00953.html#ac1de58f19be26d0d484cf2fa338c9eb5">ASLP_COUNTER</a>, 0},</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba42229d7482e5dbe57cd39be42d0e1646">MMA865x_FF_MT_THS</a>, <a class="code" href="a00953.html#af17be18e5bc74f21df9e565c4dda77ee">MT_FF_MT_THS</a>, <a class="code" href="a00140.html#a2663f1726426b5242b9dbd68beaa67c0">MMA865x_FF_MT_THS_THS_MASK</a>},</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abadd2ebd4208fef30d4a24f744921d0b26">MMA865x_FF_MT_CFG</a>, <a class="code" href="a00140.html#ad957981a4a08504a7fbcfb3c6aed8e6a">MMA865x_FF_MT_CFG_OAE_MOTION</a> | <a class="code" href="a00140.html#a6311406189062ead48f6284a3b7553fe">MMA865x_FF_MT_CFG_ZEFE_EN</a> | <a class="code" href="a00140.html#a068e33cdc4910204b2e11166f42c3d27">MMA865x_FF_MT_CFG_YEFE_EN</a> | <a class="code" href="a00140.html#acc2e5136ee1ff784cfb7ff4e0585e934">MMA865x_FF_MT_CFG_XEFE_EN</a>,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                        <a class="code" href="a00140.html#aeb021986e3fecb069fcc59d001e69ece">MMA865x_FF_MT_CFG_OAE_MASK</a> | <a class="code" href="a00140.html#adb5bcf08e5f01089966a34ef1a3ce3fe">MMA865x_FF_MT_CFG_ZEFE_MASK</a> | <a class="code" href="a00140.html#a5a06c471902ba216d5f582e636ed0376">MMA865x_FF_MT_CFG_YEFE_MASK</a> | <a class="code" href="a00140.html#aad503716fc9b34afca8b43db11b25122">MMA865x_FF_MT_CFG_XEFE_MASK</a>},</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba8e8c5a7a258169848329a0efc7f7624f">MMA865x_CTRL_REG1</a>, <a class="code" href="a00140.html#a25e5f87fbde883f6ed6d290e494bdb35">MMA865x_CTRL_REG1_ASLP_RATE_1_56HZ</a> | <a class="code" href="a00140.html#a585aa2939a8916dc90b2c3141ce05a76">MMA865x_CTRL_REG1_DR_50HZ</a>,</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                        <a class="code" href="a00140.html#a632be826ac627a124e8fc4241ebcf64a">MMA865x_CTRL_REG1_ASLP_RATE_MASK</a> | <a class="code" href="a00140.html#a145fb44181d35a7314931a77a572e177">MMA865x_CTRL_REG1_DR_MASK</a>},</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abaa946eeab2a594d2126b1f25295a5fabf">MMA865x_CTRL_REG2</a>, <a class="code" href="a00140.html#afdfe075eee3bbfc919c3095a442ced1f">MMA865x_CTRL_REG2_SLPE_EN</a> | <a class="code" href="a00140.html#acf4325878b26d6a31dfdde9065a4a496">MMA865x_CTRL_REG2_SMODS_LP</a>,</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                        <a class="code" href="a00140.html#a72a9b26261b16b43aa4442c38c2cade9">MMA865x_CTRL_REG2_SLPE_MASK</a> | <a class="code" href="a00140.html#a8b769cc803d06e250f7bf3db5be51317">MMA865x_CTRL_REG2_SMODS_MASK</a>},</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abad096ed1c772dd3c3098e2c65e485d33a">MMA865x_CTRL_REG3</a>, <a class="code" href="a00140.html#ac8185ddfde4a566ad9f701078fe07658">MMA865x_CTRL_REG3_WAKE_FF_MT_EN</a> | <a class="code" href="a00140.html#a54e562d4f6ff399e0e3df7d1b823537d">MMA865x_CTRL_REG3_IPOL_ACTIVE_HIGH</a> | <a class="code" href="a00140.html#a5b38a2b3caa0a980427582b141f57326">MMA865x_CTRL_REG3_PP_OD_PUSH_PULL</a>,</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                        <a class="code" href="a00140.html#a62c1af7139b574246b6f5359db97be16">MMA865x_CTRL_REG3_WAKE_FF_MT_MASK</a> | <a class="code" href="a00140.html#a4a84343828717ec15706c35156c511d4">MMA865x_CTRL_REG3_IPOL_MASK</a> | <a class="code" href="a00140.html#a11340d1bb66e48e67ffbc9de3798d7a8">MMA865x_CTRL_REG3_PP_OD_MASK</a>},</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abac3223204c1cd238ac99b823db415a60c">MMA865x_CTRL_REG4</a>, <a class="code" href="a00140.html#aed20b93c1f3a5f1b4c15c976fe24ef49">MMA865x_CTRL_REG4_INT_EN_FF_MT_EN</a>, <a class="code" href="a00140.html#a5c1b5c66b788cd768d3217898e6149d0">MMA865x_CTRL_REG4_INT_EN_FF_MT_MASK</a>},</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba7f12bf42857db515245e5ff168a739a0">MMA865x_CTRL_REG5</a>, <a class="code" href="a00140.html#a06b633d3f44f6315c45b260ce18db1e7">MMA865x_CTRL_REG5_INT_CFG_DRDY_INT1</a> | <a class="code" href="a00140.html#a9abc2f3d7b6d37921a03ff14f581d16b">MMA865x_CTRL_REG5_INT_CFG_ASLP_INT1</a>,</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                        <a class="code" href="a00140.html#a0032b0218f8db95f1198921e9bca7097">MMA865x_CTRL_REG5_INT_CFG_DRDY_MASK</a> | <a class="code" href="a00140.html#ae59a7f699aae93e6d2546e1af4f490c2">MMA865x_CTRL_REG5_INT_CFG_ASLP_MASK</a>},</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">/*! @brief MMA865x Motion Detect Mode Register Write List. */</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="a00953.html#ac4de2c65ec72c87fe69b76de4d2a562f">   64</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00953.html#ac4de2c65ec72c87fe69b76de4d2a562f">cMma865xConfigMotionDetect</a>[] = {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="comment">/* Only FFMT INT Enabled */</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abac3223204c1cd238ac99b823db415a60c">MMA865x_CTRL_REG4</a>, <a class="code" href="a00140.html#a4d1a9c95d38b0e4204074085b6ac7fd0">MMA865x_CTRL_REG4_INT_EN_DRDY_DISABLED</a> | <a class="code" href="a00140.html#a91b0544558a4ab84412a204ce64af8fe">MMA865x_CTRL_REG4_INT_EN_ASLP_DISABLED</a>,</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                        <a class="code" href="a00140.html#ae46eecb18be2f0ab6815c3b4033a317b">MMA865x_CTRL_REG4_INT_EN_DRDY_MASK</a> | <a class="code" href="a00140.html#a85f3c711c933ee65492521e8500c7de2">MMA865x_CTRL_REG4_INT_EN_ASLP_MASK</a>},</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">/* Route FFMT to INT1 */</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba7f12bf42857db515245e5ff168a739a0">MMA865x_CTRL_REG5</a>, <a class="code" href="a00140.html#a2b965f9ad7282955a945d1db0f5c42e4">MMA865x_CTRL_REG5_INT_CFG_FF_MT_INT1</a>, <a class="code" href="a00140.html#a51ab443a5ce88b02f0ce01ae5bcc8d6c">MMA865x_CTRL_REG5_INT_CFG_FF_MT_MASK</a>},</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">/*! @brief MMA865x DRDY and ASLP Detect Mode Register Write List. */</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="a00953.html#a3b24fff9603c0d52b23f3ad2a5401fcd">   73</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00953.html#a3b24fff9603c0d52b23f3ad2a5401fcd">cMma865xConfigDataReady</a>[] = {</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="comment">/* Data and ASLP INT Enabled */</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abac3223204c1cd238ac99b823db415a60c">MMA865x_CTRL_REG4</a>, <a class="code" href="a00140.html#a6cbf57d6dc87621f17d7a2f5c6abc604">MMA865x_CTRL_REG4_INT_EN_DRDY_EN</a> | <a class="code" href="a00140.html#a5f5644bf01f0cecc06a2a59be51c487f">MMA865x_CTRL_REG4_INT_EN_ASLP_EN</a>,</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                        <a class="code" href="a00140.html#ae46eecb18be2f0ab6815c3b4033a317b">MMA865x_CTRL_REG4_INT_EN_DRDY_MASK</a> | <a class="code" href="a00140.html#a85f3c711c933ee65492521e8500c7de2">MMA865x_CTRL_REG4_INT_EN_ASLP_MASK</a>},</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="comment">/* Route FFMT to INT2 (Ignore FFMT INT) */</span>                                                                                  </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    {<a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba7f12bf42857db515245e5ff168a739a0">MMA865x_CTRL_REG5</a>, <a class="code" href="a00140.html#a03536cf382e1e3a9c38cdb208af16bad">MMA865x_CTRL_REG5_INT_CFG_FF_MT_INT2</a>, <a class="code" href="a00140.html#a51ab443a5ce88b02f0ce01ae5bcc8d6c">MMA865x_CTRL_REG5_INT_CFG_FF_MT_MASK</a>},</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">/*! @brief Address of INT Source Register. */</span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="a00953.html#a3a508eb0caf6f52676ae32b76e4a8205">   82</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00953.html#a3a508eb0caf6f52676ae32b76e4a8205">cMma865xINTSrc</a>[] = {{.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba524bea6631744a1a05db44b974a71ac0">MMA865x_INT_SOURCE</a>, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment">/*! @brief Address of Data Output Registers. */</span></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="a00953.html#a385f7e87c887e336e8be2e0b095ee316">   85</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00953.html#a385f7e87c887e336e8be2e0b095ee316">cMma865xOutput</a>[] = {{.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781aba961d9357ec20c1ae3fc6a7c375dc4815">MMA865x_OUT_X_MSB</a>, .numBytes = <a class="code" href="a00953.html#a2c8dc64063c1a31d171819eae83feed9">MMA865x_DATA_SIZE</a>}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">/*! @brief Pedometer Mode Name Strings. */</span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="a00953.html#a81ba4744a5759e7e84e9af73985cb245">   88</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00953.html#a81ba4744a5759e7e84e9af73985cb245">pActivity</a>[5] = {<span class="stringliteral">&quot;Unknown &quot;</span>, <span class="stringliteral">&quot;Rest    &quot;</span>, <span class="stringliteral">&quot;Walking &quot;</span>, <span class="stringliteral">&quot;Jogging &quot;</span>, <span class="stringliteral">&quot;Running &quot;</span>};</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">// Global Variables</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="a00953.html#a515cfd76133c41bf03ae1a600533fd8c">   93</a></span>&#160;<span class="keyword">volatile</span> <span class="keywordtype">bool</span> <a class="code" href="a00953.html#a515cfd76133c41bf03ae1a600533fd8c">gMma865xEventReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">/* Pedometer configuration. These configuration are algorithm and user dependent data. */</span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="a00953.html#ac8739dded5604790bbe053e9ac11d8ce">   96</a></span>&#160;<a class="code" href="a04059.html">pedometer_config_t</a> <a class="code" href="a00953.html#ac8739dded5604790bbe053e9ac11d8ce">cPedoConfig</a> =</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    .<a class="code" href="a04059.html#a2c49d77dccbc74c7e51171069a0f2709">sleepcount_threshold</a> = 1,</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    .bits = {.config = 1},</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    .keynetik =</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    {</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        .steplength = 0,</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        .height = 175,</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        .weight = 80,</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        .filtersteps = 1,</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        .bits =</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        {</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            .filtertime = 2, .male = 1,</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        },</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        .speedperiod = 3,</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        .stepthreshold = 0,</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    },</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    .stepcoalesce = 1,</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    .oneG = <a class="code" href="a00956.html#a17d20b7d617372405447c7cbd580017b">PEDO_ONEG_2G</a>,</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    .frequency = 50,</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;};</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment">// Functions</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span><span class="comment"></span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment">/*! -----------------------------------------------------------------------</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="comment"> *  @brief       This is the Sensor Event Ready ISR implementation.</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="comment"> *  @details     This function sets the flag which indicates if a new sample(s) is available for reading.</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="comment"> *  @param[in]   pUserData This is a void pointer to the instance of the user specific data structure for the ISR.</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment"> *  @return      void  There is no return value.</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment"> *  @constraints None</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment"> *  @reeentrant  Yes</span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="comment"> *  -----------------------------------------------------------------------*/</span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="a00953.html#a426cf73861dde61ea4cbc50202502bb4">  129</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00953.html#a426cf73861dde61ea4cbc50202502bb4">mma865x_int_callback</a>(<span class="keywordtype">void</span> *pUserData)</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;{ <span class="comment">/*! @brief Set flag to indicate Sensor has signaled event ready. */</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="a00953.html#a515cfd76133c41bf03ae1a600533fd8c">gMma865xEventReady</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment">/*! -----------------------------------------------------------------------</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment"> *  @brief       This is the The main function implementation.</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="comment"> *  @details     This function invokes board initializes routines, then then brings up the sensor and</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment"> *               finally enters an endless loop to continuously read available samples.</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="comment"> *  @param[in]   void This is no input parameter.</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment"> *  @return      void  There is no return value.</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="comment"> *  @constraints None</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="comment"> *  @reeentrant  No</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment"> *  -----------------------------------------------------------------------*/</span></div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="a00953.html#a840291bc02cba5474a4cb46a9b9566fe">  143</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00953.html#a840291bc02cba5474a4cb46a9b9566fe">main</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;{</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordtype">bool</span> motionDetect;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    uint16_t lastReportedSteps;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    uint8_t intStatus, <a class="code" href="a00428.html#a0155cf01983779a6f386fb8eac40d37c">data</a>[<a class="code" href="a00953.html#a2c8dc64063c1a31d171819eae83feed9">MMA865x_DATA_SIZE</a>];</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <a class="code" href="a04067.html">pedometer_t</a> pedometer; <span class="comment">/* This handle holds the current configuration and status value for the pedometer.*/</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="a03611.html">mma865x_acceldata_t</a> <a class="code" href="a00227.html#ad508addf55fd0c55016ce25fe85bbd3d">rawData</a>;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <a class="code" href="a03607.html">mma865x_i2c_sensorhandle_t</a> mma865xDriver;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    ARM_DRIVER_I2C *<a class="code" href="a00368.html#a3c22bed16a7c769894081222aa6107d8">I2Cdrv</a> = &amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>; <span class="comment">// Now using the shield.h value!!!</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a00281.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a> = &amp;<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="comment">    /*! Initialize the MCU hardware. */</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <a class="code" href="a00959.html#ga2c9fe54b6b84723fbaa590a6f4576966">BOARD_InitPins</a>();</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <a class="code" href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a>();</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <a class="code" href="a04109.html#a4c84ccb952cb083367d7040cf9de3db8">BOARD_InitDebugConsole</a>();</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    PRINTF(<span class="stringliteral">&quot;\r\n ISSDK MMA865x sensor driver example for Motion Activated Pedometer.\r\n&quot;</span>);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="comment">    /*! Initialize MMA865x pin used by FRDM board */</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&amp;<a class="code" href="a04337.html#a88cd7b4c0d30f567bd8f337f9674a6d9">MMA8652_INT1</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a>, NULL, &amp;<a class="code" href="a00953.html#a426cf73861dde61ea4cbc50202502bb4">mma865x_int_callback</a>, NULL);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">    /*! Initialize RGB LED pin used by FRDM board */</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">    /*! Initialize the I2C driver. */</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    status = I2Cdrv-&gt;Initialize(<a class="code" href="a04343.html#a60ac2e3bb32ae33e2fd542f607a58ac4">I2C_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    {</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        PRINTF(<span class="stringliteral">&quot;\r\n I2C Initialization Failed\r\n&quot;</span>);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    }</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="comment">    /*! Set the I2C Power mode. */</span></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    status = I2Cdrv-&gt;PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    {</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        PRINTF(<span class="stringliteral">&quot;\r\n I2C Power Mode setting Failed\r\n&quot;</span>);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    }</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="comment">    /*! Set the I2C bus speed. */</span></div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    status = I2Cdrv-&gt;Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    {</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        PRINTF(<span class="stringliteral">&quot;\r\n I2C Control Mode setting Failed\r\n&quot;</span>);</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    }</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment">    /*! Initialize MMA865x sensor driver. */</span></div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    status = <a class="code" href="a00143.html#a088d55c83170dc62e31a430bbeac84fe">MMA865x_I2C_Initialize</a>(&amp;mma865xDriver, &amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>, <a class="code" href="a00545.html#a8988e99259e07194918336da18dd35e9">MMA8652_I2C_ADDR</a>,</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                                     <a class="code" href="a00140.html#a073411344592aee73bcd637972375e00">MMA8652_WHOAMI_VALUE</a>);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    {</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        PRINTF(<span class="stringliteral">&quot;\r\n Sensor Initialization Failed\r\n&quot;</span>);</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    }</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="comment">    /*!  Set the task to be executed while waiting for I2C transactions to complete. */</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <a class="code" href="a00143.html#aabd69bb772dc05a10ab05faf94103d0b">MMA865x_I2C_SetIdleTask</a>(&amp;mma865xDriver, (<a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a>)<a class="code" href="a00638.html#a82cb114bb9a5ea2f235a0216709d70f8">SMC_SetPowerModeVlpr</a>, <a class="code" href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a>);</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="comment">/* Apply MMA865x Configuration for Motion Activated Pedometer. */</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    status = <a class="code" href="a00182.html#aaac4c4f34b4dd37d3f202a1dbb4b000b">Sensor_I2C_Write</a>(mma865xDriver.<a class="code" href="a03607.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;mma865xDriver.<a class="code" href="a03607.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>,</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                              mma865xDriver.<a class="code" href="a03607.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>, cMma865xCommonConfiguration);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    {</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        PRINTF(<span class="stringliteral">&quot;\r\n Write MMA865x Initialization Failed.\r\n&quot;</span>);</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    }</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="comment">    /*! Initialize the pedometer*/</span></div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <a class="code" href="a00926.html#a594d690252fcfc6713fe8374f384fe69">pedometer_init</a>(&amp;pedometer);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    PRINTF(<span class="stringliteral">&quot;\r\n Pedometer successfully Initialized and Ready for measurements.&quot;</span>);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordflow">for</span> (;;) <span class="comment">/* Forever loop for Motion Detection */</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    {<span class="comment"></span></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="comment">        /*! Configure the pedometer*/</span></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        <a class="code" href="a00926.html#a5ea8580b8a07ce9ece550f8b6fd37ced">pedometer_configure</a>(&amp;pedometer, &amp;cPedoConfig);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="comment">/* Apply MMA865x Configuration for Motion Detection. */</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        status = <a class="code" href="a00143.html#a5944d87d922a1bdbbf5f2574acc1e143">MMA865x_I2C_Configure</a>(&amp;mma865xDriver, cMma865xConfigMotionDetect);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        {</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;            PRINTF(<span class="stringliteral">&quot;\r\n Write MMA865x Motion Configuration Failed!\r\n&quot;</span>);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        }</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        motionDetect = <span class="keyword">true</span>;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        pGpioDriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        PRINTF(<span class="stringliteral">&quot;\r\n\r\n Waiting for Motion | MCU switching to Sleep Mode ...\r\n&quot;</span>);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <span class="keywordflow">for</span> (;;) <span class="comment">/* Loop for Motion Detection */</span></div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        {   <span class="comment">/* In ISR Mode we do not need to check Data Ready Register.</span></div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="comment">             * The receipt of interrupt will indicate event is ready. */</span></div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;            <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00953.html#a515cfd76133c41bf03ae1a600533fd8c">gMma865xEventReady</a>)</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;            { <span class="comment">/* Loop, if new sample is not available. */</span></div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                <a class="code" href="a00638.html#a5423cac017d1d1a8ac8bba8e91e80e29">SMC_SetPowerModeWait</a>(<a class="code" href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a>);</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;            }</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            { <span class="comment">/*! Clear the data ready flag, it will be set again by the ISR. */</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                <a class="code" href="a00953.html#a515cfd76133c41bf03ae1a600533fd8c">gMma865xEventReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            }</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="comment">            /*! Read the INT_SRC from the MMA865x. */</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            status = <a class="code" href="a00143.html#a4e26c023c983b903eae65c12775ab0cf">MMA865x_I2C_ReadData</a>(&amp;mma865xDriver, cMma865xINTSrc, &amp;intStatus);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;            {</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                PRINTF(<span class="stringliteral">&quot;\r\n Read INT SRC Failed!\r\n&quot;</span>);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            }</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            <span class="keywordflow">if</span> (motionDetect)</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            {</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                <span class="keywordflow">if</span> ((intStatus &amp; <a class="code" href="a00140.html#a4be27f06004ef09e26ddc041e660438b">MMA865x_INT_SOURCE_SRC_FF_MT_MASK</a>) == <a class="code" href="a00140.html#aa9f5e416e32addc3b08fcb3a28ff96cb">MMA865x_INT_SOURCE_SRC_FF_MT_READY</a>)</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                {<span class="comment"></span></div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="comment">                    /*! Display that a Motion event has been detected. */</span></div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                    PRINTF(<span class="stringliteral">&quot; Motion detected...\r\n&quot;</span>);</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                    <span class="comment">/* Apply MMA865x Configuration for ASLP Detection with DATA. */</span></div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                    status = <a class="code" href="a00143.html#a5944d87d922a1bdbbf5f2574acc1e143">MMA865x_I2C_Configure</a>(&amp;mma865xDriver, cMma865xConfigDataReady);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                    {</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                        PRINTF(<span class="stringliteral">&quot;\r\n Write MMA865x DRDY Configuration Failed.\r\n&quot;</span>);</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                    }</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                    motionDetect = <span class="keyword">false</span>;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                    pGpioDriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                }</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;            }</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;            {<span class="comment"></span></div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="comment">                /*! Read the Output from the MMA865x. */</span></div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                status = <a class="code" href="a00143.html#a4e26c023c983b903eae65c12775ab0cf">MMA865x_I2C_ReadData</a>(&amp;mma865xDriver, cMma865xOutput, data);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                {</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                    PRINTF(<span class="stringliteral">&quot;\r\n ERROR : Read Data Failed!\r\n&quot;</span>);</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                    <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                }</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="comment">                /*! Convert the raw sensor data for feeding to pedometer algorithm. */</span></div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                rawData.<a class="code" href="a03611.html#a661660001effc417fb684db96e973688">accel</a>[0] = ((int16_t)data[0] &lt;&lt; 8) | data[1];</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                rawData.<a class="code" href="a03611.html#a661660001effc417fb684db96e973688">accel</a>[1] = ((int16_t)data[2] &lt;&lt; 8) | data[3];</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                rawData.<a class="code" href="a03611.html#a661660001effc417fb684db96e973688">accel</a>[2] = ((int16_t)data[4] &lt;&lt; 8) | data[5];</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="comment">                /*!  Execute the pedometer Algorithm */</span></div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                <a class="code" href="a00926.html#a87224a70b303355a416beaca80ed1b2f">pedometer_run</a>(&amp;pedometer, (<a class="code" href="a04055.html">ped_accel_t</a> *)&amp;rawData.<a class="code" href="a03611.html#a661660001effc417fb684db96e973688">accel</a>);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                <span class="comment">/* Display Steps when there is a change */</span></div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                <span class="keywordflow">if</span> (pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#ace0ff960f4cd3ce9aa8452dc57a97c2e">stepcount</a> &amp;&amp; pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#ace0ff960f4cd3ce9aa8452dc57a97c2e">stepcount</a> != lastReportedSteps)</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                {</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                    pGpioDriver-&gt;<a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                    lastReportedSteps = pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#ace0ff960f4cd3ce9aa8452dc57a97c2e">stepcount</a>;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                    <span class="keywordflow">if</span>(pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#ace0ff960f4cd3ce9aa8452dc57a97c2e">stepcount</a> == 1)</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                    {</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                        PRINTF(<span class="stringliteral">&quot;\r\n | Steps | Distance |  Speed  | Calories | Activity |\r\n&quot;</span>);</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                    }</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                    PRINTF(<span class="stringliteral">&quot;\033[K | %5d |    %4dm |  %2dkmph |      %3d | %s |\r&quot;</span>,</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                           pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#ace0ff960f4cd3ce9aa8452dc57a97c2e">stepcount</a>, pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#a7ae9d3ad463ec7a0eb38ee23a15c51e7">distance</a>, pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#a12633132d07532aac2bd05fa1d5c8a72">speed</a>/1000, pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#a1317c431cecdc37eca645ff53566ff97">calories</a>, <a class="code" href="a00953.html#a81ba4744a5759e7e84e9af73985cb245">pActivity</a>[pedometer.<a class="code" href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">status</a>.<a class="code" href="a04071.html#a0bb1fec62456252807796e63db9a6622">status</a>.<a class="code" href="a04071.html#aa9fd52939922d151d6d2b96afc0455ed">bits</a>.activity]);</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                }</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                <span class="keywordflow">if</span> ((intStatus &amp; <a class="code" href="a00140.html#ac4771224533a9fe69f4f41b31237396f">MMA865x_INT_SOURCE_SRC_ASLP_MASK</a>) == <a class="code" href="a00140.html#a5d03161593b95e16c028cf9ab194eb10">MMA865x_INT_SOURCE_SRC_ASLP_READY</a>)</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                {</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                    <span class="keywordflow">break</span>;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                }</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;            }</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        }</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    }</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;}</div><div class="ttc" id="a03903_html_ac3e094122adb91dc940bc7c033b47baa"><div class="ttname"><a href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">GENERIC_DRIVER_GPIO::set_pin</a></div><div class="ttdeci">void(* set_pin)(pinID_t aPinId)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00046">Driver_GPIO.h:46</a></div></div>
52<div class="ttc" id="a04067_html_a57ce58a7b7cf3e03dc10aca88b0edcd5"><div class="ttname"><a href="a04067.html#a57ce58a7b7cf3e03dc10aca88b0edcd5">pedometer_t::status</a></div><div class="ttdeci">struct pedometer_t::pedometer_status_tag status</div></div>
53<div class="ttc" id="a00140_html_a145fb44181d35a7314931a77a572e177"><div class="ttname"><a href="a00140.html#a145fb44181d35a7314931a77a572e177">MMA865x_CTRL_REG1_DR_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG1_DR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01534">mma865x.h:1534</a></div></div>
54<div class="ttc" id="a03607_html_af6d4d51d4fb48cfb392eeb03ac26abed"><div class="ttname"><a href="a03607.html#af6d4d51d4fb48cfb392eeb03ac26abed">mma865x_i2c_sensorhandle_t::pCommDrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * pCommDrv</div><div class="ttdef"><b>Definition:</b> <a href="a00146_source.html#l00032">mma865x_drv.h:32</a></div></div>
55<div class="ttc" id="a00140_html_a5a06c471902ba216d5f582e636ed0376"><div class="ttname"><a href="a00140.html#a5a06c471902ba216d5f582e636ed0376">MMA865x_FF_MT_CFG_YEFE_MASK</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_YEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00854">mma865x.h:854</a></div></div>
56<div class="ttc" id="a00926_html_a5ea8580b8a07ce9ece550f8b6fd37ced"><div class="ttname"><a href="a00926.html#a5ea8580b8a07ce9ece550f8b6fd37ced">pedometer_configure</a></div><div class="ttdeci">void pedometer_configure(pedometer_t *pPedometer, const pedometer_config_t *pConfig)</div><div class="ttdoc">The interface function to configure the pedometer. </div><div class="ttdef"><b>Definition:</b> <a href="a00926_source.html#l00111">pedometer.c:111</a></div></div>
57<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781aba0f55367e454ff228e8f779852f053f90"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781aba0f55367e454ff228e8f779852f053f90">MMA865x_ASLP_COUNT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00052">mma865x.h:52</a></div></div>
58<div class="ttc" id="a00140_html_a0032b0218f8db95f1198921e9bca7097"><div class="ttname"><a href="a00140.html#a0032b0218f8db95f1198921e9bca7097">MMA865x_CTRL_REG5_INT_CFG_DRDY_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_DRDY_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01815">mma865x.h:1815</a></div></div>
59<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781abaa946eeab2a594d2126b1f25295a5fabf"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781abaa946eeab2a594d2126b1f25295a5fabf">MMA865x_CTRL_REG2</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00054">mma865x.h:54</a></div></div>
60<div class="ttc" id="a03807_html"><div class="ttname"><a href="a03807.html">registerwritelist_t</a></div><div class="ttdoc">This structure defines the Write command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00068">sensor_drv.h:68</a></div></div>
61<div class="ttc" id="a03607_html"><div class="ttname"><a href="a03607.html">mma865x_i2c_sensorhandle_t</a></div><div class="ttdoc">This defines the sensor specific information. </div><div class="ttdef"><b>Definition:</b> <a href="a00146_source.html#l00029">mma865x_drv.h:29</a></div></div>
62<div class="ttc" id="a03607_html_a67af74c3fc959654c6dc8bcff3a2ea80"><div class="ttname"><a href="a03607.html#a67af74c3fc959654c6dc8bcff3a2ea80">mma865x_i2c_sensorhandle_t::slaveAddress</a></div><div class="ttdeci">uint16_t slaveAddress</div><div class="ttdef"><b>Definition:</b> <a href="a00146_source.html#l00034">mma865x_drv.h:34</a></div></div>
63<div class="ttc" id="a00140_html_a2b965f9ad7282955a945d1db0f5c42e4"><div class="ttname"><a href="a00140.html#a2b965f9ad7282955a945d1db0f5c42e4">MMA865x_CTRL_REG5_INT_CFG_FF_MT_INT1</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_FF_MT_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01851">mma865x.h:1851</a></div></div>
64<div class="ttc" id="a00359_html_a369536ebfe385731562c0b55dd6f3a7c"><div class="ttname"><a href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a></div><div class="ttdeci">int32_t status</div><div class="ttdef"><b>Definition:</b> <a href="a00359_source.html#l00248">fxls896xaf_freemaster_demo.c:248</a></div></div>
65<div class="ttc" id="a00956_html"><div class="ttname"><a href="a00956.html">pedometer.h</a></div><div class="ttdoc">The pedometer.h file contains the interface and structure definitions for pedometer application...</div></div>
66<div class="ttc" id="a04071_html_a7ae9d3ad463ec7a0eb38ee23a15c51e7"><div class="ttname"><a href="a04071.html#a7ae9d3ad463ec7a0eb38ee23a15c51e7">pedometer_t::pedometer_status_tag::distance</a></div><div class="ttdeci">uint16_t distance</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00092">pedometer.h:92</a></div></div>
67<div class="ttc" id="a00140_html_a4d1a9c95d38b0e4204074085b6ac7fd0"><div class="ttname"><a href="a00140.html#a4d1a9c95d38b0e4204074085b6ac7fd0">MMA865x_CTRL_REG4_INT_EN_DRDY_DISABLED</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_DRDY_DISABLED</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01777">mma865x.h:1777</a></div></div>
68<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00033">sensor_drv.h:33</a></div></div>
69<div class="ttc" id="a04343_html_a60ac2e3bb32ae33e2fd542f607a58ac4"><div class="ttname"><a href="a04343.html#a60ac2e3bb32ae33e2fd542f607a58ac4">I2C_S_SIGNAL_EVENT</a></div><div class="ttdeci">#define I2C_S_SIGNAL_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a04343_source.html#l00034">issdk_hal.h:34</a></div></div>
70<div class="ttc" id="a00140_html_a62c1af7139b574246b6f5359db97be16"><div class="ttname"><a href="a00140.html#a62c1af7139b574246b6f5359db97be16">MMA865x_CTRL_REG3_WAKE_FF_MT_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG3_WAKE_FF_MT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01667">mma865x.h:1667</a></div></div>
71<div class="ttc" id="a00140_html_a25e5f87fbde883f6ed6d290e494bdb35"><div class="ttname"><a href="a00140.html#a25e5f87fbde883f6ed6d290e494bdb35">MMA865x_CTRL_REG1_ASLP_RATE_1_56HZ</a></div><div class="ttdeci">#define MMA865x_CTRL_REG1_ASLP_RATE_1_56HZ</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01547">mma865x.h:1547</a></div></div>
72<div class="ttc" id="a00638_html_a82cb114bb9a5ea2f235a0216709d70f8"><div class="ttname"><a href="a00638.html#a82cb114bb9a5ea2f235a0216709d70f8">SMC_SetPowerModeVlpr</a></div><div class="ttdeci">status_t SMC_SetPowerModeVlpr(void *arg)</div><div class="ttdoc">Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...</div><div class="ttdef"><b>Definition:</b> <a href="a00638_source.html#l00169">lpc54114.c:169</a></div></div>
73<div class="ttc" id="a00953_html_add72e042f8083f042429ec70ed3ca556"><div class="ttname"><a href="a00953.html#add72e042f8083f042429ec70ed3ca556">cMma865xCommonConfiguration</a></div><div class="ttdeci">const registerwritelist_t cMma865xCommonConfiguration[]</div><div class="ttdoc">MMA865x Motion based Pedometer Register Write List. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00047">pedometer_stepcount_motion_mma8652.c:47</a></div></div>
74<div class="ttc" id="a00140_html_a585aa2939a8916dc90b2c3141ce05a76"><div class="ttname"><a href="a00140.html#a585aa2939a8916dc90b2c3141ce05a76">MMA865x_CTRL_REG1_DR_50HZ</a></div><div class="ttdeci">#define MMA865x_CTRL_REG1_DR_50HZ</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01552">mma865x.h:1552</a></div></div>
75<div class="ttc" id="a00140_html_a06b633d3f44f6315c45b260ce18db1e7"><div class="ttname"><a href="a00140.html#a06b633d3f44f6315c45b260ce18db1e7">MMA865x_CTRL_REG5_INT_CFG_DRDY_INT1</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_DRDY_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01853">mma865x.h:1853</a></div></div>
76<div class="ttc" id="a00140_html_acc2e5136ee1ff784cfb7ff4e0585e934"><div class="ttname"><a href="a00140.html#acc2e5136ee1ff784cfb7ff4e0585e934">MMA865x_FF_MT_CFG_XEFE_EN</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_XEFE_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00881">mma865x.h:881</a></div></div>
77<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781aba961d9357ec20c1ae3fc6a7c375dc4815"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781aba961d9357ec20c1ae3fc6a7c375dc4815">MMA865x_OUT_X_MSB</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00018">mma865x.h:18</a></div></div>
78<div class="ttc" id="a00140_html_ac4771224533a9fe69f4f41b31237396f"><div class="ttname"><a href="a00140.html#ac4771224533a9fe69f4f41b31237396f">MMA865x_INT_SOURCE_SRC_ASLP_MASK</a></div><div class="ttdeci">#define MMA865x_INT_SOURCE_SRC_ASLP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00464">mma865x.h:464</a></div></div>
79<div class="ttc" id="a00140_html_ae59a7f699aae93e6d2546e1af4f490c2"><div class="ttname"><a href="a00140.html#ae59a7f699aae93e6d2546e1af4f490c2">MMA865x_CTRL_REG5_INT_CFG_ASLP_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_ASLP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01833">mma865x.h:1833</a></div></div>
80<div class="ttc" id="a04292_html_a8d81431cbbc4b01da56afbff0f766379"><div class="ttname"><a href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a></div><div class="ttdeci">#define BOARD_BootClockRUN</div><div class="ttdef"><b>Definition:</b> <a href="a04292_source.html#l00019">clock_config.h:19</a></div></div>
81<div class="ttc" id="a03903_html"><div class="ttname"><a href="a03903.html">GENERIC_DRIVER_GPIO</a></div><div class="ttdoc">Access structure of the GPIO Driver. </div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00038">Driver_GPIO.h:38</a></div></div>
82<div class="ttc" id="a00641_html_a6667e81e5b32250febd3d46511d9309d"><div class="ttname"><a href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a></div><div class="ttdeci">#define SMC</div><div class="ttdef"><b>Definition:</b> <a href="a00641_source.html#l00118">lpc54114.h:118</a></div></div>
83<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781abad096ed1c772dd3c3098e2c65e485d33a"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781abad096ed1c772dd3c3098e2c65e485d33a">MMA865x_CTRL_REG3</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00055">mma865x.h:55</a></div></div>
84<div class="ttc" id="a00140_html_a5d03161593b95e16c028cf9ab194eb10"><div class="ttname"><a href="a00140.html#a5d03161593b95e16c028cf9ab194eb10">MMA865x_INT_SOURCE_SRC_ASLP_READY</a></div><div class="ttdeci">#define MMA865x_INT_SOURCE_SRC_ASLP_READY</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00471">mma865x.h:471</a></div></div>
85<div class="ttc" id="a04059_html"><div class="ttname"><a href="a04059.html">pedometer_config_t</a></div><div class="ttdoc">This defines the configuration structure of the pedometer. </div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00046">pedometer.h:46</a></div></div>
86<div class="ttc" id="a00140_html_a2663f1726426b5242b9dbd68beaa67c0"><div class="ttname"><a href="a00140.html#a2663f1726426b5242b9dbd68beaa67c0">MMA865x_FF_MT_THS_THS_MASK</a></div><div class="ttdeci">#define MMA865x_FF_MT_THS_THS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00983">mma865x.h:983</a></div></div>
87<div class="ttc" id="a00179_html_a2cedde333a6373a3ee274bde6af145d0"><div class="ttname"><a href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a></div><div class="ttdeci">#define __END_WRITE_DATA__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00045">sensor_drv.h:45</a></div></div>
88<div class="ttc" id="a04059_html_a2c49d77dccbc74c7e51171069a0f2709"><div class="ttname"><a href="a04059.html#a2c49d77dccbc74c7e51171069a0f2709">pedometer_config_t::sleepcount_threshold</a></div><div class="ttdeci">debounce_count_t sleepcount_threshold</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00050">pedometer.h:50</a></div></div>
89<div class="ttc" id="a00140_html_a4a84343828717ec15706c35156c511d4"><div class="ttname"><a href="a00140.html#a4a84343828717ec15706c35156c511d4">MMA865x_CTRL_REG3_IPOL_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG3_IPOL_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01664">mma865x.h:1664</a></div></div>
90<div class="ttc" id="a03903_html_aa59efe0989ad47737f368819d5dae141"><div class="ttname"><a href="a03903.html#aa59efe0989ad47737f368819d5dae141">GENERIC_DRIVER_GPIO::clr_pin</a></div><div class="ttdeci">void(* clr_pin)(pinID_t aPinId)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00047">Driver_GPIO.h:47</a></div></div>
91<div class="ttc" id="a00521_html_a5d7069350a7d7e65686c77a8038f462f"><div class="ttname"><a href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a></div><div class="ttdeci">typedef int32_t(DATA_FORMAT_Append_t))(void *pData</div><div class="ttdoc">The interface function to append the data on the formated stream. </div></div>
92<div class="ttc" id="a00482_html_a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e"><div class="ttname"><a href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a></div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00023">Driver_GPIO.h:23</a></div></div>
93<div class="ttc" id="a04109_html_a4c84ccb952cb083367d7040cf9de3db8"><div class="ttname"><a href="a04109.html#a4c84ccb952cb083367d7040cf9de3db8">BOARD_InitDebugConsole</a></div><div class="ttdeci">void BOARD_InitDebugConsole(void)</div><div class="ttdef"><b>Definition:</b> <a href="a04109_source.html#l00015">board.c:15</a></div></div>
94<div class="ttc" id="a04071_html_aa9fd52939922d151d6d2b96afc0455ed"><div class="ttname"><a href="a04071.html#aa9fd52939922d151d6d2b96afc0455ed">pedometer_t::pedometer_status_tag::bits</a></div><div class="ttdeci">struct pedometer_t::pedometer_status_tag::@351::@352 bits</div></div>
95<div class="ttc" id="a00143_html_a4e26c023c983b903eae65c12775ab0cf"><div class="ttname"><a href="a00143.html#a4e26c023c983b903eae65c12775ab0cf">MMA865x_I2C_ReadData</a></div><div class="ttdeci">int32_t MMA865x_I2C_ReadData(mma865x_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)</div><div class="ttdoc">The interface function to read the sensor data. </div><div class="ttdef"><b>Definition:</b> <a href="a00143_source.html#l00106">mma865x_drv.c:106</a></div></div>
96<div class="ttc" id="a00140_html_a54e562d4f6ff399e0e3df7d1b823537d"><div class="ttname"><a href="a00140.html#a54e562d4f6ff399e0e3df7d1b823537d">MMA865x_CTRL_REG3_IPOL_ACTIVE_HIGH</a></div><div class="ttdeci">#define MMA865x_CTRL_REG3_IPOL_ACTIVE_HIGH</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01701">mma865x.h:1701</a></div></div>
97<div class="ttc" id="a00140_html_a6311406189062ead48f6284a3b7553fe"><div class="ttname"><a href="a00140.html#a6311406189062ead48f6284a3b7553fe">MMA865x_FF_MT_CFG_ZEFE_EN</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_ZEFE_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00875">mma865x.h:875</a></div></div>
98<div class="ttc" id="a00956_html_a17d20b7d617372405447c7cbd580017b"><div class="ttname"><a href="a00956.html#a17d20b7d617372405447c7cbd580017b">PEDO_ONEG_2G</a></div><div class="ttdeci">#define PEDO_ONEG_2G</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00030">pedometer.h:30</a></div></div>
99<div class="ttc" id="a00140_html_aed20b93c1f3a5f1b4c15c976fe24ef49"><div class="ttname"><a href="a00140.html#aed20b93c1f3a5f1b4c15c976fe24ef49">MMA865x_CTRL_REG4_INT_EN_FF_MT_EN</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_FF_MT_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01776">mma865x.h:1776</a></div></div>
100<div class="ttc" id="a00140_html_aa9f5e416e32addc3b08fcb3a28ff96cb"><div class="ttname"><a href="a00140.html#aa9f5e416e32addc3b08fcb3a28ff96cb">MMA865x_INT_SOURCE_SRC_FF_MT_READY</a></div><div class="ttdeci">#define MMA865x_INT_SOURCE_SRC_FF_MT_READY</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00488">mma865x.h:488</a></div></div>
101<div class="ttc" id="a04067_html"><div class="ttname"><a href="a04067.html">pedometer_t</a></div><div class="ttdoc">This defines the pedometer instance. </div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00073">pedometer.h:73</a></div></div>
102<div class="ttc" id="a00140_html_a5c1b5c66b788cd768d3217898e6149d0"><div class="ttname"><a href="a00140.html#a5c1b5c66b788cd768d3217898e6149d0">MMA865x_CTRL_REG4_INT_EN_FF_MT_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_FF_MT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01743">mma865x.h:1743</a></div></div>
103<div class="ttc" id="a00182_html_aaac4c4f34b4dd37d3f202a1dbb4b000b"><div class="ttname"><a href="a00182.html#aaac4c4f34b4dd37d3f202a1dbb4b000b">Sensor_I2C_Write</a></div><div class="ttdeci">int32_t Sensor_I2C_Write(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, const registerwritelist_t *pRegWriteList)</div><div class="ttdoc">Write register data to a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00071">sensor_io_i2c.c:71</a></div></div>
104<div class="ttc" id="a04055_html"><div class="ttname"><a href="a04055.html">ped_accel_t</a></div><div class="ttdoc">This defines the acceleration input data for the pedometer. </div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00039">pedometer.h:39</a></div></div>
105<div class="ttc" id="a04071_html_a1317c431cecdc37eca645ff53566ff97"><div class="ttname"><a href="a04071.html#a1317c431cecdc37eca645ff53566ff97">pedometer_t::pedometer_status_tag::calories</a></div><div class="ttdeci">uint16_t calories</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00094">pedometer.h:94</a></div></div>
106<div class="ttc" id="a00179_html_a5deff6bd688b60b97b84fc7e78d3ea63"><div class="ttname"><a href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a></div><div class="ttdeci">void(* registeridlefunction_t)(void *userParam)</div><div class="ttdoc">This is the register idle function type. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00097">sensor_drv.h:97</a></div></div>
107<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781aba7f12bf42857db515245e5ff168a739a0"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781aba7f12bf42857db515245e5ff168a739a0">MMA865x_CTRL_REG5</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00057">mma865x.h:57</a></div></div>
108<div class="ttc" id="a03611_html_a661660001effc417fb684db96e973688"><div class="ttname"><a href="a03611.html#a661660001effc417fb684db96e973688">mma865x_acceldata_t::accel</a></div><div class="ttdeci">int16_t accel[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00146_source.html#l00041">mma865x_drv.h:41</a></div></div>
109<div class="ttc" id="a00281_html_ac61bf859f26cd2541c3958bff34e2bda"><div class="ttname"><a href="a00281.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a></div><div class="ttdeci">GENERIC_DRIVER_GPIO * pGpioDriver</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00067">mma8491q_example.c:67</a></div></div>
110<div class="ttc" id="a00953_html_ac4de2c65ec72c87fe69b76de4d2a562f"><div class="ttname"><a href="a00953.html#ac4de2c65ec72c87fe69b76de4d2a562f">cMma865xConfigMotionDetect</a></div><div class="ttdeci">const registerwritelist_t cMma865xConfigMotionDetect[]</div><div class="ttdoc">MMA865x Motion Detect Mode Register Write List. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00064">pedometer_stepcount_motion_mma8652.c:64</a></div></div>
111<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781aba8e8c5a7a258169848329a0efc7f7624f"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781aba8e8c5a7a258169848329a0efc7f7624f">MMA865x_CTRL_REG1</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00053">mma865x.h:53</a></div></div>
112<div class="ttc" id="a00428_html_a0155cf01983779a6f386fb8eac40d37c"><div class="ttname"><a href="a00428.html#a0155cf01983779a6f386fb8eac40d37c">data</a></div><div class="ttdeci">uint8_t data[FXLS8962_DATA_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00174">fxls8962_demo.c:174</a></div></div>
113<div class="ttc" id="a00143_html_a5944d87d922a1bdbbf5f2574acc1e143"><div class="ttname"><a href="a00143.html#a5944d87d922a1bdbbf5f2574acc1e143">MMA865x_I2C_Configure</a></div><div class="ttdeci">int32_t MMA865x_I2C_Configure(mma865x_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)</div><div class="ttdoc">The interface function to configure he sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00143_source.html#l00061">mma865x_drv.c:61</a></div></div>
114<div class="ttc" id="a00140_html_a85f3c711c933ee65492521e8500c7de2"><div class="ttname"><a href="a00140.html#a85f3c711c933ee65492521e8500c7de2">MMA865x_CTRL_REG4_INT_EN_ASLP_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_ASLP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01758">mma865x.h:1758</a></div></div>
115<div class="ttc" id="a00179_html_aebb58a1bb3df30b7df4f6f14d0f1a81d"><div class="ttname"><a href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a></div><div class="ttdeci">#define __END_READ_DATA__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00051">sensor_drv.h:51</a></div></div>
116<div class="ttc" id="a00146_html"><div class="ttname"><a href="a00146.html">mma865x_drv.h</a></div><div class="ttdoc">The mma865x_drv.h file describes the MMA865x driver interface and structures. </div></div>
117<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781aba524bea6631744a1a05db44b974a71ac0"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781aba524bea6631744a1a05db44b974a71ac0">MMA865x_INT_SOURCE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00027">mma865x.h:27</a></div></div>
118<div class="ttc" id="a00953_html_a3a508eb0caf6f52676ae32b76e4a8205"><div class="ttname"><a href="a00953.html#a3a508eb0caf6f52676ae32b76e4a8205">cMma865xINTSrc</a></div><div class="ttdeci">const registerreadlist_t cMma865xINTSrc[]</div><div class="ttdoc">Address of INT Source Register. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00082">pedometer_stepcount_motion_mma8652.c:82</a></div></div>
119<div class="ttc" id="a04343_html_ad6a14737695a4218d07182b86b21f570"><div class="ttname"><a href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a></div><div class="ttdeci">#define I2C_S_DRIVER</div><div class="ttdef"><b>Definition:</b> <a href="a04343_source.html#l00033">issdk_hal.h:33</a></div></div>
120<div class="ttc" id="a00140_html_a6cbf57d6dc87621f17d7a2f5c6abc604"><div class="ttname"><a href="a00140.html#a6cbf57d6dc87621f17d7a2f5c6abc604">MMA865x_CTRL_REG4_INT_EN_DRDY_EN</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_DRDY_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01778">mma865x.h:1778</a></div></div>
121<div class="ttc" id="a00368_html_a3c22bed16a7c769894081222aa6107d8"><div class="ttname"><a href="a00368.html#a3c22bed16a7c769894081222aa6107d8">I2Cdrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * I2Cdrv</div><div class="ttdef"><b>Definition:</b> <a href="a00368_source.html#l00083">fxls896xaf_motion_wakeup.c:83</a></div></div>
122<div class="ttc" id="a00227_html_ad508addf55fd0c55016ce25fe85bbd3d"><div class="ttname"><a href="a00227.html#ad508addf55fd0c55016ce25fe85bbd3d">rawData</a></div><div class="ttdeci">fxos8700_accelmagdata_t rawData</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00218">fxos8700_freemaster_demo.c:218</a></div></div>
123<div class="ttc" id="a00140_html_a51ab443a5ce88b02f0ce01ae5bcc8d6c"><div class="ttname"><a href="a00140.html#a51ab443a5ce88b02f0ce01ae5bcc8d6c">MMA865x_CTRL_REG5_INT_CFG_FF_MT_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_FF_MT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01818">mma865x.h:1818</a></div></div>
124<div class="ttc" id="a00140_html_aad503716fc9b34afca8b43db11b25122"><div class="ttname"><a href="a00140.html#aad503716fc9b34afca8b43db11b25122">MMA865x_FF_MT_CFG_XEFE_MASK</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_XEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00851">mma865x.h:851</a></div></div>
125<div class="ttc" id="a04071_html_a12633132d07532aac2bd05fa1d5c8a72"><div class="ttname"><a href="a04071.html#a12633132d07532aac2bd05fa1d5c8a72">pedometer_t::pedometer_status_tag::speed</a></div><div class="ttdeci">uint16_t speed</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00093">pedometer.h:93</a></div></div>
126<div class="ttc" id="a00953_html_ac8739dded5604790bbe053e9ac11d8ce"><div class="ttname"><a href="a00953.html#ac8739dded5604790bbe053e9ac11d8ce">cPedoConfig</a></div><div class="ttdeci">pedometer_config_t cPedoConfig</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00096">pedometer_stepcount_motion_mma8652.c:96</a></div></div>
127<div class="ttc" id="a00140_html_a03536cf382e1e3a9c38cdb208af16bad"><div class="ttname"><a href="a00140.html#a03536cf382e1e3a9c38cdb208af16bad">MMA865x_CTRL_REG5_INT_CFG_FF_MT_INT2</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_FF_MT_INT2</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01850">mma865x.h:1850</a></div></div>
128<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781abac3223204c1cd238ac99b823db415a60c"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781abac3223204c1cd238ac99b823db415a60c">MMA865x_CTRL_REG4</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00056">mma865x.h:56</a></div></div>
129<div class="ttc" id="a03811_html_a5fe82375de174c0511ca301fec78e441"><div class="ttname"><a href="a03811.html#a5fe82375de174c0511ca301fec78e441">registerreadlist_t::readFrom</a></div><div class="ttdeci">uint16_t readFrom</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00080">sensor_drv.h:80</a></div></div>
130<div class="ttc" id="a00140_html_a11340d1bb66e48e67ffbc9de3798d7a8"><div class="ttname"><a href="a00140.html#a11340d1bb66e48e67ffbc9de3798d7a8">MMA865x_CTRL_REG3_PP_OD_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG3_PP_OD_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01661">mma865x.h:1661</a></div></div>
131<div class="ttc" id="a00953_html_a426cf73861dde61ea4cbc50202502bb4"><div class="ttname"><a href="a00953.html#a426cf73861dde61ea4cbc50202502bb4">mma865x_int_callback</a></div><div class="ttdeci">void mma865x_int_callback(void *pUserData)</div><div class="ttdoc">This is the Sensor Event Ready ISR implementation. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00129">pedometer_stepcount_motion_mma8652.c:129</a></div></div>
132<div class="ttc" id="a03607_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a03607.html#ae75b47fd9e098d6bd3b28f6be6586998">mma865x_i2c_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00146_source.html#l00031">mma865x_drv.h:31</a></div></div>
133<div class="ttc" id="a03903_html_a62607faa2025749cb36c8d7e379d45fc"><div class="ttname"><a href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">GENERIC_DRIVER_GPIO::toggle_pin</a></div><div class="ttdeci">void(* toggle_pin)(pinID_t aPinId)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00048">Driver_GPIO.h:48</a></div></div>
134<div class="ttc" id="a00140_html_ad957981a4a08504a7fbcfb3c6aed8e6a"><div class="ttname"><a href="a00140.html#ad957981a4a08504a7fbcfb3c6aed8e6a">MMA865x_FF_MT_CFG_OAE_MOTION</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_OAE_MOTION</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00873">mma865x.h:873</a></div></div>
135<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781aba42229d7482e5dbe57cd39be42d0e1646"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781aba42229d7482e5dbe57cd39be42d0e1646">MMA865x_FF_MT_THS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00038">mma865x.h:38</a></div></div>
136<div class="ttc" id="a00953_html_a515cfd76133c41bf03ae1a600533fd8c"><div class="ttname"><a href="a00953.html#a515cfd76133c41bf03ae1a600533fd8c">gMma865xEventReady</a></div><div class="ttdeci">volatile bool gMma865xEventReady</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00093">pedometer_stepcount_motion_mma8652.c:93</a></div></div>
137<div class="ttc" id="a00140_html_a8b769cc803d06e250f7bf3db5be51317"><div class="ttname"><a href="a00140.html#a8b769cc803d06e250f7bf3db5be51317">MMA865x_CTRL_REG2_SMODS_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG2_SMODS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01598">mma865x.h:1598</a></div></div>
138<div class="ttc" id="a00953_html_a3b24fff9603c0d52b23f3ad2a5401fcd"><div class="ttname"><a href="a00953.html#a3b24fff9603c0d52b23f3ad2a5401fcd">cMma865xConfigDataReady</a></div><div class="ttdeci">const registerwritelist_t cMma865xConfigDataReady[]</div><div class="ttdoc">MMA865x DRDY and ASLP Detect Mode Register Write List. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00073">pedometer_stepcount_motion_mma8652.c:73</a></div></div>
139<div class="ttc" id="a00140_html_a632be826ac627a124e8fc4241ebcf64a"><div class="ttname"><a href="a00140.html#a632be826ac627a124e8fc4241ebcf64a">MMA865x_CTRL_REG1_ASLP_RATE_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG1_ASLP_RATE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01537">mma865x.h:1537</a></div></div>
140<div class="ttc" id="a00953_html_ac1de58f19be26d0d484cf2fa338c9eb5"><div class="ttname"><a href="a00953.html#ac1de58f19be26d0d484cf2fa338c9eb5">ASLP_COUNTER</a></div><div class="ttdeci">#define ASLP_COUNTER</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00040">pedometer_stepcount_motion_mma8652.c:40</a></div></div>
141<div class="ttc" id="a00638_html_a5423cac017d1d1a8ac8bba8e91e80e29"><div class="ttname"><a href="a00638.html#a5423cac017d1d1a8ac8bba8e91e80e29">SMC_SetPowerModeWait</a></div><div class="ttdeci">status_t SMC_SetPowerModeWait(void *arg)</div><div class="ttdoc">Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...</div><div class="ttdef"><b>Definition:</b> <a href="a00638_source.html#l00155">lpc54114.c:155</a></div></div>
142<div class="ttc" id="a04337_html_a88cd7b4c0d30f567bd8f337f9674a6d9"><div class="ttname"><a href="a04337.html#a88cd7b4c0d30f567bd8f337f9674a6d9">MMA8652_INT1</a></div><div class="ttdeci">#define MMA8652_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a04337_source.html#l00064">frdm_fxs_mult2b_shield.h:64</a></div></div>
143<div class="ttc" id="a00140_html_adb5bcf08e5f01089966a34ef1a3ce3fe"><div class="ttname"><a href="a00140.html#adb5bcf08e5f01089966a34ef1a3ce3fe">MMA865x_FF_MT_CFG_ZEFE_MASK</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_ZEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00857">mma865x.h:857</a></div></div>
144<div class="ttc" id="a03903_html_a0c1e5657ab29e57116a57c7b22f4c630"><div class="ttname"><a href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">GENERIC_DRIVER_GPIO::pin_init</a></div><div class="ttdeci">void(* pin_init)(pinID_t aPinId, gpio_direction_t dir, void *apPinConfig, gpio_isr_handler_t aIsrHandler, void *apUserData)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00041">Driver_GPIO.h:41</a></div></div>
145<div class="ttc" id="a04841_html_a2c39f234913855fad752a8f96f245b27"><div class="ttname"><a href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a></div><div class="ttdeci">GENERIC_DRIVER_GPIO Driver_GPIO_KSDK</div><div class="ttdef"><b>Definition:</b> <a href="a04841_source.html#l00177">gpio_driver.c:177</a></div></div>
146<div class="ttc" id="a00953_html_a385f7e87c887e336e8be2e0b095ee316"><div class="ttname"><a href="a00953.html#a385f7e87c887e336e8be2e0b095ee316">cMma865xOutput</a></div><div class="ttdeci">const registerreadlist_t cMma865xOutput[]</div><div class="ttdoc">Address of Data Output Registers. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00085">pedometer_stepcount_motion_mma8652.c:85</a></div></div>
147<div class="ttc" id="a00953_html_af17be18e5bc74f21df9e565c4dda77ee"><div class="ttname"><a href="a00953.html#af17be18e5bc74f21df9e565c4dda77ee">MT_FF_MT_THS</a></div><div class="ttdeci">#define MT_FF_MT_THS</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00039">pedometer_stepcount_motion_mma8652.c:39</a></div></div>
148<div class="ttc" id="a04071_html_a0bb1fec62456252807796e63db9a6622"><div class="ttname"><a href="a04071.html#a0bb1fec62456252807796e63db9a6622">pedometer_t::pedometer_status_tag::status</a></div><div class="ttdeci">union pedometer_t::pedometer_status_tag::@351 status</div></div>
149<div class="ttc" id="a03811_html"><div class="ttname"><a href="a03811.html">registerreadlist_t</a></div><div class="ttdoc">This structure defines the Read command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00078">sensor_drv.h:78</a></div></div>
150<div class="ttc" id="a00545_html_a8988e99259e07194918336da18dd35e9"><div class="ttname"><a href="a00545.html#a8988e99259e07194918336da18dd35e9">MMA8652_I2C_ADDR</a></div><div class="ttdeci">#define MMA8652_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00056">auto_detection_shield.h:56</a></div></div>
151<div class="ttc" id="a03611_html"><div class="ttname"><a href="a03611.html">mma865x_acceldata_t</a></div><div class="ttdoc">This structure defines the mma865x raw data buffer. </div><div class="ttdef"><b>Definition:</b> <a href="a00146_source.html#l00038">mma865x_drv.h:38</a></div></div>
152<div class="ttc" id="a00953_html_a2c8dc64063c1a31d171819eae83feed9"><div class="ttname"><a href="a00953.html#a2c8dc64063c1a31d171819eae83feed9">MMA865x_DATA_SIZE</a></div><div class="ttdeci">#define MMA865x_DATA_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00041">pedometer_stepcount_motion_mma8652.c:41</a></div></div>
153<div class="ttc" id="a00140_html_a4be27f06004ef09e26ddc041e660438b"><div class="ttname"><a href="a00140.html#a4be27f06004ef09e26ddc041e660438b">MMA865x_INT_SOURCE_SRC_FF_MT_MASK</a></div><div class="ttdeci">#define MMA865x_INT_SOURCE_SRC_FF_MT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00449">mma865x.h:449</a></div></div>
154<div class="ttc" id="a00575_html_a02a28175122c7e060eeb1411dc5ac171"><div class="ttname"><a href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a></div><div class="ttdeci">gpioHandleKSDK_t GREEN_LED</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00188">frdm_k64f.c:188</a></div></div>
155<div class="ttc" id="a00926_html_a87224a70b303355a416beaca80ed1b2f"><div class="ttname"><a href="a00926.html#a87224a70b303355a416beaca80ed1b2f">pedometer_run</a></div><div class="ttdeci">int32_t pedometer_run(pedometer_t *pPedometer, ped_accel_t *pData)</div><div class="ttdoc">The interface function excutes the pedometer algorithm. </div><div class="ttdef"><b>Definition:</b> <a href="a00926_source.html#l00125">pedometer.c:125</a></div></div>
156<div class="ttc" id="a00140_html_a91b0544558a4ab84412a204ce64af8fe"><div class="ttname"><a href="a00140.html#a91b0544558a4ab84412a204ce64af8fe">MMA865x_CTRL_REG4_INT_EN_ASLP_DISABLED</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_ASLP_DISABLED</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01765">mma865x.h:1765</a></div></div>
157<div class="ttc" id="a00143_html_aabd69bb772dc05a10ab05faf94103d0b"><div class="ttname"><a href="a00143.html#aabd69bb772dc05a10ab05faf94103d0b">MMA865x_I2C_SetIdleTask</a></div><div class="ttdeci">void MMA865x_I2C_SetIdleTask(mma865x_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)</div><div class="ttdoc">: The interface function to set the I2C Idle Task. </div><div class="ttdef"><b>Definition:</b> <a href="a00143_source.html#l00053">mma865x_drv.c:53</a></div></div>
158<div class="ttc" id="a00140_html_acf4325878b26d6a31dfdde9065a4a496"><div class="ttname"><a href="a00140.html#acf4325878b26d6a31dfdde9065a4a496">MMA865x_CTRL_REG2_SMODS_LP</a></div><div class="ttdeci">#define MMA865x_CTRL_REG2_SMODS_LP</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01618">mma865x.h:1618</a></div></div>
159<div class="ttc" id="a00140_html_a72a9b26261b16b43aa4442c38c2cade9"><div class="ttname"><a href="a00140.html#a72a9b26261b16b43aa4442c38c2cade9">MMA865x_CTRL_REG2_SLPE_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG2_SLPE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01595">mma865x.h:1595</a></div></div>
160<div class="ttc" id="a00140_html_a5b38a2b3caa0a980427582b141f57326"><div class="ttname"><a href="a00140.html#a5b38a2b3caa0a980427582b141f57326">MMA865x_CTRL_REG3_PP_OD_PUSH_PULL</a></div><div class="ttdeci">#define MMA865x_CTRL_REG3_PP_OD_PUSH_PULL</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01702">mma865x.h:1702</a></div></div>
161<div class="ttc" id="a00140_html_afdfe075eee3bbfc919c3095a442ced1f"><div class="ttname"><a href="a00140.html#afdfe075eee3bbfc919c3095a442ced1f">MMA865x_CTRL_REG2_SLPE_EN</a></div><div class="ttdeci">#define MMA865x_CTRL_REG2_SLPE_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01620">mma865x.h:1620</a></div></div>
162<div class="ttc" id="a00140_html_a073411344592aee73bcd637972375e00"><div class="ttname"><a href="a00140.html#a073411344592aee73bcd637972375e00">MMA8652_WHOAMI_VALUE</a></div><div class="ttdeci">#define MMA8652_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00065">mma865x.h:65</a></div></div>
163<div class="ttc" id="a00926_html_a594d690252fcfc6713fe8374f384fe69"><div class="ttname"><a href="a00926.html#a594d690252fcfc6713fe8374f384fe69">pedometer_init</a></div><div class="ttdeci">void pedometer_init(pedometer_t *pPedometer)</div><div class="ttdoc">The interface function initialize the pedometer. </div><div class="ttdef"><b>Definition:</b> <a href="a00926_source.html#l00097">pedometer.c:97</a></div></div>
164<div class="ttc" id="a04343_html_ab0c7969a7fffaabe78d43db2b12ad840"><div class="ttname"><a href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a></div><div class="ttdeci">#define I2C_S_DEVICE_INDEX</div><div class="ttdef"><b>Definition:</b> <a href="a04343_source.html#l00035">issdk_hal.h:35</a></div></div>
165<div class="ttc" id="a00140_html_aeb021986e3fecb069fcc59d001e69ece"><div class="ttname"><a href="a00140.html#aeb021986e3fecb069fcc59d001e69ece">MMA865x_FF_MT_CFG_OAE_MASK</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_OAE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00860">mma865x.h:860</a></div></div>
166<div class="ttc" id="a00953_html_a840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="a00953.html#a840291bc02cba5474a4cb46a9b9566fe">main</a></div><div class="ttdeci">int main(void)</div><div class="ttdoc">This is the The main function implementation. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00143">pedometer_stepcount_motion_mma8652.c:143</a></div></div>
167<div class="ttc" id="a00482_html_a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab"><div class="ttname"><a href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00024">Driver_GPIO.h:24</a></div></div>
168<div class="ttc" id="a00140_html_ae46eecb18be2f0ab6815c3b4033a317b"><div class="ttname"><a href="a00140.html#ae46eecb18be2f0ab6815c3b4033a317b">MMA865x_CTRL_REG4_INT_EN_DRDY_MASK</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_DRDY_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01740">mma865x.h:1740</a></div></div>
169<div class="ttc" id="a00143_html_a088d55c83170dc62e31a430bbeac84fe"><div class="ttname"><a href="a00143.html#a088d55c83170dc62e31a430bbeac84fe">MMA865x_I2C_Initialize</a></div><div class="ttdeci">int32_t MMA865x_I2C_Initialize(mma865x_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)</div><div class="ttdoc">The interface function to initialize the sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00143_source.html#l00022">mma865x_drv.c:22</a></div></div>
170<div class="ttc" id="a00959_html_ga2c9fe54b6b84723fbaa590a6f4576966"><div class="ttname"><a href="a00959.html#ga2c9fe54b6b84723fbaa590a6f4576966">BOARD_InitPins</a></div><div class="ttdeci">void BOARD_InitPins(void)</div><div class="ttdoc">Configures pin routing and optionally pin electrical features. </div><div class="ttdef"><b>Definition:</b> <a href="a04541_source.html#l00047">pin_mux.c:47</a></div></div>
171<div class="ttc" id="a00140_html_ac8185ddfde4a566ad9f701078fe07658"><div class="ttname"><a href="a00140.html#ac8185ddfde4a566ad9f701078fe07658">MMA865x_CTRL_REG3_WAKE_FF_MT_EN</a></div><div class="ttdeci">#define MMA865x_CTRL_REG3_WAKE_FF_MT_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01699">mma865x.h:1699</a></div></div>
172<div class="ttc" id="a04071_html_ace0ff960f4cd3ce9aa8452dc57a97c2e"><div class="ttname"><a href="a04071.html#ace0ff960f4cd3ce9aa8452dc57a97c2e">pedometer_t::pedometer_status_tag::stepcount</a></div><div class="ttdeci">uint16_t stepcount</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00091">pedometer.h:91</a></div></div>
173<div class="ttc" id="a00140_html_a9abc2f3d7b6d37921a03ff14f581d16b"><div class="ttname"><a href="a00140.html#a9abc2f3d7b6d37921a03ff14f581d16b">MMA865x_CTRL_REG5_INT_CFG_ASLP_INT1</a></div><div class="ttdeci">#define MMA865x_CTRL_REG5_INT_CFG_ASLP_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01841">mma865x.h:1841</a></div></div>
174<div class="ttc" id="a00140_html_a5f5644bf01f0cecc06a2a59be51c487f"><div class="ttname"><a href="a00140.html#a5f5644bf01f0cecc06a2a59be51c487f">MMA865x_CTRL_REG4_INT_EN_ASLP_EN</a></div><div class="ttdeci">#define MMA865x_CTRL_REG4_INT_EN_ASLP_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l01766">mma865x.h:1766</a></div></div>
175<div class="ttc" id="a00953_html_a81ba4744a5759e7e84e9af73985cb245"><div class="ttname"><a href="a00953.html#a81ba4744a5759e7e84e9af73985cb245">pActivity</a></div><div class="ttdeci">const char * pActivity[5]</div><div class="ttdoc">Pedometer Mode Name Strings. </div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00088">pedometer_stepcount_motion_mma8652.c:88</a></div></div>
176<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781abadd2ebd4208fef30d4a24f744921d0b26"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781abadd2ebd4208fef30d4a24f744921d0b26">MMA865x_FF_MT_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00036">mma865x.h:36</a></div></div>
177<div class="ttc" id="a00140_html_a068e33cdc4910204b2e11166f42c3d27"><div class="ttname"><a href="a00140.html#a068e33cdc4910204b2e11166f42c3d27">MMA865x_FF_MT_CFG_YEFE_EN</a></div><div class="ttdeci">#define MMA865x_FF_MT_CFG_YEFE_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00878">mma865x.h:878</a></div></div>
178</div><!-- fragment --></div><!-- contents -->
179
180<hr class="footer"/><address class="footer"><small>
181&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
182</small></address>
183</body>
184</html>
185