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/include/pedometer.h File Reference</title>
9<link href="tabs.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="dynsections.js"></script>
12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" />
13</head>
14<body>
15<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16<div id="titlearea">
17<table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr style="height: 56px;">
20  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
21  <td id="projectalign" style="padding-left: 0.5em;">
22   <div id="projectname">ISSDK
23   &#160;<span id="projectnumber">1.8</span>
24   </div>
25   <div id="projectbrief">IoT Sensing Software Development Kit</div>
26  </td>
27 </tr>
28 </tbody>
29</table>
30</div>
31<!-- end header part -->
32<!-- Generated by Doxygen 1.8.13 -->
33<script type="text/javascript" src="menudata.js"></script>
34<script type="text/javascript" src="menu.js"></script>
35<script type="text/javascript">
36$(function() {
37  initMenu('',false,false,'search.php','Search');
38});
39</script>
40<div id="main-nav"></div>
41<div id="nav-path" class="navpath">
42  <ul>
43<li class="navelem"><a class="el" href="dir_c0ce462e37efe0a8d60c01d75f78f8a0.html">algorithms</a></li><li class="navelem"><a class="el" href="dir_fee404f6f831fcfa321ee67f90b1e1c1.html">pedometer</a></li><li class="navelem"><a class="el" href="dir_0ad8eb24ff6e81580c7f28d977c24fc7.html">include</a></li>  </ul>
44</div>
45</div><!-- top -->
46<div class="header">
47  <div class="summary">
48<a href="#nested-classes">Data Structures</a> &#124;
49<a href="#define-members">Macros</a> &#124;
50<a href="#typedef-members">Typedefs</a> &#124;
51<a href="#func-members">Functions</a>  </div>
52  <div class="headertitle">
53<div class="title">pedometer.h File Reference</div>  </div>
54</div><!--header-->
55<div class="contents">
56
57<p>The <a class="el" href="a00956.html" title="The pedometer.h file contains the interface and structure definitions for pedometer application...">pedometer.h</a> file contains the interface and structure definitions for pedometer application.
58<a href="#details">More...</a></p>
59<div class="textblock"><code>#include &lt;stddef.h&gt;</code><br />
60<code>#include &lt;stdint.h&gt;</code><br />
61<code>#include &lt;stdbool.h&gt;</code><br />
62<code>#include &quot;KeynetikPedometer.h&quot;</code><br />
63</div><div class="textblock"><div class="dynheader">
64Include dependency graph for pedometer.h:</div>
65<div class="dyncontent">
66<div class="center"><img src="a00957.png" border="0" usemap="#algorithms_2pedometer_2include_2pedometer_8h" alt=""/></div>
67</div>
68</div><div class="textblock"><div class="dynheader">
69This graph shows which files directly or indirectly include this file:</div>
70<div class="dyncontent">
71<div class="center"><img src="a00958.png" border="0" usemap="#algorithms_2pedometer_2include_2pedometer_8hdep" alt=""/></div>
72<map name="algorithms_2pedometer_2include_2pedometer_8hdep" id="algorithms_2pedometer_2include_2pedometer_8hdep">
73<area shape="rect" id="node2" href="a00926.html" title="The pedometer.c file contains the interface definitions for pedometer application. " alt="" coords="5,102,152,143"/>
74<area shape="rect" id="node3" href="a00929.html" title="The pedometer_stepcount_fxls8962.c file implements the ISSDK FXLS896XAF sensor driver example demonst..." alt="" coords="176,95,387,151"/>
75<area shape="rect" id="node4" href="a00932.html" title="The pedometer_stepcount_fxls896xaf.c file implements the ISSDK FXLS896XAF sensor driver example demon..." alt="" coords="411,95,621,151"/>
76<area shape="rect" id="node5" href="a00935.html" title="The pedometer_stepcount_fxls8974cf.c file implements the ISSDK FXLS8974CF sensor driver example demon..." alt="" coords="645,95,856,151"/>
77<area shape="rect" id="node6" href="a00938.html" title="The pedometer_stepcount_fxos8700.c file implements the ISSDK prdometer example using FXOS8700 sensor ..." alt="" coords="880,95,1091,151"/>
78<area shape="rect" id="node7" href="a00941.html" title="The pedometer_stepcount_mma8451.c file implements the ISSDK prdometer example using MMA8451 sensor as..." alt="" coords="1115,95,1325,151"/>
79<area shape="rect" id="node8" href="a00944.html" title="The pedometer_stepcount_mma8652.c file implements the ISSDK prdometer example using MMA8652 sensor as..." alt="" coords="1349,95,1560,151"/>
80<area shape="rect" id="node9" href="a00947.html" title="algorithms/pedometer\l/examples/pedometer_stepcount\l_motion_fxls8962.c" alt="" coords="1584,95,1795,151"/>
81<area shape="rect" id="node10" href="a00950.html" title="algorithms/pedometer\l/examples/pedometer_stepcount\l_motion_fxos8700.c" alt="" coords="1819,95,2029,151"/>
82<area shape="rect" id="node11" href="a00953.html" title="algorithms/pedometer\l/examples/pedometer_stepcount\l_motion_mma8652.c" alt="" coords="2053,95,2264,151"/>
83</map>
84</div>
85</div>
86<p><a href="a00956_source.html">Go to the source code of this file.</a></p>
87<table class="memberdecls">
88<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
89Data Structures</h2></td></tr>
90<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04055.html">ped_accel_t</a></td></tr>
91<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This defines the acceleration input data for the pedometer.  <a href="a04055.html#details">More...</a><br /></td></tr>
92<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
93<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04059.html">pedometer_config_t</a></td></tr>
94<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This defines the configuration structure of the pedometer.  <a href="a04059.html#details">More...</a><br /></td></tr>
95<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
96<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04067.html">pedometer_t</a></td></tr>
97<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This defines the pedometer instance.  <a href="a04067.html#details">More...</a><br /></td></tr>
98<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
99<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04071.html">pedometer_t::pedometer_status_tag</a></td></tr>
100<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
101<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a04083.html">pedometer_t::pedometer_private_tag</a></td></tr>
102<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
103</table><table class="memberdecls">
104<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
105Macros</h2></td></tr>
106<tr class="memitem:a50d24b234d9d75077968d54a23baac13"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a50d24b234d9d75077968d54a23baac13">PEDO_ONEG_8G</a>&#160;&#160;&#160;4096      /* One <a class="el" href="a00920.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a> value for 8G mode.*/</td></tr>
107<tr class="separator:a50d24b234d9d75077968d54a23baac13"><td class="memSeparator" colspan="2">&#160;</td></tr>
108<tr class="memitem:ac458a17d63e2edfb42ce8d057199b006"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#ac458a17d63e2edfb42ce8d057199b006">PEDO_ONEG_4G</a>&#160;&#160;&#160;8192      /* One <a class="el" href="a00920.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a> value for 4G mode.*/</td></tr>
109<tr class="separator:ac458a17d63e2edfb42ce8d057199b006"><td class="memSeparator" colspan="2">&#160;</td></tr>
110<tr class="memitem:a17d20b7d617372405447c7cbd580017b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a17d20b7d617372405447c7cbd580017b">PEDO_ONEG_2G</a>&#160;&#160;&#160;16384     /* One <a class="el" href="a00920.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a> value for 2G mode.*/</td></tr>
111<tr class="separator:a17d20b7d617372405447c7cbd580017b"><td class="memSeparator" colspan="2">&#160;</td></tr>
112<tr class="memitem:a3cc9f28cb35404b33588dde34f3ff99f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a3cc9f28cb35404b33588dde34f3ff99f">PEDO_FREQHZ_DEFAULT</a>&#160;&#160;&#160;50 /* Default frequency*/</td></tr>
113<tr class="separator:a3cc9f28cb35404b33588dde34f3ff99f"><td class="memSeparator" colspan="2">&#160;</td></tr>
114<tr class="memitem:a7aa4476f16cc506cd6353a5f367dbe43"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a7aa4476f16cc506cd6353a5f367dbe43">PEDO_STEP_THRESHOLD_DEFAULT</a>&#160;&#160;&#160;130</td></tr>
115<tr class="separator:a7aa4476f16cc506cd6353a5f367dbe43"><td class="memSeparator" colspan="2">&#160;</td></tr>
116<tr class="memitem:a9b92edaeb7dec66a37b4c4689a8c1d42"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a9b92edaeb7dec66a37b4c4689a8c1d42">PEDO_SPEED_PERIOD_DEFAULT</a>&#160;&#160;&#160;5</td></tr>
117<tr class="separator:a9b92edaeb7dec66a37b4c4689a8c1d42"><td class="memSeparator" colspan="2">&#160;</td></tr>
118<tr class="memitem:acc76895a3812c086ea1cc0e665075103"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#acc76895a3812c086ea1cc0e665075103">PEDO_FILTER_TIME_DEFAULT</a>&#160;&#160;&#160;3</td></tr>
119<tr class="separator:acc76895a3812c086ea1cc0e665075103"><td class="memSeparator" colspan="2">&#160;</td></tr>
120<tr class="memitem:ab257f08978fd8335aad1859c1c9905e3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#ab257f08978fd8335aad1859c1c9905e3">PEDO_FILTER_STEPS_DEFAULT</a>&#160;&#160;&#160;4</td></tr>
121<tr class="separator:ab257f08978fd8335aad1859c1c9905e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
122</table><table class="memberdecls">
123<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
124Typedefs</h2></td></tr>
125<tr class="memitem:a0595338a17265357f0d301dba63e3fd3"><td class="memItemLeft" align="right" valign="top">typedef KeynetikActivityLevel&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a0595338a17265357f0d301dba63e3fd3">activitylevel_t</a></td></tr>
126<tr class="separator:a0595338a17265357f0d301dba63e3fd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
127<tr class="memitem:a00fabbe7008a793b4929533264562c79"><td class="memItemLeft" align="right" valign="top">typedef uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a00fabbe7008a793b4929533264562c79">debounce_count_t</a></td></tr>
128<tr class="separator:a00fabbe7008a793b4929533264562c79"><td class="memSeparator" colspan="2">&#160;</td></tr>
129</table><table class="memberdecls">
130<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
131Functions</h2></td></tr>
132<tr class="memitem:a594d690252fcfc6713fe8374f384fe69"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a594d690252fcfc6713fe8374f384fe69">pedometer_init</a> (<a class="el" href="a04067.html">pedometer_t</a> *pPedometer)</td></tr>
133<tr class="memdesc:a594d690252fcfc6713fe8374f384fe69"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface function initialize the pedometer.  <a href="#a594d690252fcfc6713fe8374f384fe69">More...</a><br /></td></tr>
134<tr class="separator:a594d690252fcfc6713fe8374f384fe69"><td class="memSeparator" colspan="2">&#160;</td></tr>
135<tr class="memitem:a5ea8580b8a07ce9ece550f8b6fd37ced"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a5ea8580b8a07ce9ece550f8b6fd37ced">pedometer_configure</a> (<a class="el" href="a04067.html">pedometer_t</a> *pPedometer, const <a class="el" href="a04059.html">pedometer_config_t</a> *pConfig)</td></tr>
136<tr class="memdesc:a5ea8580b8a07ce9ece550f8b6fd37ced"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface function to configure the pedometer.  <a href="#a5ea8580b8a07ce9ece550f8b6fd37ced">More...</a><br /></td></tr>
137<tr class="separator:a5ea8580b8a07ce9ece550f8b6fd37ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
138<tr class="memitem:a87224a70b303355a416beaca80ed1b2f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00956.html#a87224a70b303355a416beaca80ed1b2f">pedometer_run</a> (<a class="el" href="a04067.html">pedometer_t</a> *pPedometer, <a class="el" href="a04055.html">ped_accel_t</a> *pData)</td></tr>
139<tr class="memdesc:a87224a70b303355a416beaca80ed1b2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface function excutes the pedometer algorithm.  <a href="#a87224a70b303355a416beaca80ed1b2f">More...</a><br /></td></tr>
140<tr class="separator:a87224a70b303355a416beaca80ed1b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
141</table>
142<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
143<div class="textblock"><p>The <a class="el" href="a00956.html" title="The pedometer.h file contains the interface and structure definitions for pedometer application...">pedometer.h</a> file contains the interface and structure definitions for pedometer application. </p>
144
145<p class="definition">Definition in file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
146</div><h2 class="groupheader">Macro Definition Documentation</h2>
147<a id="ab257f08978fd8335aad1859c1c9905e3"></a>
148<h2 class="memtitle"><span class="permalink"><a href="#ab257f08978fd8335aad1859c1c9905e3">&#9670;&nbsp;</a></span>PEDO_FILTER_STEPS_DEFAULT</h2>
149
150<div class="memitem">
151<div class="memproto">
152      <table class="memname">
153        <tr>
154          <td class="memname">#define PEDO_FILTER_STEPS_DEFAULT&#160;&#160;&#160;4</td>
155        </tr>
156      </table>
157</div><div class="memdoc">
158
159<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00035">35</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
160
161</div>
162</div>
163<a id="acc76895a3812c086ea1cc0e665075103"></a>
164<h2 class="memtitle"><span class="permalink"><a href="#acc76895a3812c086ea1cc0e665075103">&#9670;&nbsp;</a></span>PEDO_FILTER_TIME_DEFAULT</h2>
165
166<div class="memitem">
167<div class="memproto">
168      <table class="memname">
169        <tr>
170          <td class="memname">#define PEDO_FILTER_TIME_DEFAULT&#160;&#160;&#160;3</td>
171        </tr>
172      </table>
173</div><div class="memdoc">
174
175<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00034">34</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
176
177</div>
178</div>
179<a id="a3cc9f28cb35404b33588dde34f3ff99f"></a>
180<h2 class="memtitle"><span class="permalink"><a href="#a3cc9f28cb35404b33588dde34f3ff99f">&#9670;&nbsp;</a></span>PEDO_FREQHZ_DEFAULT</h2>
181
182<div class="memitem">
183<div class="memproto">
184      <table class="memname">
185        <tr>
186          <td class="memname">#define PEDO_FREQHZ_DEFAULT&#160;&#160;&#160;50 /* Default frequency*/</td>
187        </tr>
188      </table>
189</div><div class="memdoc">
190
191<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00031">31</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
192
193</div>
194</div>
195<a id="a17d20b7d617372405447c7cbd580017b"></a>
196<h2 class="memtitle"><span class="permalink"><a href="#a17d20b7d617372405447c7cbd580017b">&#9670;&nbsp;</a></span>PEDO_ONEG_2G</h2>
197
198<div class="memitem">
199<div class="memproto">
200      <table class="memname">
201        <tr>
202          <td class="memname">#define PEDO_ONEG_2G&#160;&#160;&#160;16384     /* One <a class="el" href="a00920.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a> value for 2G mode.*/</td>
203        </tr>
204      </table>
205</div><div class="memdoc">
206
207<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00030">30</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
208
209</div>
210</div>
211<a id="ac458a17d63e2edfb42ce8d057199b006"></a>
212<h2 class="memtitle"><span class="permalink"><a href="#ac458a17d63e2edfb42ce8d057199b006">&#9670;&nbsp;</a></span>PEDO_ONEG_4G</h2>
213
214<div class="memitem">
215<div class="memproto">
216      <table class="memname">
217        <tr>
218          <td class="memname">#define PEDO_ONEG_4G&#160;&#160;&#160;8192      /* One <a class="el" href="a00920.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a> value for 4G mode.*/</td>
219        </tr>
220      </table>
221</div><div class="memdoc">
222
223<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00029">29</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
224
225</div>
226</div>
227<a id="a50d24b234d9d75077968d54a23baac13"></a>
228<h2 class="memtitle"><span class="permalink"><a href="#a50d24b234d9d75077968d54a23baac13">&#9670;&nbsp;</a></span>PEDO_ONEG_8G</h2>
229
230<div class="memitem">
231<div class="memproto">
232      <table class="memname">
233        <tr>
234          <td class="memname">#define PEDO_ONEG_8G&#160;&#160;&#160;4096      /* One <a class="el" href="a00920.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a> value for 8G mode.*/</td>
235        </tr>
236      </table>
237</div><div class="memdoc">
238
239<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00028">28</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
240
241</div>
242</div>
243<a id="a9b92edaeb7dec66a37b4c4689a8c1d42"></a>
244<h2 class="memtitle"><span class="permalink"><a href="#a9b92edaeb7dec66a37b4c4689a8c1d42">&#9670;&nbsp;</a></span>PEDO_SPEED_PERIOD_DEFAULT</h2>
245
246<div class="memitem">
247<div class="memproto">
248      <table class="memname">
249        <tr>
250          <td class="memname">#define PEDO_SPEED_PERIOD_DEFAULT&#160;&#160;&#160;5</td>
251        </tr>
252      </table>
253</div><div class="memdoc">
254
255<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00033">33</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
256
257</div>
258</div>
259<a id="a7aa4476f16cc506cd6353a5f367dbe43"></a>
260<h2 class="memtitle"><span class="permalink"><a href="#a7aa4476f16cc506cd6353a5f367dbe43">&#9670;&nbsp;</a></span>PEDO_STEP_THRESHOLD_DEFAULT</h2>
261
262<div class="memitem">
263<div class="memproto">
264      <table class="memname">
265        <tr>
266          <td class="memname">#define PEDO_STEP_THRESHOLD_DEFAULT&#160;&#160;&#160;130</td>
267        </tr>
268      </table>
269</div><div class="memdoc">
270
271<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00032">32</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
272
273</div>
274</div>
275<h2 class="groupheader">Typedef Documentation</h2>
276<a id="a0595338a17265357f0d301dba63e3fd3"></a>
277<h2 class="memtitle"><span class="permalink"><a href="#a0595338a17265357f0d301dba63e3fd3">&#9670;&nbsp;</a></span>activitylevel_t</h2>
278
279<div class="memitem">
280<div class="memproto">
281      <table class="memname">
282        <tr>
283          <td class="memname">typedef KeynetikActivityLevel <a class="el" href="a00956.html#a0595338a17265357f0d301dba63e3fd3">activitylevel_t</a></td>
284        </tr>
285      </table>
286</div><div class="memdoc">
287
288<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00026">26</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
289
290</div>
291</div>
292<a id="a00fabbe7008a793b4929533264562c79"></a>
293<h2 class="memtitle"><span class="permalink"><a href="#a00fabbe7008a793b4929533264562c79">&#9670;&nbsp;</a></span>debounce_count_t</h2>
294
295<div class="memitem">
296<div class="memproto">
297      <table class="memname">
298        <tr>
299          <td class="memname">typedef uint16_t <a class="el" href="a00956.html#a00fabbe7008a793b4929533264562c79">debounce_count_t</a></td>
300        </tr>
301      </table>
302</div><div class="memdoc">
303
304<p class="definition">Definition at line <a class="el" href="a00956_source.html#l00027">27</a> of file <a class="el" href="a00956_source.html">pedometer.h</a>.</p>
305
306</div>
307</div>
308<h2 class="groupheader">Function Documentation</h2>
309<a id="a5ea8580b8a07ce9ece550f8b6fd37ced"></a>
310<h2 class="memtitle"><span class="permalink"><a href="#a5ea8580b8a07ce9ece550f8b6fd37ced">&#9670;&nbsp;</a></span>pedometer_configure()</h2>
311
312<div class="memitem">
313<div class="memproto">
314      <table class="memname">
315        <tr>
316          <td class="memname">void pedometer_configure </td>
317          <td>(</td>
318          <td class="paramtype"><a class="el" href="a04067.html">pedometer_t</a> *&#160;</td>
319          <td class="paramname"><em>pPedometer</em>, </td>
320        </tr>
321        <tr>
322          <td class="paramkey"></td>
323          <td></td>
324          <td class="paramtype">const <a class="el" href="a04059.html">pedometer_config_t</a> *&#160;</td>
325          <td class="paramname"><em>pConfig</em>&#160;</td>
326        </tr>
327        <tr>
328          <td></td>
329          <td>)</td>
330          <td></td><td></td>
331        </tr>
332      </table>
333</div><div class="memdoc">
334
335<p>The interface function to configure the pedometer. </p>
336<dl class="params"><dt>Parameters</dt><dd>
337  <table class="params">
338    <tr><td class="paramdir">[in]</td><td class="paramname"><a class="el" href="a04067.html" title="This defines the pedometer instance. ">pedometer_t</a></td><td>handle to the pedometer. </td></tr>
339    <tr><td class="paramdir">[in]</td><td class="paramname">config</td><td>configuration value.</td></tr>
340  </table>
341  </dd>
342</dl>
343<dl class="section return"><dt>Returns</dt><dd>void.</dd></dl>
344<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl>
345<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl>
346
347<p class="definition">Definition at line <a class="el" href="a00926_source.html#l00111">111</a> of file <a class="el" href="a00926_source.html">pedometer.c</a>.</p>
348
349<p class="reference">References <a class="el" href="a00956_source.html#l00097">pedometer_t::config</a>, <a class="el" href="a00956_source.html#l00067">pedometer_config_t::frequency</a>, <a class="el" href="a00956_source.html#l00061">pedometer_config_t::keynetik</a>, <a class="el" href="a00956_source.html#l00064">pedometer_config_t::oneG</a>, <a class="el" href="a04067.html#aa49c2e033986e920aff4252b22d1a137">pedometer_t::private</a>, and <a class="el" href="a00956_source.html#l00101">pedometer_t::pedometer_private_tag::stepchg_stepcount</a>.</p>
350
351<p class="reference">Referenced by <a class="el" href="a00929_source.html#l00103">main()</a>.</p>
352<div class="dynheader">
353Here is the caller graph for this function:</div>
354<div class="dyncontent">
355<div class="center"><img src="a00956_a5ea8580b8a07ce9ece550f8b6fd37ced_icgraph.png" border="0" usemap="#a00956_a5ea8580b8a07ce9ece550f8b6fd37ced_icgraph" alt=""/></div>
356<map name="a00956_a5ea8580b8a07ce9ece550f8b6fd37ced_icgraph" id="a00956_a5ea8580b8a07ce9ece550f8b6fd37ced_icgraph">
357<area shape="rect" id="node2" href="a00929.html#a840291bc02cba5474a4cb46a9b9566fe" title="This is the The main function implementation. " alt="" coords="196,5,247,32"/>
358</map>
359</div>
360
361</div>
362</div>
363<a id="a594d690252fcfc6713fe8374f384fe69"></a>
364<h2 class="memtitle"><span class="permalink"><a href="#a594d690252fcfc6713fe8374f384fe69">&#9670;&nbsp;</a></span>pedometer_init()</h2>
365
366<div class="memitem">
367<div class="memproto">
368      <table class="memname">
369        <tr>
370          <td class="memname">void pedometer_init </td>
371          <td>(</td>
372          <td class="paramtype"><a class="el" href="a04067.html">pedometer_t</a> *&#160;</td>
373          <td class="paramname"><em>pPedometer</em></td><td>)</td>
374          <td></td>
375        </tr>
376      </table>
377</div><div class="memdoc">
378
379<p>The interface function initialize the pedometer. </p>
380<p>This function initialize the pedometer structure and return the handle.</p>
381<dl class="params"><dt>Parameters</dt><dd>
382  <table class="params">
383    <tr><td class="paramdir">[in]</td><td class="paramname">pPedometer</td><td>handle to the pedometer.</td></tr>
384  </table>
385  </dd>
386</dl>
387<dl class="section return"><dt>Returns</dt><dd>void.</dd></dl>
388<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl>
389<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl>
390
391<p class="definition">Definition at line <a class="el" href="a00926_source.html#l00097">97</a> of file <a class="el" href="a00926_source.html">pedometer.c</a>.</p>
392
393<p class="reference">Referenced by <a class="el" href="a00929_source.html#l00103">main()</a>.</p>
394<div class="dynheader">
395Here is the caller graph for this function:</div>
396<div class="dyncontent">
397<div class="center"><img src="a00956_a594d690252fcfc6713fe8374f384fe69_icgraph.png" border="0" usemap="#a00956_a594d690252fcfc6713fe8374f384fe69_icgraph" alt=""/></div>
398<map name="a00956_a594d690252fcfc6713fe8374f384fe69_icgraph" id="a00956_a594d690252fcfc6713fe8374f384fe69_icgraph">
399<area shape="rect" id="node2" href="a00929.html#a840291bc02cba5474a4cb46a9b9566fe" title="This is the The main function implementation. " alt="" coords="160,5,211,32"/>
400</map>
401</div>
402
403</div>
404</div>
405<a id="a87224a70b303355a416beaca80ed1b2f"></a>
406<h2 class="memtitle"><span class="permalink"><a href="#a87224a70b303355a416beaca80ed1b2f">&#9670;&nbsp;</a></span>pedometer_run()</h2>
407
408<div class="memitem">
409<div class="memproto">
410      <table class="memname">
411        <tr>
412          <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> pedometer_run </td>
413          <td>(</td>
414          <td class="paramtype"><a class="el" href="a04067.html">pedometer_t</a> *&#160;</td>
415          <td class="paramname"><em>pPedometer</em>, </td>
416        </tr>
417        <tr>
418          <td class="paramkey"></td>
419          <td></td>
420          <td class="paramtype"><a class="el" href="a04055.html">ped_accel_t</a> *&#160;</td>
421          <td class="paramname"><em>pData</em>&#160;</td>
422        </tr>
423        <tr>
424          <td></td>
425          <td>)</td>
426          <td></td><td></td>
427        </tr>
428      </table>
429</div><div class="memdoc">
430
431<p>The interface function excutes the pedometer algorithm. </p>
432<p>Call this function the rate at which accelerometer runs.</p>
433<dl class="params"><dt>Parameters</dt><dd>
434  <table class="params">
435    <tr><td class="paramdir">[in]</td><td class="paramname">pPedometer</td><td>handle to the pedometer. </td></tr>
436    <tr><td class="paramdir">[in]</td><td class="paramname">accel_data</td><td>acceleration data. </td></tr>
437  </table>
438  </dd>
439</dl>
440<dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00956.html#a87224a70b303355a416beaca80ed1b2f" title="The interface function excutes the pedometer algorithm. ">pedometer_run()</a> returns the status .</dd></dl>
441<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl>
442<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl>
443
444<p class="definition">Definition at line <a class="el" href="a00926_source.html#l00125">125</a> of file <a class="el" href="a00926_source.html">pedometer.c</a>.</p>
445
446<p class="reference">Referenced by <a class="el" href="a00929_source.html#l00103">main()</a>.</p>
447<div class="dynheader">
448Here is the caller graph for this function:</div>
449<div class="dyncontent">
450<div class="center"><img src="a00956_a87224a70b303355a416beaca80ed1b2f_icgraph.png" border="0" usemap="#a00956_a87224a70b303355a416beaca80ed1b2f_icgraph" alt=""/></div>
451<map name="a00956_a87224a70b303355a416beaca80ed1b2f_icgraph" id="a00956_a87224a70b303355a416beaca80ed1b2f_icgraph">
452<area shape="rect" id="node2" href="a00929.html#a840291bc02cba5474a4cb46a9b9566fe" title="This is the The main function implementation. " alt="" coords="161,5,212,32"/>
453</map>
454</div>
455
456</div>
457</div>
458</div><!-- contents -->
459
460<hr class="footer"/><address class="footer"><small>
461&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
462</small></address>
463</body>
464</html>
465