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_fxos8700.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  <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_fxos8700.c</div> </div> 49</div><!--header--> 50<div class="contents"> 51<a href="a00950.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * @file pedometer_stepcount_fxos8700.c</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * @brief The pedometer_stepcount_fxos8700.c file implements the ISSDK FXOS8700 sensor</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * driver example demonstration for Motion Activated Pedometer.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// SDK Includes</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "board.h"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "pin_mux.h"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "clock_config.h"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "fsl_debug_console.h"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// CMSIS Includes</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "Driver_I2C.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// ISSDK Includes</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "issdk_hal.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="a00956.html">pedometer.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "gpio_driver.h"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="a00086.html">fxos8700_drv.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// Macros</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="a00950.html#a228ad907ff6d7b37eb624ead7c8cd362"> 39</a></span> <span class="preprocessor">#define MT_A_FFMT_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="a00950.html#ac1de58f19be26d0d484cf2fa338c9eb5"> 40</a></span> <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="a00950.html#ac565dfc6599c537d2df6f1923b285f1e"> 41</a></span> <span class="preprocessor">#define FXOS8700_ACCEL_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> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// Constants</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">//-----------------------------------------------------------------------</span><span class="comment"></span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">/*! @brief FXOS8700 Motion based Pedometer Register Write List. */</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="a00950.html#ac9cbbd14e798ebcf7a433aa5021e2b2d"> 47</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00950.html#ac9cbbd14e798ebcf7a433aa5021e2b2d">cFxos8700CommonConfiguration</a>[] = {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dac042ebfac33ad9921645ec1f99a9b47e">FXOS8700_ASLP_COUNT</a>, <a class="code" href="a00950.html#ac1de58f19be26d0d484cf2fa338c9eb5">ASLP_COUNTER</a>, 0},</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabe02277bed750f9b3062eddcb056d116">FXOS8700_A_FFMT_THS</a>, <a class="code" href="a00950.html#a228ad907ff6d7b37eb624ead7c8cd362">MT_A_FFMT_THS</a>, <a class="code" href="a00080.html#a359e9025b66d1dc8be94098285e6cc4f">FXOS8700_A_FFMT_THS_THS_MASK</a>},</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da47d310708d19fb1bac84942ead51427d">FXOS8700_A_FFMT_CFG</a>, <a class="code" href="a00080.html#a1afa738251326817d2d76b15a2381c46">FXOS8700_A_FFMT_CFG_OAE_MOTION</a> | <a class="code" href="a00080.html#a0e4711bb3723261f1d41b2b9ac100796">FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT</a> | <a class="code" href="a00080.html#a3083726008f66866d39ce47ef2407c11">FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT</a> | <a class="code" href="a00080.html#ac0b2a2750f3ae87c19b54e21a347cd03">FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT</a>,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="a00080.html#a4cbf59a396799828f6790f8ce1b7b6b0">FXOS8700_A_FFMT_CFG_OAE_MASK</a> | <a class="code" href="a00080.html#a2e9348f883ca462834be1da82a5f0297">FXOS8700_A_FFMT_CFG_ZEFE_MASK</a> | <a class="code" href="a00080.html#a11dc5e0d310818490addf314f7f35dfc">FXOS8700_A_FFMT_CFG_YEFE_MASK</a> | <a class="code" href="a00080.html#a28456d1cd33970595c08601b8e743fe5">FXOS8700_A_FFMT_CFG_XEFE_MASK</a>},</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dab871a4ff4bb96c042507d1142bf1bb6d">FXOS8700_CTRL_REG1</a>, <a class="code" href="a00080.html#a5110749037b19c1840624ae4ec79c6fb">FXOS8700_CTRL_REG1_ASLP_RATE_1P56_HZ</a> | <a class="code" href="a00080.html#a928d47ced28216ae3cfc313a34f704c6">FXOS8700_CTRL_REG1_DR_SINGLE_50_HZ</a>,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="a00080.html#a9dba657257faf331f0991c8d2b8a5de7">FXOS8700_CTRL_REG1_ASLP_RATE_MASK</a> | <a class="code" href="a00080.html#a5ba8c0c0813375f895bc2312d44f30b7">FXOS8700_CTRL_REG1_DR_MASK</a>},</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a>, <a class="code" href="a00080.html#a172f7d6a4bf494102fbe0b439d7777eb">FXOS8700_CTRL_REG2_SLPE_EN</a> | <a class="code" href="a00080.html#ae1c92883b4f5b0dd138264cf598d32ff">FXOS8700_CTRL_REG2_MODS_LOW_POWER</a>,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="a00080.html#a6cd07ab2792e73408f704ae73d3ee077">FXOS8700_CTRL_REG2_SLPE_MASK</a> | <a class="code" href="a00080.html#acfa8c0e771b144bc16ab6ca8908a527a">FXOS8700_CTRL_REG2_SMODS_MASK</a>},</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabbf450dd8289876d3736d975ae12e782">FXOS8700_CTRL_REG3</a>, <a class="code" href="a00080.html#a417fd539d73ae437106b69d7a45ae49a">FXOS8700_CTRL_REG3_WAKE_FFMT_EN</a> | <a class="code" href="a00080.html#aa143b37000a4849deacb75476cd62c65">FXOS8700_CTRL_REG3_IPOL_ACTIVE_HIGH</a> | <a class="code" href="a00080.html#ab990c279c21f891fbc0222fbbf5e366c">FXOS8700_CTRL_REG3_PP_OD_PUSH_PULL</a>,</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="a00080.html#ab1b964c4fb638fb5eba0217e9a422251">FXOS8700_CTRL_REG3_WAKE_FFMT_MASK</a> | <a class="code" href="a00080.html#a65e7ea06e97099fdfafcaeb88b6924dd">FXOS8700_CTRL_REG3_IPOL_MASK</a> | <a class="code" href="a00080.html#afb4115590ea0c3fd56c2d07364b49dea">FXOS8700_CTRL_REG3_PP_OD_MASK</a>},</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a>, <a class="code" href="a00080.html#a789eda6a40a31f6f1b57537279c745ed">FXOS8700_CTRL_REG4_INT_EN_FFMT_EN</a>, <a class="code" href="a00080.html#ab428e85d93ab5d14bd2fac89d95ae4a0">FXOS8700_CTRL_REG4_INT_EN_FFMT_MASK</a>},</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a>, <a class="code" href="a00080.html#a812778488bfd3f657aa3e60936a3f172">FXOS8700_CTRL_REG5_INT_CFG_DRDY_INT1</a> | <a class="code" href="a00080.html#ab25fe9720e6b54d9aab05397ec4ff880">FXOS8700_CTRL_REG5_INT_CFG_ASLP_INT1</a>,</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="a00080.html#a35219e0a108fb9ccf4e7921bd3605cc6">FXOS8700_CTRL_REG5_INT_CFG_DRDY_MASK</a> | <a class="code" href="a00080.html#a8a33dd5db08b3953570b29dad844e696">FXOS8700_CTRL_REG5_INT_CFG_ASLP_MASK</a>},</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"></span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">/*! @brief FXOS8700 Motion Detect Mode Register Write List. */</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="a00950.html#a98288ae64a9730a61b936b52bf82b45d"> 64</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00950.html#a98288ae64a9730a61b936b52bf82b45d">cFxos8700ConfigMotionDetect</a>[] = {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">/* Only FFMT INT Enabled */</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a>, <a class="code" href="a00080.html#a1d1ece383caf796ed4df208b9be65bcc">FXOS8700_CTRL_REG4_INT_EN_DRDY_DIS</a> | <a class="code" href="a00080.html#a576ca5e37ef1f652843df763c3d969aa">FXOS8700_CTRL_REG4_INT_EN_ASLP_DIS</a>,</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="a00080.html#a82dedea7c01e02db3c02b93eddac62c6">FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</a> | <a class="code" href="a00080.html#a1189a77a74133a30efc29f3b41a3e19b">FXOS8700_CTRL_REG4_INT_EN_ASLP_MASK</a>},</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">/* Route FFMT to INT1 */</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a>, <a class="code" href="a00080.html#acc5edd867b8c0807c000aacfad4a16af">FXOS8700_CTRL_REG5_INT_CFG_FFMT_INT1</a>, <a class="code" href="a00080.html#a260b36d4c1160e4db0122b0ae24860f8">FXOS8700_CTRL_REG5_INT_CFG_FFMT_MASK</a>},</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"></span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">/*! @brief FXOS8700 DRDY and ASLP Detect Mode Register Write List. */</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="a00950.html#abacfa101a1f565df95fd9724c50bbdf8"> 73</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00950.html#abacfa101a1f565df95fd9724c50bbdf8">cFxos8700ConfigDataReady</a>[] = {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">/* Data and ASLP INT Enabled */</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a>, <a class="code" href="a00080.html#a064466e42f6f5da5d6f70521f6abe430">FXOS8700_CTRL_REG4_INT_EN_DRDY_EN</a> | <a class="code" href="a00080.html#a68ba8aa85ba3fe0cb0343fa4c97f584a">FXOS8700_CTRL_REG4_INT_EN_ASLP_EN</a>,</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="a00080.html#a82dedea7c01e02db3c02b93eddac62c6">FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</a> | <a class="code" href="a00080.html#a1189a77a74133a30efc29f3b41a3e19b">FXOS8700_CTRL_REG4_INT_EN_ASLP_MASK</a>},</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">/* Route FFMT to INT2 (Ignore FFMT INT) */</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a>, <a class="code" href="a00080.html#a1b3ec1c425916458d7004f37503ac900">FXOS8700_CTRL_REG5_INT_CFG_FFMT_INT2</a>, <a class="code" href="a00080.html#a260b36d4c1160e4db0122b0ae24860f8">FXOS8700_CTRL_REG5_INT_CFG_FFMT_MASK</a>},</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"></span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <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="a00950.html#a385de261bf1428cde8ac6541237b325a"> 82</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00950.html#a385de261bf1428cde8ac6541237b325a">cFxos8700INTSrc</a>[] = {{.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dad423501ecdc60c836cc4126556886a78">FXOS8700_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> <span class="comment"></span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <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="a00950.html#adcfdf6c79f748f2749d0be901930b91d"> 85</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00950.html#adcfdf6c79f748f2749d0be901930b91d">cFxos8700Output</a>[] = {{.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da99804c25ebaf3d129c182072573623c1">FXOS8700_OUT_X_MSB</a>, .numBytes = <a class="code" href="a00950.html#ac565dfc6599c537d2df6f1923b285f1e">FXOS8700_ACCEL_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> <span class="comment"></span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment">/*! @brief Pedometer Mode Name Strings. */</span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="a00950.html#a81ba4744a5759e7e84e9af73985cb245"> 88</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00950.html#a81ba4744a5759e7e84e9af73985cb245">pActivity</a>[5] = {<span class="stringliteral">"Unknown "</span>, <span class="stringliteral">"Rest "</span>, <span class="stringliteral">"Walking "</span>, <span class="stringliteral">"Jogging "</span>, <span class="stringliteral">"Running "</span>};</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// Global Variables</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="a00950.html#a170bd685cd9e5fcb98a00e8d3d76040b"> 93</a></span> <span class="keyword">volatile</span> <span class="keywordtype">bool</span> <a class="code" href="a00950.html#a170bd685cd9e5fcb98a00e8d3d76040b">gFxos8700EventReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <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="a00950.html#ac8739dded5604790bbe053e9ac11d8ce"> 96</a></span> <a class="code" href="a04059.html">pedometer_config_t</a> <a class="code" href="a00950.html#ac8739dded5604790bbe053e9ac11d8ce">cPedoConfig</a> =</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  .<a class="code" href="a04059.html#a2c49d77dccbc74c7e51171069a0f2709">sleepcount_threshold</a> = 1,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  .bits = {.config = 1},</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  .keynetik =</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  .steplength = 0,</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  .height = 175,</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  .weight = 80,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  .filtersteps = 1,</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  .bits =</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  .filtertime = 2, .male = 1,</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  },</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  .speedperiod = 3,</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  .stepthreshold = 0,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  },</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  .stepcoalesce = 1,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  .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>  .frequency = 50,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> };</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">// Functions</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">//-----------------------------------------------------------------------</span><span class="comment"></span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">/*! -----------------------------------------------------------------------</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <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> <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> <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> <span class="comment"> * @return void There is no return value.</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> * @constraints None</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> * @reeentrant Yes</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment"> * -----------------------------------------------------------------------*/</span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="a00950.html#a4247e8c2ec12bf6eb232b8e72d9b9a2f"> 129</a></span> <span class="keywordtype">void</span> <a class="code" href="a00950.html#a4247e8c2ec12bf6eb232b8e72d9b9a2f">fxos8700_int_callback</a>(<span class="keywordtype">void</span> *pUserData)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> { <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>  <a class="code" href="a00950.html#a170bd685cd9e5fcb98a00e8d3d76040b">gFxos8700EventReady</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"></span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/*! -----------------------------------------------------------------------</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <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> <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> <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> <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> <span class="comment"> * @return void There is no return value.</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> * @constraints None</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> * @reeentrant No</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> * -----------------------------------------------------------------------*/</span></div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="a00950.html#a840291bc02cba5474a4cb46a9b9566fe"> 143</a></span> <span class="keywordtype">int</span> <a class="code" href="a00950.html#a840291bc02cba5474a4cb46a9b9566fe">main</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> {</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <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>  <span class="keywordtype">bool</span> motionDetect;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  uint16_t lastReportedSteps;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  uint8_t intStatus, <a class="code" href="a00428.html#a0155cf01983779a6f386fb8eac40d37c">data</a>[<a class="code" href="a00950.html#ac565dfc6599c537d2df6f1923b285f1e">FXOS8700_ACCEL_DATA_SIZE</a>];</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <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>  <a class="code" href="a02751.html">fxos8700_accelmagdata_t</a> <a class="code" href="a00227.html#ad508addf55fd0c55016ce25fe85bbd3d">rawData</a>;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> fxos8700Driver;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  ARM_DRIVER_I2C *<a class="code" href="a00368.html#a3c22bed16a7c769894081222aa6107d8">I2Cdrv</a> = &<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>  <a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a00281.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a> = &<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"></span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"> /*! Initialize the MCU hardware. */</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="a00959.html#ga2c9fe54b6b84723fbaa590a6f4576966">BOARD_InitPins</a>();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a>();</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="a04109.html#a4c84ccb952cb083367d7040cf9de3db8">BOARD_InitDebugConsole</a>();</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  PRINTF(<span class="stringliteral">"\r\n ISSDK FXOS8700 sensor driver example for Motion Activated Pedometer.\r\n"</span>);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"></span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> /*! Initialize FXOS8700 pin used by FRDM board */</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  pGpioDriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a04337.html#a9b1c36350fe2e017a1a86f45d0fdff48">FXOS8700_INT1</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a>, NULL, &<a class="code" href="a00950.html#a4247e8c2ec12bf6eb232b8e72d9b9a2f">fxos8700_int_callback</a>, NULL);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"></span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <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>  pGpioDriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<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> <span class="comment"></span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"> /*! Initialize the I2C driver. */</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  status = I2Cdrv->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>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  PRINTF(<span class="stringliteral">"\r\n I2C Initialization Failed\r\n"</span>);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  }</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"></span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment"> /*! Set the I2C Power mode. */</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  status = I2Cdrv->PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  PRINTF(<span class="stringliteral">"\r\n I2C Power Mode setting Failed\r\n"</span>);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  }</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"></span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"> /*! Set the I2C bus speed. */</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  status = I2Cdrv->Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  PRINTF(<span class="stringliteral">"\r\n I2C Control Mode setting Failed\r\n"</span>);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment"></span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment"> /*! Initialize FXOS8700 sensor driver. */</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  status = <a class="code" href="a00083.html#a17953ccee62fbd698318197b109b9e9f">FXOS8700_I2C_Initialize</a>(&fxos8700Driver, &<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#a88d604d4e5776dfa8f16848425223cbb">FXOS8700_I2C_ADDR</a>,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="a00080.html#abd3fc525439295db83a2fc98076c7ed7">FXOS8700_WHO_AM_I_PROD_VALUE</a>);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <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>  {</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  PRINTF(<span class="stringliteral">"\r\n Sensor Initialization Failed\r\n"</span>);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"></span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <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>  <a class="code" href="a00083.html#af4efbd044b09aea215f120856f443caf">FXOS8700_I2C_SetIdleTask</a>(&fxos8700Driver, (<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> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="comment">/* Apply FXOS8700 Configuration for Motion Activated Pedometer. */</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  status = <a class="code" href="a00182.html#aaac4c4f34b4dd37d3f202a1dbb4b000b">Sensor_I2C_Write</a>(fxos8700Driver.<a class="code" href="a02747.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &fxos8700Driver.<a class="code" href="a02747.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  fxos8700Driver.<a class="code" href="a02747.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>, cFxos8700CommonConfiguration);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <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>  {</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  PRINTF(<span class="stringliteral">"\r\n Write FXOS8700 Initialization Failed.\r\n"</span>);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"></span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> /*! Initialize the pedometer*/</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="a00926.html#a594d690252fcfc6713fe8374f384fe69">pedometer_init</a>(&pedometer);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  PRINTF(<span class="stringliteral">"\r\n Pedometer successfully Initialized and Ready for measurements."</span>);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <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>  {<span class="comment"></span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment"> /*! Configure the pedometer*/</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="a00926.html#a5ea8580b8a07ce9ece550f8b6fd37ced">pedometer_configure</a>(&pedometer, &cPedoConfig);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="comment">/* Apply FXOS8700 Configuration for Motion Detection. */</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  status = <a class="code" href="a00083.html#adcb4dbaa31a6b4ccd6031ee6cc97bb66">FXOS8700_I2C_Configure</a>(&fxos8700Driver, cFxos8700ConfigMotionDetect);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <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>  {</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  PRINTF(<span class="stringliteral">"\r\n Write FXOS8700 Motion Configuration Failed!\r\n"</span>);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  }</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  motionDetect = <span class="keyword">true</span>;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  pGpioDriver-><a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  PRINTF(<span class="stringliteral">"\r\n\r\n Waiting for Motion | MCU switching to Sleep Mode ...\r\n"</span>);</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <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>  { <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> <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>  <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00950.html#a170bd685cd9e5fcb98a00e8d3d76040b">gFxos8700EventReady</a>)</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  { <span class="comment">/* Loop, if new sample is not available. */</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <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>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  }</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  { <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>  <a class="code" href="a00950.html#a170bd685cd9e5fcb98a00e8d3d76040b">gFxos8700EventReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"></span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"> /*! Read the INT_SRC from the FXOS8700. */</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&fxos8700Driver, cFxos8700INTSrc, &intStatus);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  {</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  PRINTF(<span class="stringliteral">"\r\n Read INT SRC Failed!\r\n"</span>);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  }</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">if</span> (motionDetect)</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">if</span> ((intStatus & <a class="code" href="a00080.html#a3bb929489ef728691daeadafde1b743a">FXOS8700_INT_SOURCE_SRC_FFMT_MASK</a>) == FXOS8700_INT_SOURCE_SRC_FFMT_MASK)</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  {<span class="comment"></span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <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>  PRINTF(<span class="stringliteral">" Motion detected...\r\n"</span>);</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="comment">/* Apply FXOS8700 Configuration for ASLP Detection with DATA. */</span></div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  status = <a class="code" href="a00083.html#adcb4dbaa31a6b4ccd6031ee6cc97bb66">FXOS8700_I2C_Configure</a>(&fxos8700Driver, cFxos8700ConfigDataReady);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <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>  {</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  PRINTF(<span class="stringliteral">"\r\n Write FXOS8700 DRDY Configuration Failed.\r\n"</span>);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  }</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  motionDetect = <span class="keyword">false</span>;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  pGpioDriver-><a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  }</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  {<span class="comment"></span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment"> /*! Read the Output from the FXOS8700. */</span></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&fxos8700Driver, cFxos8700Output, data);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  {</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  PRINTF(<span class="stringliteral">"\r\n ERROR : Read Data Failed!\r\n"</span>);</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  }</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment"></span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <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>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[0] = ((int16_t)data[0] << 8) | data[1];</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[1] = ((int16_t)data[2] << 8) | data[3];</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[2] = ((int16_t)data[4] << 8) | data[5];</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment"></span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment"> /*! Execute the pedometer Algorithm */</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <a class="code" href="a00926.html#a87224a70b303355a416beaca80ed1b2f">pedometer_run</a>(&pedometer, (<a class="code" href="a04055.html">ped_accel_t</a> *)&rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>);</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="comment">/* Display Steps when there is a change */</span></div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">if</span> (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#ace0ff960f4cd3ce9aa8452dc57a97c2e">stepcount</a> != lastReportedSteps)</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  {</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  pGpioDriver-><a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  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>  <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>  {</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  PRINTF(<span class="stringliteral">"\r\n | Steps | Distance | Speed | Calories | Activity |\r\n"</span>);</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  }</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  PRINTF(<span class="stringliteral">"\033[K | %5d | %4dm | %2dkmph | %3d | %s |\r"</span>,</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  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="a00950.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>  }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keywordflow">if</span> ((intStatus & <a class="code" href="a00080.html#ab015fe243d162e88822c604dc4c426ef">FXOS8700_INT_SOURCE_SRC_ASLP_MASK</a>) == FXOS8700_INT_SOURCE_SRC_ASLP_MASK)</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  {</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  }</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  }</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  }</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> }</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="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dad423501ecdc60c836cc4126556886a78"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dad423501ecdc60c836cc4126556886a78">FXOS8700_INT_SOURCE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00030">fxos8700.h:30</a></div></div> 53<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> 54<div class="ttc" id="a00950_html_a81ba4744a5759e7e84e9af73985cb245"><div class="ttname"><a href="a00950.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="a00950_source.html#l00088">pedometer_stepcount_motion_fxos8700.c:88</a></div></div> 55<div class="ttc" id="a00950_html_a170bd685cd9e5fcb98a00e8d3d76040b"><div class="ttname"><a href="a00950.html#a170bd685cd9e5fcb98a00e8d3d76040b">gFxos8700EventReady</a></div><div class="ttdeci">volatile bool gFxos8700EventReady</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00093">pedometer_stepcount_motion_fxos8700.c:93</a></div></div> 56<div class="ttc" id="a00083_html_a17953ccee62fbd698318197b109b9e9f"><div class="ttname"><a href="a00083.html#a17953ccee62fbd698318197b109b9e9f">FXOS8700_I2C_Initialize</a></div><div class="ttdeci">int32_t FXOS8700_I2C_Initialize(fxos8700_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="a00083_source.html#l00222">fxos8700_drv.c:222</a></div></div> 57<div class="ttc" id="a00080_html_a3083726008f66866d39ce47ef2407c11"><div class="ttname"><a href="a00080.html#a3083726008f66866d39ce47ef2407c11">FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00956">fxos8700.h:956</a></div></div> 58<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> 59<div class="ttc" id="a02751_html"><div class="ttname"><a href="a02751.html">fxos8700_accelmagdata_t</a></div><div class="ttdoc">This structure defines the fxos8700 raw data buffer. </div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00053">fxos8700_drv.h:53</a></div></div> 60<div class="ttc" id="a02751_html_a661660001effc417fb684db96e973688"><div class="ttname"><a href="a02751.html#a661660001effc417fb684db96e973688">fxos8700_accelmagdata_t::accel</a></div><div class="ttdeci">int16_t accel[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00056">fxos8700_drv.h:56</a></div></div> 61<div class="ttc" id="a00950_html_ac1de58f19be26d0d484cf2fa338c9eb5"><div class="ttname"><a href="a00950.html#ac1de58f19be26d0d484cf2fa338c9eb5">ASLP_COUNTER</a></div><div class="ttdeci">#define ASLP_COUNTER</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00040">pedometer_stepcount_motion_fxos8700.c:40</a></div></div> 62<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> 63<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> 64<div class="ttc" id="a00080_html_a35219e0a108fb9ccf4e7921bd3605cc6"><div class="ttname"><a href="a00080.html#a35219e0a108fb9ccf4e7921bd3605cc6">FXOS8700_CTRL_REG5_INT_CFG_DRDY_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_DRDY_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01784">fxos8700.h:1784</a></div></div> 65<div class="ttc" id="a00080_html_a064466e42f6f5da5d6f70521f6abe430"><div class="ttname"><a href="a00080.html#a064466e42f6f5da5d6f70521f6abe430">FXOS8700_CTRL_REG4_INT_EN_DRDY_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_DRDY_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01755">fxos8700.h:1755</a></div></div> 66<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> 67<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00059">fxos8700.h:59</a></div></div> 68<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> 69<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> 70<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> 71<div class="ttc" id="a00080_html_a28456d1cd33970595c08601b8e743fe5"><div class="ttname"><a href="a00080.html#a28456d1cd33970595c08601b8e743fe5">FXOS8700_A_FFMT_CFG_XEFE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_XEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00929">fxos8700.h:929</a></div></div> 72<div class="ttc" id="a00080_html_a5110749037b19c1840624ae4ec79c6fb"><div class="ttname"><a href="a00080.html#a5110749037b19c1840624ae4ec79c6fb">FXOS8700_CTRL_REG1_ASLP_RATE_1P56_HZ</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG1_ASLP_RATE_1P56_HZ</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01517">fxos8700.h:1517</a></div></div> 73<div class="ttc" id="a00080_html_a1189a77a74133a30efc29f3b41a3e19b"><div class="ttname"><a href="a00080.html#a1189a77a74133a30efc29f3b41a3e19b">FXOS8700_CTRL_REG4_INT_EN_ASLP_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_ASLP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01732">fxos8700.h:1732</a></div></div> 74<div class="ttc" id="a00080_html_ae1c92883b4f5b0dd138264cf598d32ff"><div class="ttname"><a href="a00080.html#ae1c92883b4f5b0dd138264cf598d32ff">FXOS8700_CTRL_REG2_MODS_LOW_POWER</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG2_MODS_LOW_POWER</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01600">fxos8700.h:1600</a></div></div> 75<div class="ttc" id="a02747_html_af6d4d51d4fb48cfb392eeb03ac26abed"><div class="ttname"><a href="a02747.html#af6d4d51d4fb48cfb392eeb03ac26abed">fxos8700_i2c_sensorhandle_t::pCommDrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * pCommDrv</div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00047">fxos8700_drv.h:47</a></div></div> 76<div class="ttc" id="a00080_html_a260b36d4c1160e4db0122b0ae24860f8"><div class="ttname"><a href="a00080.html#a260b36d4c1160e4db0122b0ae24860f8">FXOS8700_CTRL_REG5_INT_CFG_FFMT_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_FFMT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01790">fxos8700.h:1790</a></div></div> 77<div class="ttc" id="a00080_html_acfa8c0e771b144bc16ab6ca8908a527a"><div class="ttname"><a href="a00080.html#acfa8c0e771b144bc16ab6ca8908a527a">FXOS8700_CTRL_REG2_SMODS_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG2_SMODS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01574">fxos8700.h:1574</a></div></div> 78<div class="ttc" id="a00950_html_ac8739dded5604790bbe053e9ac11d8ce"><div class="ttname"><a href="a00950.html#ac8739dded5604790bbe053e9ac11d8ce">cPedoConfig</a></div><div class="ttdeci">pedometer_config_t cPedoConfig</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00096">pedometer_stepcount_motion_fxos8700.c:96</a></div></div> 79<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> 80<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00060">fxos8700.h:60</a></div></div> 81<div class="ttc" id="a00080_html_acc5edd867b8c0807c000aacfad4a16af"><div class="ttname"><a href="a00080.html#acc5edd867b8c0807c000aacfad4a16af">FXOS8700_CTRL_REG5_INT_CFG_FFMT_INT1</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_FFMT_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01823">fxos8700.h:1823</a></div></div> 82<div class="ttc" id="a00080_html_abd3fc525439295db83a2fc98076c7ed7"><div class="ttname"><a href="a00080.html#abd3fc525439295db83a2fc98076c7ed7">FXOS8700_WHO_AM_I_PROD_VALUE</a></div><div class="ttdeci">#define FXOS8700_WHO_AM_I_PROD_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00146">fxos8700.h:146</a></div></div> 83<div class="ttc" id="a00080_html_a5ba8c0c0813375f895bc2312d44f30b7"><div class="ttname"><a href="a00080.html#a5ba8c0c0813375f895bc2312d44f30b7">FXOS8700_CTRL_REG1_DR_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG1_DR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01504">fxos8700.h:1504</a></div></div> 84<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> 85<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> 86<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> 87<div class="ttc" id="a04337_html_a9b1c36350fe2e017a1a86f45d0fdff48"><div class="ttname"><a href="a04337.html#a9b1c36350fe2e017a1a86f45d0fdff48">FXOS8700_INT1</a></div><div class="ttdeci">#define FXOS8700_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a04337_source.html#l00029">frdm_fxs_mult2b_shield.h:29</a></div></div> 88<div class="ttc" id="a00950_html_ac565dfc6599c537d2df6f1923b285f1e"><div class="ttname"><a href="a00950.html#ac565dfc6599c537d2df6f1923b285f1e">FXOS8700_ACCEL_DATA_SIZE</a></div><div class="ttdeci">#define FXOS8700_ACCEL_DATA_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00041">pedometer_stepcount_motion_fxos8700.c:41</a></div></div> 89<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> 90<div class="ttc" id="a00080_html_ab428e85d93ab5d14bd2fac89d95ae4a0"><div class="ttname"><a href="a00080.html#ab428e85d93ab5d14bd2fac89d95ae4a0">FXOS8700_CTRL_REG4_INT_EN_FFMT_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_FFMT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01717">fxos8700.h:1717</a></div></div> 91<div class="ttc" id="a00080_html_a3bb929489ef728691daeadafde1b743a"><div class="ttname"><a href="a00080.html#a3bb929489ef728691daeadafde1b743a">FXOS8700_INT_SOURCE_SRC_FFMT_MASK</a></div><div class="ttdeci">#define FXOS8700_INT_SOURCE_SRC_FFMT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00594">fxos8700.h:594</a></div></div> 92<div class="ttc" id="a00950_html_abacfa101a1f565df95fd9724c50bbdf8"><div class="ttname"><a href="a00950.html#abacfa101a1f565df95fd9724c50bbdf8">cFxos8700ConfigDataReady</a></div><div class="ttdeci">const registerwritelist_t cFxos8700ConfigDataReady[]</div><div class="ttdoc">FXOS8700 DRDY and ASLP Detect Mode Register Write List. </div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00073">pedometer_stepcount_motion_fxos8700.c:73</a></div></div> 93<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> 94<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> 95<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> 96<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> 97<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> 98<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> 99<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> 100<div class="ttc" id="a00080_html_a4cbf59a396799828f6790f8ce1b7b6b0"><div class="ttname"><a href="a00080.html#a4cbf59a396799828f6790f8ce1b7b6b0">FXOS8700_A_FFMT_CFG_OAE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_OAE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00938">fxos8700.h:938</a></div></div> 101<div class="ttc" id="a00080_html_afb4115590ea0c3fd56c2d07364b49dea"><div class="ttname"><a href="a00080.html#afb4115590ea0c3fd56c2d07364b49dea">FXOS8700_CTRL_REG3_PP_OD_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_PP_OD_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01629">fxos8700.h:1629</a></div></div> 102<div class="ttc" id="a02747_html"><div class="ttname"><a href="a02747.html">fxos8700_i2c_sensorhandle_t</a></div><div class="ttdoc">This defines the sensor specific information for I2C. </div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00044">fxos8700_drv.h:44</a></div></div> 103<div class="ttc" id="a00083_html_adcb4dbaa31a6b4ccd6031ee6cc97bb66"><div class="ttname"><a href="a00083.html#adcb4dbaa31a6b4ccd6031ee6cc97bb66">FXOS8700_I2C_Configure</a></div><div class="ttdeci">int32_t FXOS8700_I2C_Configure(fxos8700_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="a00083_source.html#l00260">fxos8700_drv.c:260</a></div></div> 104<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> 105<div class="ttc" id="a00080_html_a1afa738251326817d2d76b15a2381c46"><div class="ttname"><a href="a00080.html#a1afa738251326817d2d76b15a2381c46">FXOS8700_A_FFMT_CFG_OAE_MOTION</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_OAE_MOTION</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00951">fxos8700.h:951</a></div></div> 106<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> 107<div class="ttc" id="a00083_html_a0528c7633050aa23e89a79106d804cc6"><div class="ttname"><a href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a></div><div class="ttdeci">int32_t FXOS8700_I2C_ReadData(fxos8700_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="a00083_source.html#l00305">fxos8700_drv.c:305</a></div></div> 108<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> 109<div class="ttc" id="a00080_html_a82dedea7c01e02db3c02b93eddac62c6"><div class="ttname"><a href="a00080.html#a82dedea7c01e02db3c02b93eddac62c6">FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01711">fxos8700.h:1711</a></div></div> 110<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> 111<div class="ttc" id="a00080_html_a812778488bfd3f657aa3e60936a3f172"><div class="ttname"><a href="a00080.html#a812778488bfd3f657aa3e60936a3f172">FXOS8700_CTRL_REG5_INT_CFG_DRDY_INT1</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_DRDY_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01827">fxos8700.h:1827</a></div></div> 112<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> 113<div class="ttc" id="a00950_html_a840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="a00950.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="a00950_source.html#l00143">pedometer_stepcount_motion_fxos8700.c:143</a></div></div> 114<div class="ttc" id="a00080_html_a928d47ced28216ae3cfc313a34f704c6"><div class="ttname"><a href="a00080.html#a928d47ced28216ae3cfc313a34f704c6">FXOS8700_CTRL_REG1_DR_SINGLE_50_HZ</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG1_DR_SINGLE_50_HZ</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01522">fxos8700.h:1522</a></div></div> 115<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> 116<div class="ttc" id="a00080_html_a0e4711bb3723261f1d41b2b9ac100796"><div class="ttname"><a href="a00080.html#a0e4711bb3723261f1d41b2b9ac100796">FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00953">fxos8700.h:953</a></div></div> 117<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> 118<div class="ttc" id="a00950_html_a228ad907ff6d7b37eb624ead7c8cd362"><div class="ttname"><a href="a00950.html#a228ad907ff6d7b37eb624ead7c8cd362">MT_A_FFMT_THS</a></div><div class="ttdeci">#define MT_A_FFMT_THS</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00039">pedometer_stepcount_motion_fxos8700.c:39</a></div></div> 119<div class="ttc" id="a00950_html_a385de261bf1428cde8ac6541237b325a"><div class="ttname"><a href="a00950.html#a385de261bf1428cde8ac6541237b325a">cFxos8700INTSrc</a></div><div class="ttdeci">const registerreadlist_t cFxos8700INTSrc[]</div><div class="ttdoc">Address of INT Source Register. </div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00082">pedometer_stepcount_motion_fxos8700.c:82</a></div></div> 120<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da47d310708d19fb1bac84942ead51427d"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da47d310708d19fb1bac84942ead51427d">FXOS8700_A_FFMT_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00039">fxos8700.h:39</a></div></div> 121<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> 122<div class="ttc" id="a00080_html_a1b3ec1c425916458d7004f37503ac900"><div class="ttname"><a href="a00080.html#a1b3ec1c425916458d7004f37503ac900">FXOS8700_CTRL_REG5_INT_CFG_FFMT_INT2</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_FFMT_INT2</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01822">fxos8700.h:1822</a></div></div> 123<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> 124<div class="ttc" id="a00080_html_ab25fe9720e6b54d9aab05397ec4ff880"><div class="ttname"><a href="a00080.html#ab25fe9720e6b54d9aab05397ec4ff880">FXOS8700_CTRL_REG5_INT_CFG_ASLP_INT1</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_ASLP_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01813">fxos8700.h:1813</a></div></div> 125<div class="ttc" id="a02747_html_a67af74c3fc959654c6dc8bcff3a2ea80"><div class="ttname"><a href="a02747.html#a67af74c3fc959654c6dc8bcff3a2ea80">fxos8700_i2c_sensorhandle_t::slaveAddress</a></div><div class="ttdeci">uint16_t slaveAddress</div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00049">fxos8700_drv.h:49</a></div></div> 126<div class="ttc" id="a00080_html_a172f7d6a4bf494102fbe0b439d7777eb"><div class="ttname"><a href="a00080.html#a172f7d6a4bf494102fbe0b439d7777eb">FXOS8700_CTRL_REG2_SLPE_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG2_SLPE_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01595">fxos8700.h:1595</a></div></div> 127<div class="ttc" id="a00080_html_a789eda6a40a31f6f1b57537279c745ed"><div class="ttname"><a href="a00080.html#a789eda6a40a31f6f1b57537279c745ed">FXOS8700_CTRL_REG4_INT_EN_FFMT_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_FFMT_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01751">fxos8700.h:1751</a></div></div> 128<div class="ttc" id="a00080_html_ab015fe243d162e88822c604dc4c426ef"><div class="ttname"><a href="a00080.html#ab015fe243d162e88822c604dc4c426ef">FXOS8700_INT_SOURCE_SRC_ASLP_MASK</a></div><div class="ttdeci">#define FXOS8700_INT_SOURCE_SRC_ASLP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00609">fxos8700.h:609</a></div></div> 129<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> 130<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> 131<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> 132<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> 133<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> 134<div class="ttc" id="a00080_html_a68ba8aa85ba3fe0cb0343fa4c97f584a"><div class="ttname"><a href="a00080.html#a68ba8aa85ba3fe0cb0343fa4c97f584a">FXOS8700_CTRL_REG4_INT_EN_ASLP_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_ASLP_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01740">fxos8700.h:1740</a></div></div> 135<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dab871a4ff4bb96c042507d1142bf1bb6d"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dab871a4ff4bb96c042507d1142bf1bb6d">FXOS8700_CTRL_REG1</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00056">fxos8700.h:56</a></div></div> 136<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> 137<div class="ttc" id="a00950_html_a98288ae64a9730a61b936b52bf82b45d"><div class="ttname"><a href="a00950.html#a98288ae64a9730a61b936b52bf82b45d">cFxos8700ConfigMotionDetect</a></div><div class="ttdeci">const registerwritelist_t cFxos8700ConfigMotionDetect[]</div><div class="ttdoc">FXOS8700 Motion Detect Mode Register Write List. </div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00064">pedometer_stepcount_motion_fxos8700.c:64</a></div></div> 138<div class="ttc" id="a00080_html_a9dba657257faf331f0991c8d2b8a5de7"><div class="ttname"><a href="a00080.html#a9dba657257faf331f0991c8d2b8a5de7">FXOS8700_CTRL_REG1_ASLP_RATE_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG1_ASLP_RATE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01507">fxos8700.h:1507</a></div></div> 139<div class="ttc" id="a00950_html_adcfdf6c79f748f2749d0be901930b91d"><div class="ttname"><a href="a00950.html#adcfdf6c79f748f2749d0be901930b91d">cFxos8700Output</a></div><div class="ttdeci">const registerreadlist_t cFxos8700Output[]</div><div class="ttdoc">Address of Data Output Registers. </div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00085">pedometer_stepcount_motion_fxos8700.c:85</a></div></div> 140<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dabbf450dd8289876d3736d975ae12e782"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabbf450dd8289876d3736d975ae12e782">FXOS8700_CTRL_REG3</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00058">fxos8700.h:58</a></div></div> 141<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da99804c25ebaf3d129c182072573623c1"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da99804c25ebaf3d129c182072573623c1">FXOS8700_OUT_X_MSB</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00021">fxos8700.h:21</a></div></div> 142<div class="ttc" id="a00086_html"><div class="ttname"><a href="a00086.html">fxos8700_drv.h</a></div><div class="ttdoc">The fxos8700_drv.h file describes the fxos8700 driver interface and structures. </div></div> 143<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dabe02277bed750f9b3062eddcb056d116"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabe02277bed750f9b3062eddcb056d116">FXOS8700_A_FFMT_THS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00041">fxos8700.h:41</a></div></div> 144<div class="ttc" id="a00950_html_a4247e8c2ec12bf6eb232b8e72d9b9a2f"><div class="ttname"><a href="a00950.html#a4247e8c2ec12bf6eb232b8e72d9b9a2f">fxos8700_int_callback</a></div><div class="ttdeci">void fxos8700_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="a00950_source.html#l00129">pedometer_stepcount_motion_fxos8700.c:129</a></div></div> 145<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> 146<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> 147<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> 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="a00080_html_a1d1ece383caf796ed4df208b9be65bcc"><div class="ttname"><a href="a00080.html#a1d1ece383caf796ed4df208b9be65bcc">FXOS8700_CTRL_REG4_INT_EN_DRDY_DIS</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_DRDY_DIS</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01754">fxos8700.h:1754</a></div></div> 151<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> 152<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> 153<div class="ttc" id="a00080_html_a576ca5e37ef1f652843df763c3d969aa"><div class="ttname"><a href="a00080.html#a576ca5e37ef1f652843df763c3d969aa">FXOS8700_CTRL_REG4_INT_EN_ASLP_DIS</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_ASLP_DIS</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01739">fxos8700.h:1739</a></div></div> 154<div class="ttc" id="a00080_html_a6cd07ab2792e73408f704ae73d3ee077"><div class="ttname"><a href="a00080.html#a6cd07ab2792e73408f704ae73d3ee077">FXOS8700_CTRL_REG2_SLPE_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG2_SLPE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01571">fxos8700.h:1571</a></div></div> 155<div class="ttc" id="a00080_html_ab990c279c21f891fbc0222fbbf5e366c"><div class="ttname"><a href="a00080.html#ab990c279c21f891fbc0222fbbf5e366c">FXOS8700_CTRL_REG3_PP_OD_PUSH_PULL</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_PP_OD_PUSH_PULL</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01681">fxos8700.h:1681</a></div></div> 156<div class="ttc" id="a00083_html_af4efbd044b09aea215f120856f443caf"><div class="ttname"><a href="a00083.html#af4efbd044b09aea215f120856f443caf">FXOS8700_I2C_SetIdleTask</a></div><div class="ttdeci">void FXOS8700_I2C_SetIdleTask(fxos8700_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="a00083_source.html#l00252">fxos8700_drv.c:252</a></div></div> 157<div class="ttc" id="a00080_html_a8a33dd5db08b3953570b29dad844e696"><div class="ttname"><a href="a00080.html#a8a33dd5db08b3953570b29dad844e696">FXOS8700_CTRL_REG5_INT_CFG_ASLP_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_ASLP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01805">fxos8700.h:1805</a></div></div> 158<div class="ttc" id="a00080_html_a65e7ea06e97099fdfafcaeb88b6924dd"><div class="ttname"><a href="a00080.html#a65e7ea06e97099fdfafcaeb88b6924dd">FXOS8700_CTRL_REG3_IPOL_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_IPOL_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01632">fxos8700.h:1632</a></div></div> 159<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00057">fxos8700.h:57</a></div></div> 160<div class="ttc" id="a00080_html_a359e9025b66d1dc8be94098285e6cc4f"><div class="ttname"><a href="a00080.html#a359e9025b66d1dc8be94098285e6cc4f">FXOS8700_A_FFMT_THS_THS_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_THS_THS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01033">fxos8700.h:1033</a></div></div> 161<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> 162<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> 163<div class="ttc" id="a00545_html_a88d604d4e5776dfa8f16848425223cbb"><div class="ttname"><a href="a00545.html#a88d604d4e5776dfa8f16848425223cbb">FXOS8700_I2C_ADDR</a></div><div class="ttdeci">#define FXOS8700_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00025">auto_detection_shield.h:25</a></div></div> 164<div class="ttc" id="a00080_html_a417fd539d73ae437106b69d7a45ae49a"><div class="ttname"><a href="a00080.html#a417fd539d73ae437106b69d7a45ae49a">FXOS8700_CTRL_REG3_WAKE_FFMT_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_WAKE_FFMT_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01672">fxos8700.h:1672</a></div></div> 165<div class="ttc" id="a00080_html_a11dc5e0d310818490addf314f7f35dfc"><div class="ttname"><a href="a00080.html#a11dc5e0d310818490addf314f7f35dfc">FXOS8700_A_FFMT_CFG_YEFE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_YEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00932">fxos8700.h:932</a></div></div> 166<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> 167<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> 168<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> 169<div class="ttc" id="a00950_html_ac9cbbd14e798ebcf7a433aa5021e2b2d"><div class="ttname"><a href="a00950.html#ac9cbbd14e798ebcf7a433aa5021e2b2d">cFxos8700CommonConfiguration</a></div><div class="ttdeci">const registerwritelist_t cFxos8700CommonConfiguration[]</div><div class="ttdoc">FXOS8700 Motion based Pedometer Register Write List. </div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00047">pedometer_stepcount_motion_fxos8700.c:47</a></div></div> 170<div class="ttc" id="a00080_html_ab1b964c4fb638fb5eba0217e9a422251"><div class="ttname"><a href="a00080.html#ab1b964c4fb638fb5eba0217e9a422251">FXOS8700_CTRL_REG3_WAKE_FFMT_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_WAKE_FFMT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01638">fxos8700.h:1638</a></div></div> 171<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dac042ebfac33ad9921645ec1f99a9b47e"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dac042ebfac33ad9921645ec1f99a9b47e">FXOS8700_ASLP_COUNT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00055">fxos8700.h:55</a></div></div> 172<div class="ttc" id="a00080_html_a2e9348f883ca462834be1da82a5f0297"><div class="ttname"><a href="a00080.html#a2e9348f883ca462834be1da82a5f0297">FXOS8700_A_FFMT_CFG_ZEFE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_ZEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00935">fxos8700.h:935</a></div></div> 173<div class="ttc" id="a02747_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a02747.html#ae75b47fd9e098d6bd3b28f6be6586998">fxos8700_i2c_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00046">fxos8700_drv.h:46</a></div></div> 174<div class="ttc" id="a00080_html_aa143b37000a4849deacb75476cd62c65"><div class="ttname"><a href="a00080.html#aa143b37000a4849deacb75476cd62c65">FXOS8700_CTRL_REG3_IPOL_ACTIVE_HIGH</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_IPOL_ACTIVE_HIGH</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01680">fxos8700.h:1680</a></div></div> 175<div class="ttc" id="a00080_html_ac0b2a2750f3ae87c19b54e21a347cd03"><div class="ttname"><a href="a00080.html#ac0b2a2750f3ae87c19b54e21a347cd03">FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00959">fxos8700.h:959</a></div></div> 176</div><!-- fragment --></div><!-- contents --> 177 178<hr class="footer"/><address class="footer"><small> 179© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 180</small></address> 181</body> 182</html> 183