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: driverexamples/demos/fxlc95000_flash_demo.c Source File</title>
9<link href="tabs.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="dynsections.js"></script>
12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" />
13</head>
14<body>
15<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16<div id="titlearea">
17<table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr style="height: 56px;">
20  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
21  <td id="projectalign" style="padding-left: 0.5em;">
22   <div id="projectname">ISSDK
23   &#160;<span id="projectnumber">1.8</span>
24   </div>
25   <div id="projectbrief">IoT Sensing Software Development Kit</div>
26  </td>
27 </tr>
28 </tbody>
29</table>
30</div>
31<!-- end header part -->
32<!-- Generated by Doxygen 1.8.13 -->
33<script type="text/javascript" src="menudata.js"></script>
34<script type="text/javascript" src="menu.js"></script>
35<script type="text/javascript">
36$(function() {
37  initMenu('',false,false,'search.php','Search');
38});
39</script>
40<div id="main-nav"></div>
41<div id="nav-path" class="navpath">
42  <ul>
43<li class="navelem"><a class="el" href="dir_63958a0a083234c4c5a126855d7f4594.html">driverexamples</a></li><li class="navelem"><a class="el" href="dir_75b6ec340b7293f2efc92c9371853817.html">demos</a></li>  </ul>
44</div>
45</div><!-- top -->
46<div class="header">
47  <div class="headertitle">
48<div class="title">fxlc95000_flash_demo.c</div>  </div>
49</div><!--header-->
50<div class="contents">
51<a href="a00419.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * @file: fxlc95000_flash_demo.c</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * @brief The fxlc95000_flash_demo.c file implements the ISSDK FXLC95000L sensor driver</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *          example demonstration for FLASH programming and Streaming for I2C Mode using Host I/O.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// SDK Includes</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;board.h&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;pin_mux.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;fsl_lptmr.h&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;clock_config.h&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// CMSIS Includes</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;Driver_I2C.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;Driver_USART.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">// ISSDK Includes</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;issdk_hal.h&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;gpio_driver.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00101.html">host_io_uart.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00533.html">systick_utils.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00041.html">fxlc95000_drv.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;auto_detection_service.h&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// Macros</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="a00419.html#a0bf326d91d9eb8eb378426c1e80a738a">   42</a></span>&#160;<span class="preprocessor">#define fxlc95000_odrCallback LPTMR0_IRQHandler </span><span class="comment">/* Timer timeout Callback. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="a00419.html#a01ae59adc030ea522c6f12807f91fd46">   43</a></span>&#160;<span class="preprocessor">#define SAMPLING_RATE_ms 100                    </span><span class="comment">/* Timeout for the ODR Timer in ms. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="a00419.html#a297e2dd54b61ba7479d116917c78c35f">   44</a></span>&#160;<span class="preprocessor">#define FXLC95000_SAMPLE_SIZE 10                </span><span class="comment">/* 4-Byte timestamp and 2-Byte X,Y,Z Data each. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*! @brief Unique Name for this application which should match the target GUI pkg name. */</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="a00419.html#adf41b2857036247c970bc8594b6a636a">   47</a></span>&#160;<span class="preprocessor">#define APPLICATION_NAME &quot;FXLC95000 Accelerometer Demo&quot;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/*! @brief Version to distinguish between instances the same application based on target Shield and updates. */</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="a00419.html#a6efa9917d91d75dcb9036443bc2483cd">   49</a></span>&#160;<span class="preprocessor">#define APPLICATION_VERSION &quot;2.5&quot;</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">// Constants</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span><span class="comment"></span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">/*! Create commands for setting FXLC95000L desired configuration. */</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="a00419.html#aed448e36a9cf32972b5863c0a6aa4f07">   55</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="a00419.html#aed448e36a9cf32972b5863c0a6aa4f07">cFxlc95000_SetODR_Cmd</a>[] = {<a class="code" href="a00035.html#a021caba130784fb8ae75a0d05496e92c">FXLC95000_SET_ODR_CMD_HDR</a>, <span class="comment">/* ODR equal to Sampling Rate. */</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                                         <a class="code" href="a00035.html#aa20bc5ad577b44539fc874896bae51bd">FXLC95000_SST_ODR_PAYLOAD</a>(<a class="code" href="a00419.html#a01ae59adc030ea522c6f12807f91fd46">SAMPLING_RATE_ms</a> * 1000)};</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="a00419.html#acfb4909fec44f3c527c0e9bd3c4bac4b">   57</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="a00419.html#acfb4909fec44f3c527c0e9bd3c4bac4b">cFxlc95000_SetResolution_Cmd</a>[] = {<a class="code" href="a00035.html#a7c7af617592f2de0e3d0cea55abc132d">FXLC95000_SET_RESOLUTION_CMD_HDR</a>, <span class="comment">/* Resolution 14-bits. */</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                                                <a class="code" href="a00035.html#a7dd6d95c7cb49dea36ed39aa01a88080">FXLC95000_ACCEL_RESOLUTION_14_BIT</a>};</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="a00419.html#a167d88217475ff6c80f86d01380e4723">   59</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="a00419.html#a167d88217475ff6c80f86d01380e4723">cFxlc95000_SetRange_Cmd</a>[] = {<a class="code" href="a00035.html#aef528735dcb9ab7b757e1cd81c95e953">FXLC95000_SET_RANGE_CMD_HDR</a>, <span class="comment">/* FS Range 2G. */</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                                           <a class="code" href="a00035.html#aae2028502307a7f42ae22f7e2703dfa2">FXLC95000_ACCEL_RANGE_2G</a>};</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">/*! Prepare the register write list to initialize FXLC95000L with desired MBox Settings. */</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="a00419.html#a1afccfbc6f68089f62b7b7d1299ea2bb">   63</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> <a class="code" href="a00419.html#a1afccfbc6f68089f62b7b7d1299ea2bb">cFxlc95000ConfigMBox</a>[] = {</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    {QuickReadInterruptDisable, 0, <span class="keyword">sizeof</span>(QuickReadInterruptDisable)}, <span class="comment">/* Disable QR INT. */</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    {ConfigureMBoxCmd, 0, <span class="keyword">sizeof</span>(ConfigureMBoxCmd)}, <span class="comment">/* Configure MBox 16 to 25 with 10 byte Sample. */</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a>                                <span class="comment">/* Ref. Table 3-7 of ISF1P195K_SW_REFERENCE_RM. */</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">/*! Prepare the register write list to configure FXLC95000L with desired Sampling Settings. */</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="a00419.html#a0cf179d83c991ed57e508751b71aaaf9">   70</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> <a class="code" href="a00419.html#a0cf179d83c991ed57e508751b71aaaf9">cFxlc95000ConfigSensor</a>[] = {</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    {StopDataCmd, 0, <span class="keyword">sizeof</span>(StopDataCmd)},                                   <span class="comment">/* Stop Data before (re)configuration. */</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    {<a class="code" href="a00419.html#aed448e36a9cf32972b5863c0a6aa4f07">cFxlc95000_SetODR_Cmd</a>, 0, <span class="keyword">sizeof</span>(<a class="code" href="a00419.html#aed448e36a9cf32972b5863c0a6aa4f07">cFxlc95000_SetODR_Cmd</a>)},               <span class="comment">/* Set Sensor Sampling Rate. */</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {<a class="code" href="a00419.html#a167d88217475ff6c80f86d01380e4723">cFxlc95000_SetRange_Cmd</a>, 0, <span class="keyword">sizeof</span>(<a class="code" href="a00419.html#a167d88217475ff6c80f86d01380e4723">cFxlc95000_SetRange_Cmd</a>)},           <span class="comment">/* Set FS Range. */</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {<a class="code" href="a00419.html#acfb4909fec44f3c527c0e9bd3c4bac4b">cFxlc95000_SetResolution_Cmd</a>, 0, <span class="keyword">sizeof</span>(<a class="code" href="a00419.html#acfb4909fec44f3c527c0e9bd3c4bac4b">cFxlc95000_SetResolution_Cmd</a>)}, <span class="comment">/* Set Resolution */</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {StartDataCmd, 0, <span class="keyword">sizeof</span>(StartDataCmd)},                                 <span class="comment">/* Start Data after (re)configuration. */</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a>};</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">/*! Prepare the register write list with Flash Preprocess Commands. */</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="a00419.html#a5e68cea9a9e1e5c61e4d586ae000b42a">   79</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> <a class="code" href="a00419.html#a5e68cea9a9e1e5c61e4d586ae000b42a">cFxlc95000FlashPreprocess</a>[] = {</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    {UnprotectFlash, 0, <span class="keyword">sizeof</span>(UnprotectFlash)},           <span class="comment">/* Unprotect Flash Banks to enable Writing. */</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    {EraseMainFlashArray, 0, <span class="keyword">sizeof</span>(EraseMainFlashArray)}, <span class="comment">/* Erase Flash completely before writing new Data. */</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a>                                      <span class="comment">/* Ref. Section 16.5 of FXLC95000CLHWRM. */</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;};</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">/*! Prepare the register write list with Flash Postprocess Commands. */</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="a00419.html#a570c228e5cf99b3536ae309b429e16f1">   86</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> <a class="code" href="a00419.html#a570c228e5cf99b3536ae309b429e16f1">cFxlc95000FlashPostprocess</a>[] = {</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    {ProtectFlash, 0, <span class="keyword">sizeof</span>(ProtectFlash)}, <span class="comment">/* Protect Flash Banks after Writing to enable booting to Flash. */</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a>                        <span class="comment">/* Ref. Section 16.5 of FXLC95000CLHWRM. */</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;};</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">/*! Prepare the register read list to read the Timestamp and Accel data from FXLC95000. */</span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="a00419.html#a312158bc9e10b5da65dfab17e249d497">   92</a></span>&#160;<span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00419.html#a312158bc9e10b5da65dfab17e249d497">cFxlc95000ReadSample</a>[] = {</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00035.html#a08e8740270f1e171cbb8e06d31b3e605">FXLC95000_SAMPLE_OFFSET</a>, .numBytes = <a class="code" href="a00419.html#a297e2dd54b61ba7479d116917c78c35f">FXLC95000_SAMPLE_SIZE</a>}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">// Global Variables</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="a00419.html#a1c419755be00b2aebbd8d31da9b66142">   98</a></span>&#160;<span class="keywordtype">char</span> <a class="code" href="a00419.html#a44681c771b24906b93d52a830b4ec968">boardString</a>[<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {0}, <a class="code" href="a00419.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>[<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {0},</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="a00419.html#a70385ff3e0081022336573247e5ecaec">   99</a></span>&#160;     <a class="code" href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>[<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {0};</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="a00419.html#aaf56ae4c156374e195890d3459adda93">  100</a></span>&#160;<span class="keyword">volatile</span> <span class="keywordtype">bool</span> <a class="code" href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> = <span class="keyword">false</span>, <a class="code" href="a00419.html#a5adbb7857ac15f77e77c88801840cd33">bFxlc95000DataReady</a> = <span class="keyword">false</span>, <a class="code" href="a00419.html#a79b77394af78f7d1f1304e08d644144f">bFxlc95000Ready</a> = <span class="keyword">false</span>, <a class="code" href="a00419.html#aaa75b0694ad30a3681f7d90f3e531fb6">bFxlc95000Boot</a> = <span class="keyword">false</span>,</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">  101</a></span>&#160;              <a class="code" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="a00419.html#a9b78a5d2f4ff56f46d49c085be00bf8b">  102</a></span>&#160;<a class="code" href="a01235.html">fxlc95000_i2c_sensorhandle_t</a> <a class="code" href="a00419.html#a9b78a5d2f4ff56f46d49c085be00bf8b">fxlc95000Driver</a> = <span class="comment">/* Sensor Handle. */</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    {.<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a> = {.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>, .idleFunction = NULL}};</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">  104</a></span>&#160;uint8_t <a class="code" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>; <span class="comment">/* The auto assigned Stream ID. */</span></div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="a00419.html#ac61bf859f26cd2541c3958bff34e2bda">  105</a></span>&#160;<a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a00419.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a> = &amp;<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment">// Functions</span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">/* LPTMR based ODR Callback function. */</span></div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="a00419.html#a2db134b096a615fbea98cd4037dfb5bf">  111</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00419.html#a0bf326d91d9eb8eb378426c1e80a738a">fxlc95000_odrCallback</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;{</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    LPTMR_ClearStatusFlags(LPTMR0, kLPTMR_TimerCompareFlag);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <a class="code" href="a00419.html#a5adbb7857ac15f77e77c88801840cd33">bFxlc95000DataReady</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;}</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">/* Sequence of commands for booting up FXLC95000 to Flash and enabling reading of samples. */</span></div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="a00419.html#a4d3c6a49cdb7699813aa88ce1bc3d7e5">  118</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00419.html#a4d3c6a49cdb7699813aa88ce1bc3d7e5">fxlc95000_enSensor</a>(<a class="code" href="a01235.html">fxlc95000_i2c_sensorhandle_t</a> *pSensorHandle)</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="comment">    /*! Initialize the FXLC95000 sensor driver. */</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    status = <a class="code" href="a00038.html#a32b4c71a3c3cbef9999416fdb83dc054">FXLC95000_I2C_Initialize</a>(pSensorHandle, &amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>, <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>,</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                                      <a class="code" href="a00035.html#aecf92ea9839d76ce3425b14c00f41d18">FXLC95000_BUILD_ID</a>);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    {</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="comment">    /*!  Set the task to be executed while waiting for I2C transactions to complete. */</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="a00038.html#a7d31c709c8c3637ebfa48265b0347e77">FXLC95000_I2C_SetIdleTask</a>(pSensorHandle, (<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="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="comment">    /*! Configure the FXLC95000 with MBox settings. */</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    status = <a class="code" href="a00038.html#a7ce291d9339bc2515ada199ee4c53692">FXLC95000_I2C_CommandResponse</a>(pSensorHandle, cFxlc95000ConfigMBox, NULL, NULL);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    {</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }<span class="comment"></span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment">    /*! Configure the FXLC95000 with Sampling settings. */</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    status = <a class="code" href="a00038.html#a7ce291d9339bc2515ada199ee4c53692">FXLC95000_I2C_CommandResponse</a>(pSensorHandle, cFxlc95000ConfigSensor, NULL, NULL);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    {</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    }</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    LPTMR_StartTimer(LPTMR0);</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="a00419.html#aaa75b0694ad30a3681f7d90f3e531fb6">bFxlc95000Boot</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>);   <span class="comment">/* Clear RED LED to indicate sensor boot process is complete. */</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>); <span class="comment">/* Set GREEN LED to indicate application is ready. */</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="comment">/* Handler for Flash Write, Device Info and Streaming Control Commands. */</span></div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="a00419.html#a0076d28c9a17cd6908c7b3b0f5c6006c">  154</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="a00419.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a>(</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, <span class="keywordtype">size_t</span> *hostMsgSize, <span class="keywordtype">size_t</span> respBufferSize)</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;{</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keyword">static</span> uint8_t toggle_led = 0;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordtype">bool</span> success = <span class="keyword">false</span>;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordtype">size_t</span> rxMsgSize = *hostMsgSize; <span class="comment">/* Capture Rx Command Size. */</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    *hostMsgSize = 0;                <span class="comment">/* Set Tx Response payload size to &#39;0&#39; as default and update if required. */</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="comment">/* If it is Host requesting Device Info, send Board Name and Shield Name. */</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordflow">if</span> (tag == <a class="code" href="a00101.html#a6a3695a33b82875d8285b40c8c417de1">HOST_PRO_INT_DEV_TAG</a>)</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    { <span class="comment">/* Byte 1     : Payload - Length of APPLICATION_NAME (b)</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="comment">       * Bytes=b    : Payload Application Name</span></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment">       * Byte b+1   : Payload - Length of BOARD_NAME (s)</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">       * Bytes=s    : Payload Board Name</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">       * Byte b+s+2 : Payload - Length of SHIELD_NAME (v)</span></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment">       * Bytes=v    : Payload Shield Name */</span></div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordtype">size_t</span> appNameLen = strlen(<a class="code" href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keywordtype">size_t</span> boardNameLen = strlen(<a class="code" href="a00419.html#a44681c771b24906b93d52a830b4ec968">boardString</a>);</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        <span class="keywordtype">size_t</span> shieldNameLen = strlen(<a class="code" href="a00419.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="keywordflow">if</span> (respBufferSize &gt;= boardNameLen + shieldNameLen + appNameLen + 3)</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        { <span class="comment">/* We have sufficient buffer. */</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            *hostMsgSize = 0;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        }</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        {</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        }</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        hostResponse[*hostMsgSize] = appNameLen;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        *hostMsgSize += 1;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        memcpy(hostResponse + *hostMsgSize, <a class="code" href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, appNameLen);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        *hostMsgSize += appNameLen;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        hostResponse[*hostMsgSize] = boardNameLen;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        *hostMsgSize += 1;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        memcpy(hostResponse + *hostMsgSize, <a class="code" href="a00419.html#a44681c771b24906b93d52a830b4ec968">boardString</a>, boardNameLen);</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        *hostMsgSize += boardNameLen;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        hostResponse[*hostMsgSize] = shieldNameLen;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        *hostMsgSize += 1;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        memcpy(hostResponse + *hostMsgSize, <a class="code" href="a00419.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>, shieldNameLen);</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        *hostMsgSize += shieldNameLen;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00419.html#aaa75b0694ad30a3681f7d90f3e531fb6">bFxlc95000Boot</a>) <span class="comment">/* Bringup FXLC95000 if not already done. */</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        {</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00419.html#a4d3c6a49cdb7699813aa88ce1bc3d7e5">fxlc95000_enSensor</a>(&amp;fxlc95000Driver))</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            {</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;                <a class="code" href="a00419.html#aaa75b0694ad30a3681f7d90f3e531fb6">bFxlc95000Boot</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            }</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        }</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    }</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="comment">/* If it is Host sending Streaming Commands, take necessary actions. */</span></div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordflow">if</span> ((tag == (<a class="code" href="a00101.html#a24c0ee2064102a8de73651950dd9fbcb">HOST_PRO_INT_CMD_TAG</a> | <a class="code" href="a00101.html#acd94b3a62cd8be32b0cd95706c138de5">HOST_PRO_CMD_W_CFG_TAG</a>)) &amp;&amp;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        (rxMsgSize == <a class="code" href="a00101.html#a831b5795adf211dfa086182261563b02a8366e2825abb54c66e88fc32b1198d38">HOST_MSG_CMD_ACT_OFFSET</a> - <a class="code" href="a00101.html#a831b5795adf211dfa086182261563b02aa7fc80700bf9fa14ef02fd298fb660e7">HOST_MSG_LEN_LSB_OFFSET</a>))</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    {                           <span class="comment">/* Byte 1 : Payload - Operation Code (Start/Stop Operation Code)</span></div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="comment">                                 * Byte 2 : Payload - Stream ID (Target Stream for carrying out operation) */</span></div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keywordflow">switch</span> (hostCommand[0]) <span class="comment">/* Execute desired operation (Start/Stop) on the requested Stream. */</span></div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        {</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdabd87bb42bdfc53f57fa1afe1ef2eae30">HOST_CMD_START</a>:</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;                <span class="keywordflow">if</span> (hostCommand[1] == <a class="code" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> &amp;&amp; <a class="code" href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> == <span class="keyword">false</span>)</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;                {</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;                    <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00419.html#aaa75b0694ad30a3681f7d90f3e531fb6">bFxlc95000Boot</a>) <span class="comment">/* Bringup FXLC95000 if not already done. */</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                    {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                        <span class="keywordflow">if</span> (<a class="code" href="a00419.html#a4d3c6a49cdb7699813aa88ce1bc3d7e5">fxlc95000_enSensor</a>(&amp;fxlc95000Driver))</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                        {</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                            <span class="keywordflow">break</span>;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                        }</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                    }</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                    <a class="code" href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                    success = <span class="keyword">true</span>;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                }</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdaaa509d318c5904c4ddd5f235dd4ecbb3">HOST_CMD_STOP</a>:</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                <span class="keywordflow">if</span> (hostCommand[1] == <a class="code" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> &amp;&amp; <a class="code" href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> == <span class="keyword">true</span>)</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                {</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                    pGpioDriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                    <a class="code" href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                    success = <span class="keyword">true</span>;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                }</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;            <span class="keywordflow">default</span>:</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        }</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    }</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="comment">/* If it is Host sending Flash Commands, take necessary actions. */</span></div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordflow">if</span> ((tag == (<a class="code" href="a00101.html#a24c0ee2064102a8de73651950dd9fbcb">HOST_PRO_INT_CMD_TAG</a> | <a class="code" href="a00101.html#acd94b3a62cd8be32b0cd95706c138de5">HOST_PRO_CMD_W_CFG_TAG</a>)) &amp;&amp;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        (rxMsgSize &gt;= <a class="code" href="a00101.html#a831b5795adf211dfa086182261563b02a8366e2825abb54c66e88fc32b1198d38">HOST_MSG_CMD_ACT_OFFSET</a> - <a class="code" href="a00101.html#a831b5795adf211dfa086182261563b02aa7fc80700bf9fa14ef02fd298fb660e7">HOST_MSG_LEN_LSB_OFFSET</a>))</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    {                           <span class="comment">/* Byte 1  : Payload - Operation Code (Start/Bytes/Stop Operation Code)</span></div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="comment">                                 * Byte 2  : Payload - Slave ID (The Sensor&#39;s I2C Slave Address)</span></div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">                                 * Byte 3+ : Payload - (Only for Flash Bytes) The Flash Payload to be Written. */</span></div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keywordflow">switch</span> (hostCommand[0]) <span class="comment">/* Execute desired operation on the requested Sensor. */</span></div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        {</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdad21ec4aaa4b423f27e0f5379976ccc54">HOST_CMD_FLASH_START</a>:</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                <span class="comment">/* Confirm Flashing is not active and Sensor is in ROM Mode. */</span></div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                <span class="keywordflow">if</span> ((hostCommand[1] == <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a> &amp;&amp; <span class="keyword">false</span> == <a class="code" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a>) &amp;&amp;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                    (0 == <a class="code" href="a00038.html#ae354fc2aafbf7609f21ebc8cf2538db0">FXLC95000_I2C_CheckRomMode</a>(&amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>, <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>)))</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                { <span class="comment">/*! Write Flash Preprocess Commands. */</span></div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> == <a class="code" href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a>(&amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>,</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                                                                         <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>, cFxlc95000FlashPreprocess))</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                    {</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                        <a class="code" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                        success = <span class="keyword">true</span>;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                    }</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                    pGpioDriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>); <span class="comment">/* Indicate Flash Processing is active. */</span></div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                }</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdac754b0ceb83c36e127a1f5367f87c857">HOST_CMD_FLASH_BYTES</a>:</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                <span class="comment">/* Confirm Flashing is active. */</span></div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                <span class="keywordflow">if</span> ((hostCommand[1] == <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>) &amp;&amp; (<span class="keyword">true</span> == <a class="code" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a>))</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                { <span class="comment">/*! Write Flash Data Bytes. */</span></div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> == <a class="code" href="a00038.html#a0ad7b40a417661e25cdee37caccc21a6">FXLC95000_I2C_FlashPayload</a>(&amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>,</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                                                                        <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>, hostCommand + 2,</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                                                                        rxMsgSize - 2))</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                    {</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                        success = <span class="keyword">true</span>;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                    }</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                    <span class="keywordflow">if</span> (toggle_led++ % 32 == 0 ? <span class="keyword">true</span> : <span class="keyword">false</span>)</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                    {</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                        pGpioDriver-&gt;<a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>); <span class="comment">/* Indicate Flash Processing is active. */</span></div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                    }</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                }</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbda4ee754c0668db952b3ef861a54213db2">HOST_CMD_FLASH_STOP</a>:</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                <span class="comment">/* Confirm Flashing is active. */</span></div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                <span class="keywordflow">if</span> ((hostCommand[1] == <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>) &amp;&amp; (<span class="keyword">true</span> == <a class="code" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a>))</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                { <span class="comment">/*! Write Flash Postprocess Commands. */</span></div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> == <a class="code" href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a>(&amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>,</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                                                                         <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>,</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                                                                         cFxlc95000FlashPostprocess))</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                    {</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                        <a class="code" href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                        success = <span class="keyword">true</span>;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                    }</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                    pGpioDriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>); <span class="comment">/* Indicate Flash Processing is complete. */</span></div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                }</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            <span class="keywordflow">default</span>:</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        }</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    }</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">return</span> success;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;}</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="comment">/*!</span></div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="comment"> * @brief Main function</span></div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="a00419.html#a840291bc02cba5474a4cb46a9b9566fe">  310</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00419.html#a840291bc02cba5474a4cb46a9b9566fe">main</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;{</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <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="l00313"></a><span class="lineno">  313</span>&#160;    uint8_t <a class="code" href="a00428.html#a3f472fff7261e46e432beb76fa314b4c">streamingPacket</a>[<a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a> + <a class="code" href="a00419.html#a297e2dd54b61ba7479d116917c78c35f">FXLC95000_SAMPLE_SIZE</a>];</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    lptmr_config_t lptmrConfig;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    ARM_DRIVER_I2C *<a class="code" href="a00368.html#a3c22bed16a7c769894081222aa6107d8">I2Cdrv</a> = &amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    ARM_DRIVER_USART *pUartDriver = &amp;<a class="code" href="a00578.html#a8d15df9aa13a779003e27e835a001f60">HOST_S_DRIVER</a>;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;<span class="comment">    /*! Initialize the MCU hardware. */</span></div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <a class="code" href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a>();</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <a class="code" href="a00530.html#ad43629969994e92bd3620e630bda24c8">BOARD_SystickEnable</a>();</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="comment">/* Create the Short Application Name String for ADS. */</span></div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    sprintf(<a class="code" href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, <span class="stringliteral">&quot;%s:%s&quot;</span>, <a class="code" href="a00419.html#adf41b2857036247c970bc8594b6a636a">APPLICATION_NAME</a>, <a class="code" href="a00419.html#a6efa9917d91d75dcb9036443bc2483cd">APPLICATION_VERSION</a>);</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    <span class="comment">/* Run ADS. */</span></div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <a class="code" href="a04823.html#a95285f14f6707e326e523c82d926c900">BOARD_RunADS</a>(<a class="code" href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, <a class="code" href="a00419.html#a44681c771b24906b93d52a830b4ec968">boardString</a>, <a class="code" href="a00419.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>, <a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>);</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="comment">/* Create the Full Application Name String for Device Info Response. */</span></div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    sprintf(<a class="code" href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, <span class="stringliteral">&quot;%s:%s:%s&quot;</span>, <a class="code" href="a04337.html#ab72ca53100f11826f5060580d7223410">SHIELD_NAME</a>, <a class="code" href="a00419.html#adf41b2857036247c970bc8594b6a636a">APPLICATION_NAME</a>, <a class="code" href="a00419.html#a6efa9917d91d75dcb9036443bc2483cd">APPLICATION_VERSION</a>);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="comment">/* Initialize ODR Timer. */</span></div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    LPTMR_GetDefaultConfig(&amp;lptmrConfig);</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    LPTMR_Init(LPTMR0, &amp;lptmrConfig);</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    LPTMR_EnableInterrupts(LPTMR0, kLPTMR_TimerInterruptEnable);</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    LPTMR_SetTimerPeriod(LPTMR0, MSEC_TO_COUNT(<a class="code" href="a00419.html#a01ae59adc030ea522c6f12807f91fd46">SAMPLING_RATE_ms</a>, CLOCK_GetFreq(kCLOCK_LpoClk)));</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    EnableIRQ(LPTMR0_IRQn);</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;<span class="comment">    /*! Initialize RED LED pin used by FRDM board */</span></div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>);</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="comment">    /*! Initialize GREEN LED pin used by FRDM board */</span></div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="comment">    /*! Initialize the I2C driver. */</span></div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    status = I2Cdrv-&gt;Initialize(<a class="code" href="a04343.html#a60ac2e3bb32ae33e2fd542f607a58ac4">I2C_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    {</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    }</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;<span class="comment">    /*! Set the I2C Power mode. */</span></div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    status = I2Cdrv-&gt;PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    {</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    }</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<span class="comment">    /*! Set the I2C bus speed. */</span></div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    status = I2Cdrv-&gt;Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    {</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    }</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="comment">    /*! Initialize the UART driver. */</span></div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    status = pUartDriver-&gt;Initialize(<a class="code" href="a00578.html#a1a6866b34518a8b261ac338c52f597be">HOST_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    {</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    }</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;<span class="comment">    /*! Set the UART Power mode. */</span></div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    status = pUartDriver-&gt;PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    {</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    }</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="comment">    /*! Set UART Baud Rate. */</span></div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    status = pUartDriver-&gt;Control(ARM_USART_MODE_ASYNCHRONOUS, <a class="code" href="a04166.html#a7bae38ce2df969e54e7d59ceb9de9195">BOARD_DEBUG_UART_BAUDRATE</a>);</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    {</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    }</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="comment">    /*! Register with Host I/O Service and get a Stream ID. */</span></div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <a class="code" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> = <a class="code" href="a00098.html#ab4b858422bbaae71aff2ab540ae0e2b1">Host_IO_Init</a>(pUartDriver, (<span class="keywordtype">void</span> *)&amp;<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, &amp;fxlc95000Driver.<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, NULL, <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>);</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="comment">/* Confirm if a valid Stream ID has been allocated for this stream. */</span></div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <span class="keywordflow">if</span> (0 == <a class="code" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>)</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    {</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    }</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;<span class="comment">    /*! Populate streaming header. */</span></div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <a class="code" href="a00098.html#a68a2c033a0f6f967149dca76897f5c8a">Host_IO_Add_ISO_Header</a>(<a class="code" href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>, streamingPacket, <a class="code" href="a00419.html#a297e2dd54b61ba7479d116917c78c35f">FXLC95000_SAMPLE_SIZE</a>);</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    pGpioDriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&amp;<a class="code" href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a>); <span class="comment">/* Set the RED LED to indicate that Boot proccess has not been done.*/</span></div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="keywordflow">for</span> (;;) <span class="comment">/* Forever loop */</span></div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    {        <span class="comment">/* Call UART Non-Blocking Receive to check for Commands from Host. */</span></div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        <a class="code" href="a00098.html#a3924d21a0703878695ebdb68f720fff9">Host_IO_Receive</a>(<a class="code" href="a00419.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a>, <a class="code" href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a>);</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> || <span class="keyword">false</span> == <a class="code" href="a00419.html#a5adbb7857ac15f77e77c88801840cd33">bFxlc95000DataReady</a>)</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        {</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            <a class="code" href="a00638.html#a5423cac017d1d1a8ac8bba8e91e80e29">SMC_SetPowerModeWait</a>(<a class="code" href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a>); <span class="comment">/* Power save, wait if nothing to do. */</span></div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        }</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        { <span class="comment">/*! Clear the data ready flag, it will be set again by the ISR. */</span></div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;            <a class="code" href="a00419.html#a5adbb7857ac15f77e77c88801840cd33">bFxlc95000DataReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            pGpioDriver-&gt;<a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&amp;<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        }</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;<span class="comment">        /*! Read raw sensor data from the FXLC95000. */</span></div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        status = <a class="code" href="a00038.html#a7ce291d9339bc2515ada199ee4c53692">FXLC95000_I2C_CommandResponse</a>(&amp;fxlc95000Driver, NULL, cFxlc95000ReadSample,</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;                                               streamingPacket + <a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a>);</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        { <span class="comment">/* Loop, if sample read failed. */</span></div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;            <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        }</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <span class="comment">/* Send streaming packet to Host. */</span></div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        <a class="code" href="a00098.html#a719ad6da4502e713f1573b5353af9617">Host_IO_Send</a>(streamingPacket, <span class="keyword">sizeof</span>(streamingPacket), <a class="code" href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a>);</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    }</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;}</div><div class="ttc" id="a03903_html_ac3e094122adb91dc940bc7c033b47baa"><div class="ttname"><a href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">GENERIC_DRIVER_GPIO::set_pin</a></div><div class="ttdeci">void(* set_pin)(pinID_t aPinId)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00046">Driver_GPIO.h:46</a></div></div>
52<div class="ttc" id="a00419_html_a312158bc9e10b5da65dfab17e249d497"><div class="ttname"><a href="a00419.html#a312158bc9e10b5da65dfab17e249d497">cFxlc95000ReadSample</a></div><div class="ttdeci">const registerreadlist_t cFxlc95000ReadSample[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00092">fxlc95000_flash_demo.c:92</a></div></div>
53<div class="ttc" id="a00098_html_ab4b858422bbaae71aff2ab540ae0e2b1"><div class="ttname"><a href="a00098.html#ab4b858422bbaae71aff2ab540ae0e2b1">Host_IO_Init</a></div><div class="ttdeci">uint8_t Host_IO_Init(ARM_DRIVER_USART *pDrv, void *pBus, void *pDevInfo, void *spiSlaveParams, uint16_t slaveAddress)</div><div class="ttdef"><b>Definition:</b> <a href="a00098_source.html#l00100">host_io_uart.c:100</a></div></div>
54<div class="ttc" id="a00098_html_a3924d21a0703878695ebdb68f720fff9"><div class="ttname"><a href="a00098.html#a3924d21a0703878695ebdb68f720fff9">Host_IO_Receive</a></div><div class="ttdeci">void Host_IO_Receive(host_cmd_proc_fn_t process_host_command, uint8_t encoding)</div><div class="ttdef"><b>Definition:</b> <a href="a00098_source.html#l00207">host_io_uart.c:207</a></div></div>
55<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>
56<div class="ttc" id="a00419_html_a1afccfbc6f68089f62b7b7d1299ea2bb"><div class="ttname"><a href="a00419.html#a1afccfbc6f68089f62b7b7d1299ea2bb">cFxlc95000ConfigMBox</a></div><div class="ttdeci">const registercommandlist_t cFxlc95000ConfigMBox[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00063">fxlc95000_flash_demo.c:63</a></div></div>
57<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>
58<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>
59<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>
60<div class="ttc" id="a00419_html_a840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="a00419.html#a840291bc02cba5474a4cb46a9b9566fe">main</a></div><div class="ttdeci">int main(void)</div><div class="ttdoc">Main function. </div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00310">fxlc95000_flash_demo.c:310</a></div></div>
61<div class="ttc" id="a00101_html"><div class="ttname"><a href="a00101.html">host_io_uart.h</a></div><div class="ttdoc">The host_io_uart.h file contains the Host Protocol interface definitions and configuration. </div></div>
62<div class="ttc" id="a00575_html_a0708abafae354c60ffb72a4a3a407efc"><div class="ttname"><a href="a00575.html#a0708abafae354c60ffb72a4a3a407efc">RED_LED</a></div><div class="ttdeci">gpioHandleKSDK_t RED_LED</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00181">frdm_k64f.c:181</a></div></div>
63<div class="ttc" id="a00035_html_a7c7af617592f2de0e3d0cea55abc132d"><div class="ttname"><a href="a00035.html#a7c7af617592f2de0e3d0cea55abc132d">FXLC95000_SET_RESOLUTION_CMD_HDR</a></div><div class="ttdeci">#define FXLC95000_SET_RESOLUTION_CMD_HDR</div><div class="ttdoc">The FXLC95000 Set Resolution Command Header Bytes. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00045">fxlc95000.h:45</a></div></div>
64<div class="ttc" id="a03815_html"><div class="ttname"><a href="a03815.html">registercommandlist_t</a></div><div class="ttdoc">This structure defines the Block command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00087">sensor_drv.h:87</a></div></div>
65<div class="ttc" id="a00101_html_aa62371d642974c67a0c0efa77d54fcbdabd87bb42bdfc53f57fa1afe1ef2eae30"><div class="ttname"><a href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdabd87bb42bdfc53f57fa1afe1ef2eae30">HOST_CMD_START</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00102">host_io_uart.h:102</a></div></div>
66<div class="ttc" id="a00419_html_acfb4909fec44f3c527c0e9bd3c4bac4b"><div class="ttname"><a href="a00419.html#acfb4909fec44f3c527c0e9bd3c4bac4b">cFxlc95000_SetResolution_Cmd</a></div><div class="ttdeci">const uint8_t cFxlc95000_SetResolution_Cmd[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00057">fxlc95000_flash_demo.c:57</a></div></div>
67<div class="ttc" id="a00419_html_aed448e36a9cf32972b5863c0a6aa4f07"><div class="ttname"><a href="a00419.html#aed448e36a9cf32972b5863c0a6aa4f07">cFxlc95000_SetODR_Cmd</a></div><div class="ttdeci">const uint8_t cFxlc95000_SetODR_Cmd[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00055">fxlc95000_flash_demo.c:55</a></div></div>
68<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>
69<div class="ttc" id="a00419_html_a167d88217475ff6c80f86d01380e4723"><div class="ttname"><a href="a00419.html#a167d88217475ff6c80f86d01380e4723">cFxlc95000_SetRange_Cmd</a></div><div class="ttdeci">const uint8_t cFxlc95000_SetRange_Cmd[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00059">fxlc95000_flash_demo.c:59</a></div></div>
70<div class="ttc" id="a00101_html_acd94b3a62cd8be32b0cd95706c138de5"><div class="ttname"><a href="a00101.html#acd94b3a62cd8be32b0cd95706c138de5">HOST_PRO_CMD_W_CFG_TAG</a></div><div class="ttdeci">#define HOST_PRO_CMD_W_CFG_TAG</div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00063">host_io_uart.h:63</a></div></div>
71<div class="ttc" id="a01235_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">fxlc95000_i2c_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00046">fxlc95000_drv.h:46</a></div></div>
72<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>
73<div class="ttc" id="a03819_html_a693f84e28d48677a73cd40d7e5fc79ed"><div class="ttname"><a href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">registerDeviceInfo_t::deviceInstance</a></div><div class="ttdeci">uint8_t deviceInstance</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00106">sensor_drv.h:106</a></div></div>
74<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>
75<div class="ttc" id="a00545_html_ae74effce2cf3ebedf210277dc530d2df"><div class="ttname"><a href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a></div><div class="ttdeci">#define FXLC95000_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00070">auto_detection_shield.h:70</a></div></div>
76<div class="ttc" id="a00419_html_a44681c771b24906b93d52a830b4ec968"><div class="ttname"><a href="a00419.html#a44681c771b24906b93d52a830b4ec968">boardString</a></div><div class="ttdeci">char boardString[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00098">fxlc95000_flash_demo.c:98</a></div></div>
77<div class="ttc" id="a00035_html_aecf92ea9839d76ce3425b14c00f41d18"><div class="ttname"><a href="a00035.html#aecf92ea9839d76ce3425b14c00f41d18">FXLC95000_BUILD_ID</a></div><div class="ttdeci">#define FXLC95000_BUILD_ID</div><div class="ttdoc">The FXLC95000 BCD encoded ISF1.1_95k_Build_ID. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00024">fxlc95000.h:24</a></div></div>
78<div class="ttc" id="a00419_html_a9084748d1447e0b41b4bee21e3687911"><div class="ttname"><a href="a00419.html#a9084748d1447e0b41b4bee21e3687911">bFxlc95000Flashing</a></div><div class="ttdeci">volatile bool bFxlc95000Flashing</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00101">fxlc95000_flash_demo.c:101</a></div></div>
79<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>
80<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>
81<div class="ttc" id="a00578_html_a1a6866b34518a8b261ac338c52f597be"><div class="ttname"><a href="a00578.html#a1a6866b34518a8b261ac338c52f597be">HOST_S_SIGNAL_EVENT</a></div><div class="ttdeci">#define HOST_S_SIGNAL_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00094">frdm_k64f.h:94</a></div></div>
82<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fxlc95000_drv.h</a></div><div class="ttdoc">The fxlc95000_drv.h file describes the FXLC95000L driver interface and structures. </div></div>
83<div class="ttc" id="a01235_html"><div class="ttname"><a href="a01235.html">fxlc95000_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="a00041_source.html#l00044">fxlc95000_drv.h:44</a></div></div>
84<div class="ttc" id="a00038_html_ae354fc2aafbf7609f21ebc8cf2538db0"><div class="ttname"><a href="a00038.html#ae354fc2aafbf7609f21ebc8cf2538db0">FXLC95000_I2C_CheckRomMode</a></div><div class="ttdeci">int32_t FXLC95000_I2C_CheckRomMode(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress)</div><div class="ttdoc">The interface function to check if the sensor is in ROM CI Mode. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00190">fxlc95000_drv.c:190</a></div></div>
85<div class="ttc" id="a00098_html_a68a2c033a0f6f967149dca76897f5c8a"><div class="ttname"><a href="a00098.html#a68a2c033a0f6f967149dca76897f5c8a">Host_IO_Add_ISO_Header</a></div><div class="ttdeci">void Host_IO_Add_ISO_Header(uint8_t streamID, uint8_t *pStreamingPacket, size_t sizePayload)</div><div class="ttdef"><b>Definition:</b> <a href="a00098_source.html#l00086">host_io_uart.c:86</a></div></div>
86<div class="ttc" id="a00038_html_a32b4c71a3c3cbef9999416fdb83dc054"><div class="ttname"><a href="a00038.html#a32b4c71a3c3cbef9999416fdb83dc054">FXLC95000_I2C_Initialize</a></div><div class="ttdeci">int32_t FXLC95000_I2C_Initialize(fxlc95000_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint16_t buildId)</div><div class="ttdoc">The interface function to initialize the sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00338">fxlc95000_drv.c:338</a></div></div>
87<div class="ttc" id="a00038_html_a7d31c709c8c3637ebfa48265b0347e77"><div class="ttname"><a href="a00038.html#a7d31c709c8c3637ebfa48265b0347e77">FXLC95000_I2C_SetIdleTask</a></div><div class="ttdeci">void FXLC95000_I2C_SetIdleTask(fxlc95000_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="a00038_source.html#l00381">fxlc95000_drv.c:381</a></div></div>
88<div class="ttc" id="a00038_html_a871aa55982b73b6f38f5bfa87a3c070e"><div class="ttname"><a href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a></div><div class="ttdeci">int32_t FXLC95000_I2C_FlashCommands(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, const registercommandlist_t *pCommandList)</div><div class="ttdoc">The interface function to write ROM CI Commands. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00211">fxlc95000_drv.c:211</a></div></div>
89<div class="ttc" id="a00101_html_aa62371d642974c67a0c0efa77d54fcbdac754b0ceb83c36e127a1f5367f87c857"><div class="ttname"><a href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdac754b0ceb83c36e127a1f5367f87c857">HOST_CMD_FLASH_BYTES</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00105">host_io_uart.h:105</a></div></div>
90<div class="ttc" id="a00035_html_a7dd6d95c7cb49dea36ed39aa01a88080"><div class="ttname"><a href="a00035.html#a7dd6d95c7cb49dea36ed39aa01a88080">FXLC95000_ACCEL_RESOLUTION_14_BIT</a></div><div class="ttdeci">#define FXLC95000_ACCEL_RESOLUTION_14_BIT</div><div class="ttdoc">The FXLC95000 Resoultion 14-Bit. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00069">fxlc95000.h:69</a></div></div>
91<div class="ttc" id="a00038_html_a0ad7b40a417661e25cdee37caccc21a6"><div class="ttname"><a href="a00038.html#a0ad7b40a417661e25cdee37caccc21a6">FXLC95000_I2C_FlashPayload</a></div><div class="ttdeci">int32_t FXLC95000_I2C_FlashPayload(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *pFlashBytes, uint8_t numBytes)</div><div class="ttdoc">The interface function to write ROM CI Data Payload. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00235">fxlc95000_drv.c:235</a></div></div>
92<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>
93<div class="ttc" id="a00101_html_aa62371d642974c67a0c0efa77d54fcbda4ee754c0668db952b3ef861a54213db2"><div class="ttname"><a href="a00101.html#aa62371d642974c67a0c0efa77d54fcbda4ee754c0668db952b3ef861a54213db2">HOST_CMD_FLASH_STOP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00106">host_io_uart.h:106</a></div></div>
94<div class="ttc" id="a00419_html_adf41b2857036247c970bc8594b6a636a"><div class="ttname"><a href="a00419.html#adf41b2857036247c970bc8594b6a636a">APPLICATION_NAME</a></div><div class="ttdeci">#define APPLICATION_NAME</div><div class="ttdoc">Unique Name for this application which should match the target GUI pkg name. </div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00047">fxlc95000_flash_demo.c:47</a></div></div>
95<div class="ttc" id="a00428_html_a3f472fff7261e46e432beb76fa314b4c"><div class="ttname"><a href="a00428.html#a3f472fff7261e46e432beb76fa314b4c">streamingPacket</a></div><div class="ttdeci">uint8_t streamingPacket[STREAMING_HEADER_LEN+FXLS8962_STREAM_DATA_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00174">fxls8962_demo.c:174</a></div></div>
96<div class="ttc" id="a00098_html_a719ad6da4502e713f1573b5353af9617"><div class="ttname"><a href="a00098.html#a719ad6da4502e713f1573b5353af9617">Host_IO_Send</a></div><div class="ttdeci">void Host_IO_Send(uint8_t *pMsg, size_t size, uint8_t encoding)</div><div class="ttdef"><b>Definition:</b> <a href="a00098_source.html#l00136">host_io_uart.c:136</a></div></div>
97<div class="ttc" id="a04823_html_a95285f14f6707e326e523c82d926c900"><div class="ttname"><a href="a04823.html#a95285f14f6707e326e523c82d926c900">BOARD_RunADS</a></div><div class="ttdeci">void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)</div><div class="ttdoc">The function to register Application Name and initialte ADS. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00917">auto_detection_service.c:917</a></div></div>
98<div class="ttc" id="a00101_html_a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da"><div class="ttname"><a href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00074">host_io_uart.h:74</a></div></div>
99<div class="ttc" id="a00419_html_aaf56ae4c156374e195890d3459adda93"><div class="ttname"><a href="a00419.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a></div><div class="ttdeci">volatile bool bStreamingEnabled</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00100">fxlc95000_flash_demo.c:100</a></div></div>
100<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>
101<div class="ttc" id="a00101_html_a6a3695a33b82875d8285b40c8c417de1"><div class="ttname"><a href="a00101.html#a6a3695a33b82875d8285b40c8c417de1">HOST_PRO_INT_DEV_TAG</a></div><div class="ttdeci">#define HOST_PRO_INT_DEV_TAG</div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00059">host_io_uart.h:59</a></div></div>
102<div class="ttc" id="a00419_html_a70385ff3e0081022336573247e5ecaec"><div class="ttname"><a href="a00419.html#a70385ff3e0081022336573247e5ecaec">embAppName</a></div><div class="ttdeci">char embAppName[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00099">fxlc95000_flash_demo.c:99</a></div></div>
103<div class="ttc" id="a00419_html_a79b77394af78f7d1f1304e08d644144f"><div class="ttname"><a href="a00419.html#a79b77394af78f7d1f1304e08d644144f">bFxlc95000Ready</a></div><div class="ttdeci">volatile bool bFxlc95000Ready</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00100">fxlc95000_flash_demo.c:100</a></div></div>
104<div class="ttc" id="a00419_html_a570c228e5cf99b3536ae309b429e16f1"><div class="ttname"><a href="a00419.html#a570c228e5cf99b3536ae309b429e16f1">cFxlc95000FlashPostprocess</a></div><div class="ttdeci">const registercommandlist_t cFxlc95000FlashPostprocess[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00086">fxlc95000_flash_demo.c:86</a></div></div>
105<div class="ttc" id="a00179_html_a7b68cad1d117c3169c9a52eede1435f9"><div class="ttname"><a href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a></div><div class="ttdeci">#define __END_WRITE_CMD__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00057">sensor_drv.h:57</a></div></div>
106<div class="ttc" id="a00419_html_a1c419755be00b2aebbd8d31da9b66142"><div class="ttname"><a href="a00419.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a></div><div class="ttdeci">char shieldString[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00098">fxlc95000_flash_demo.c:98</a></div></div>
107<div class="ttc" id="a00419_html_a0bf326d91d9eb8eb378426c1e80a738a"><div class="ttname"><a href="a00419.html#a0bf326d91d9eb8eb378426c1e80a738a">fxlc95000_odrCallback</a></div><div class="ttdeci">#define fxlc95000_odrCallback</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00042">fxlc95000_flash_demo.c:42</a></div></div>
108<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>
109<div class="ttc" id="a00419_html_a297e2dd54b61ba7479d116917c78c35f"><div class="ttname"><a href="a00419.html#a297e2dd54b61ba7479d116917c78c35f">FXLC95000_SAMPLE_SIZE</a></div><div class="ttdeci">#define FXLC95000_SAMPLE_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00044">fxlc95000_flash_demo.c:44</a></div></div>
110<div class="ttc" id="a04832_html_a4296d0603c5898f7baef119cbfe42858"><div class="ttname"><a href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a></div><div class="ttdeci">#define ADS_MAX_STRING_LENGTH</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00024">auto_detection_service.h:24</a></div></div>
111<div class="ttc" id="a00101_html_aa62371d642974c67a0c0efa77d54fcbdaaa509d318c5904c4ddd5f235dd4ecbb3"><div class="ttname"><a href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdaaa509d318c5904c4ddd5f235dd4ecbb3">HOST_CMD_STOP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00103">host_io_uart.h:103</a></div></div>
112<div class="ttc" id="a00035_html_aa20bc5ad577b44539fc874896bae51bd"><div class="ttname"><a href="a00035.html#aa20bc5ad577b44539fc874896bae51bd">FXLC95000_SST_ODR_PAYLOAD</a></div><div class="ttdeci">#define FXLC95000_SST_ODR_PAYLOAD(x)</div><div class="ttdoc">The FXLC95000 Set Report Rate Payload Bytes. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00051">fxlc95000.h:51</a></div></div>
113<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>
114<div class="ttc" id="a04337_html_ab72ca53100f11826f5060580d7223410"><div class="ttname"><a href="a04337.html#ab72ca53100f11826f5060580d7223410">SHIELD_NAME</a></div><div class="ttdeci">#define SHIELD_NAME</div><div class="ttdef"><b>Definition:</b> <a href="a04337_source.html#l00019">frdm_fxs_mult2b_shield.h:19</a></div></div>
115<div class="ttc" id="a00101_html_a831b5795adf211dfa086182261563b02a8366e2825abb54c66e88fc32b1198d38"><div class="ttname"><a href="a00101.html#a831b5795adf211dfa086182261563b02a8366e2825abb54c66e88fc32b1198d38">HOST_MSG_CMD_ACT_OFFSET</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00086">host_io_uart.h:86</a></div></div>
116<div class="ttc" id="a00035_html_a08e8740270f1e171cbb8e06d31b3e605"><div class="ttname"><a href="a00035.html#a08e8740270f1e171cbb8e06d31b3e605">FXLC95000_SAMPLE_OFFSET</a></div><div class="ttdeci">#define FXLC95000_SAMPLE_OFFSET</div><div class="ttdoc">Time stamp and XYZ Data Register Offset. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00015">fxlc95000.h:15</a></div></div>
117<div class="ttc" id="a00419_html_aaa75b0694ad30a3681f7d90f3e531fb6"><div class="ttname"><a href="a00419.html#aaa75b0694ad30a3681f7d90f3e531fb6">bFxlc95000Boot</a></div><div class="ttdeci">volatile bool bFxlc95000Boot</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00100">fxlc95000_flash_demo.c:100</a></div></div>
118<div class="ttc" id="a00419_html_a0cf179d83c991ed57e508751b71aaaf9"><div class="ttname"><a href="a00419.html#a0cf179d83c991ed57e508751b71aaaf9">cFxlc95000ConfigSensor</a></div><div class="ttdeci">const registercommandlist_t cFxlc95000ConfigSensor[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00070">fxlc95000_flash_demo.c:70</a></div></div>
119<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>
120<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>
121<div class="ttc" id="a00419_html_a868ff2a7606d02288b18d3b7c21ebce6"><div class="ttname"><a href="a00419.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a></div><div class="ttdeci">uint8_t gStreamID</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00104">fxlc95000_flash_demo.c:104</a></div></div>
122<div class="ttc" id="a00101_html_aa62371d642974c67a0c0efa77d54fcbdad21ec4aaa4b423f27e0f5379976ccc54"><div class="ttname"><a href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdad21ec4aaa4b423f27e0f5379976ccc54">HOST_CMD_FLASH_START</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00104">host_io_uart.h:104</a></div></div>
123<div class="ttc" id="a00530_html_ad43629969994e92bd3620e630bda24c8"><div class="ttname"><a href="a00530.html#ad43629969994e92bd3620e630bda24c8">BOARD_SystickEnable</a></div><div class="ttdeci">void BOARD_SystickEnable(void)</div><div class="ttdoc">Function to enable systicks framework. </div><div class="ttdef"><b>Definition:</b> <a href="a00530_source.html#l00035">systick_utils.c:35</a></div></div>
124<div class="ttc" id="a00101_html_adc72f7a14386aae7a4025ca511c06f54"><div class="ttname"><a href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a></div><div class="ttdeci">#define STREAMING_HEADER_LEN</div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00025">host_io_uart.h:25</a></div></div>
125<div class="ttc" id="a00035_html_aef528735dcb9ab7b757e1cd81c95e953"><div class="ttname"><a href="a00035.html#aef528735dcb9ab7b757e1cd81c95e953">FXLC95000_SET_RANGE_CMD_HDR</a></div><div class="ttdeci">#define FXLC95000_SET_RANGE_CMD_HDR</div><div class="ttdoc">The FXLC95000 Set Range Command Header Bytes. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00048">fxlc95000.h:48</a></div></div>
126<div class="ttc" id="a00419_html_a6efa9917d91d75dcb9036443bc2483cd"><div class="ttname"><a href="a00419.html#a6efa9917d91d75dcb9036443bc2483cd">APPLICATION_VERSION</a></div><div class="ttdeci">#define APPLICATION_VERSION</div><div class="ttdoc">Version to distinguish between instances the same application based on target Shield and updates...</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00049">fxlc95000_flash_demo.c:49</a></div></div>
127<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>
128<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>
129<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>
130<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>
131<div class="ttc" id="a00533_html"><div class="ttname"><a href="a00533.html">systick_utils.h</a></div><div class="ttdoc">ARM Systick Utilities. </div></div>
132<div class="ttc" id="a00419_html_ac61bf859f26cd2541c3958bff34e2bda"><div class="ttname"><a href="a00419.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a></div><div class="ttdeci">GENERIC_DRIVER_GPIO * pGpioDriver</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00105">fxlc95000_flash_demo.c:105</a></div></div>
133<div class="ttc" id="a00419_html_a5adbb7857ac15f77e77c88801840cd33"><div class="ttname"><a href="a00419.html#a5adbb7857ac15f77e77c88801840cd33">bFxlc95000DataReady</a></div><div class="ttdeci">volatile bool bFxlc95000DataReady</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00100">fxlc95000_flash_demo.c:100</a></div></div>
134<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>
135<div class="ttc" id="a00038_html_a7ce291d9339bc2515ada199ee4c53692"><div class="ttname"><a href="a00038.html#a7ce291d9339bc2515ada199ee4c53692">FXLC95000_I2C_CommandResponse</a></div><div class="ttdeci">int32_t FXLC95000_I2C_CommandResponse(fxlc95000_i2c_sensorhandle_t *pSensorHandle, const registercommandlist_t *pCommandList, const registerreadlist_t *pResponseList, uint8_t *pBuffer)</div><div class="ttdoc">The interface function to read the sensor data. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00389">fxlc95000_drv.c:389</a></div></div>
136<div class="ttc" id="a04166_html_a7bae38ce2df969e54e7d59ceb9de9195"><div class="ttname"><a href="a04166.html#a7bae38ce2df969e54e7d59ceb9de9195">BOARD_DEBUG_UART_BAUDRATE</a></div><div class="ttdeci">#define BOARD_DEBUG_UART_BAUDRATE</div><div class="ttdef"><b>Definition:</b> <a href="a04166_source.html#l00031">board.h:31</a></div></div>
137<div class="ttc" id="a00419_html_a4d3c6a49cdb7699813aa88ce1bc3d7e5"><div class="ttname"><a href="a00419.html#a4d3c6a49cdb7699813aa88ce1bc3d7e5">fxlc95000_enSensor</a></div><div class="ttdeci">int fxlc95000_enSensor(fxlc95000_i2c_sensorhandle_t *pSensorHandle)</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00118">fxlc95000_flash_demo.c:118</a></div></div>
138<div class="ttc" id="a00419_html_a0076d28c9a17cd6908c7b3b0f5c6006c"><div class="ttname"><a href="a00419.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a></div><div class="ttdeci">bool process_host_command(uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00154">fxlc95000_flash_demo.c:154</a></div></div>
139<div class="ttc" id="a00035_html_a021caba130784fb8ae75a0d05496e92c"><div class="ttname"><a href="a00035.html#a021caba130784fb8ae75a0d05496e92c">FXLC95000_SET_ODR_CMD_HDR</a></div><div class="ttdeci">#define FXLC95000_SET_ODR_CMD_HDR</div><div class="ttdoc">The FXLC95000 Set Report Rate Command Header Bytes. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00042">fxlc95000.h:42</a></div></div>
140<div class="ttc" id="a00101_html_a24c0ee2064102a8de73651950dd9fbcb"><div class="ttname"><a href="a00101.html#a24c0ee2064102a8de73651950dd9fbcb">HOST_PRO_INT_CMD_TAG</a></div><div class="ttdeci">#define HOST_PRO_INT_CMD_TAG</div><div class="ttdoc">Bit aligned values for Host Protocol Interface IDs (Bits 5-6). </div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00057">host_io_uart.h:57</a></div></div>
141<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>
142<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>
143<div class="ttc" id="a00419_html_a5e68cea9a9e1e5c61e4d586ae000b42a"><div class="ttname"><a href="a00419.html#a5e68cea9a9e1e5c61e4d586ae000b42a">cFxlc95000FlashPreprocess</a></div><div class="ttdeci">const registercommandlist_t cFxlc95000FlashPreprocess[]</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00079">fxlc95000_flash_demo.c:79</a></div></div>
144<div class="ttc" id="a00419_html_a01ae59adc030ea522c6f12807f91fd46"><div class="ttname"><a href="a00419.html#a01ae59adc030ea522c6f12807f91fd46">SAMPLING_RATE_ms</a></div><div class="ttdeci">#define SAMPLING_RATE_ms</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00043">fxlc95000_flash_demo.c:43</a></div></div>
145<div class="ttc" id="a00101_html_a831b5795adf211dfa086182261563b02aa7fc80700bf9fa14ef02fd298fb660e7"><div class="ttname"><a href="a00101.html#a831b5795adf211dfa086182261563b02aa7fc80700bf9fa14ef02fd298fb660e7">HOST_MSG_LEN_LSB_OFFSET</a></div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00084">host_io_uart.h:84</a></div></div>
146<div class="ttc" id="a00578_html_a8d15df9aa13a779003e27e835a001f60"><div class="ttname"><a href="a00578.html#a8d15df9aa13a779003e27e835a001f60">HOST_S_DRIVER</a></div><div class="ttdeci">#define HOST_S_DRIVER</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00093">frdm_k64f.h:93</a></div></div>
147<div class="ttc" id="a00419_html_a9b78a5d2f4ff56f46d49c085be00bf8b"><div class="ttname"><a href="a00419.html#a9b78a5d2f4ff56f46d49c085be00bf8b">fxlc95000Driver</a></div><div class="ttdeci">fxlc95000_i2c_sensorhandle_t fxlc95000Driver</div><div class="ttdef"><b>Definition:</b> <a href="a00419_source.html#l00102">fxlc95000_flash_demo.c:102</a></div></div>
148<div class="ttc" id="a00035_html_aae2028502307a7f42ae22f7e2703dfa2"><div class="ttname"><a href="a00035.html#aae2028502307a7f42ae22f7e2703dfa2">FXLC95000_ACCEL_RANGE_2G</a></div><div class="ttdeci">#define FXLC95000_ACCEL_RANGE_2G</div><div class="ttdoc">The FXLC95000 FS Range 2G. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00054">fxlc95000.h:54</a></div></div>
149</div><!-- fragment --></div><!-- contents -->
150
151<hr class="footer"/><address class="footer"><small>
152&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
153</small></address>
154</body>
155</html>
156