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/fxls8962_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  <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">fxls8962_demo.c</div> </div> 49</div><!--header--> 50<div class="contents"> 51<a href="a00428.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * @file fxls8962_demo.c</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * @brief The fxls8962_demo.c file implements the ISSDK FXLS8962 sensor</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * demo example demonstration with interrupt mode.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// SDK Includes</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "board.h"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "pin_mux.h"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "clock_config.h"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// CMSIS Includes</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "Driver_I2C.h"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "Driver_USART.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// ISSDK Includes</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "issdk_hal.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "gpio_driver.h"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="a00059.html">fxls8962_drv.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="a00101.html">host_io_uart.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="a00533.html">systick_utils.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "auto_detection_service.h"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">// Macros</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="a00428.html#a39cbf8cdda1114b33641d3a36c489b89"> 41</a></span> <span class="preprocessor">#define FXLS8962_DATA_SIZE 8</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="a00428.html#a04343f892dc6b048e51081ed3b5ea3e8"> 42</a></span> <span class="preprocessor">#define FXLS8962_STREAM_DATA_SIZE 12</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="a00428.html#ac71e9c7fb71985479f1ffc6a4cc241e6"> 43</a></span> <span class="preprocessor">#define FXLS8962_STREAM_SELF_TEST_SIZE 18</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">/*! @brief Unique Name for this application which should match the target GUI pkg name. */</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="a00428.html#adf41b2857036247c970bc8594b6a636a"> 45</a></span> <span class="preprocessor">#define APPLICATION_NAME "FXLS8962 Accelerometer Demo"</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <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="l00047"></a><span class="lineno"><a class="line" href="a00428.html#a6efa9917d91d75dcb9036443bc2483cd"> 47</a></span> <span class="preprocessor">#define APPLICATION_VERSION "2.5"</span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="a00428.html#a1568099a2871ab220d4016cc328ebb99"> 48</a></span> <span class="preprocessor">#define HOST_CMD_RESET 6 </span><span class="comment">/* 6 (Reset Sensor) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="a00428.html#a21ddfe1c7f9205f1e9d8d742587cdc8f"> 49</a></span> <span class="preprocessor">#define HOST_CMD_SELFTEST 7 </span><span class="comment">/* 7 (Self Test Sensor) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"></span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">/*! @brief This structure defines the fxls8962 raw data buffer.*/</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="a03883.html"> 52</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> {</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="a03883.html#ab20b0c7772544cf5d318507f34231fbe"> 54</a></span>  uint32_t <a class="code" href="a03883.html#ab20b0c7772544cf5d318507f34231fbe">timestamp</a>; <span class="comment">/*! The time, this sample was recorded. */</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="a03883.html#a661660001effc417fb684db96e973688"> 55</a></span>  int16_t accel[3]; <span class="comment">/*!< The accel data */</span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="a03883.html#a5df4eecddeaf753c71e3eb7c1be3eb11"> 56</a></span>  uint8_t <a class="code" href="a03883.html#a5df4eecddeaf753c71e3eb7c1be3eb11">sdcd</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="a03883.html#a029a87658f39852c58465c723e31eb29"> 57</a></span>  int8_t <a class="code" href="a03883.html#a029a87658f39852c58465c723e31eb29">temp</a>;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab"> 58</a></span>  int16_t <a class="code" href="a00338.html#a2f69cd2dc81c3a7769cc8280ce11e389">selftest</a>[3];</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> } <a class="code" href="a03883.html">fxls8962_acceldataUser_t</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// Constants</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">//-----------------------------------------------------------------------</span><span class="comment"></span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment">/*! @brief Register settings for Interrupt (non buffered) mode. */</span></div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="a00428.html#af4a03c246f6c11a2411cd22de2d749d1"> 65</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#af4a03c246f6c11a2411cd22de2d749d1">cFxls8962ConfigNormal</a>[] = {</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">/* Set Full-scale range as 4G. */</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a4f492a0fcea7e9e841f04e36ca3cec6e">FXLS8962_SENS_CONFIG1_FSR_4G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">/* Clear SENS_CONFIG2 */</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba7f4d4a8123af029731acab8d30fe1eeb">FXLS8962_SENS_CONFIG2</a>, 0x00, 0x00},</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">/* Disable Self-Test. */</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#ae87f252c4c7559bd12c3f182ee23a381">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_DISABLED</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">/* Set Wake Mode ODR Rate as 12.5Hz. */</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba4def66a00435c85f1411a941fd23aa95">FXLS8962_SENS_CONFIG3</a>, <a class="code" href="a00053.html#aca05330e87748ec0a6ac55ece8774592">FXLS8962_SENS_CONFIG3_WAKE_ODR_12_5HZ</a>, <a class="code" href="a00053.html#a72bffaf55ce0fe60a398f0ef5350134c">FXLS8962_SENS_CONFIG3_WAKE_ODR_MASK</a>},</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">/* Enable Interrupts for Data Ready Events. */</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba2ebe52291cb8a1a2d6b59a6dcb62df24">FXLS8962_INT_EN</a>, <a class="code" href="a00053.html#ac10b99cca5c95f882ba757fd2a8897ac">FXLS8962_INT_EN_DRDY_EN_EN</a>, <a class="code" href="a00053.html#a2558f5047f39c3f1545e6f3f678a3b0d">FXLS8962_INT_EN_DRDY_EN_MASK</a>},</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">/* Enable Temperature sensor. */</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba7f4d4a8123af029731acab8d30fe1eeb">FXLS8962_SENS_CONFIG2</a>,<a class="code" href="a00053.html#adf40d9101b02ea10a7e0bfd763b63ba6">FXLS8962_SENS_CONFIG2_ANIC_TEMP_EN</a>,<a class="code" href="a00053.html#ab1a926ce744cc291da66b0b82e560f8f">FXLS8962_SENS_CONFIG2_ANIC_TEMP_MASK</a>},</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">/* Set Self-Test ODR to 100 Hz. */</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {0x38,0x05,0x00},</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {0x2F,0x38,0x00},</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {0x30,0xD8,0x00},</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {0x33,0xC0,0x00},</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {0x34,0x0F,0x00},</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {0x35,0x40,0x00},</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"></span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment">/*! @brief Register settings for Interrupt (non buffered) mode. */</span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="a00428.html#a2acb8a0b51b9b19ea6fd7d3d09ef5622"> 88</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#a2acb8a0b51b9b19ea6fd7d3d09ef5622">cFxls8962ConfigNormal2</a>[] = {</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">/* Disable Self-Test. */</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#ae87f252c4c7559bd12c3f182ee23a381">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_DISABLED</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">/* Set Wake Mode ODR Rate as 12.5Hz. */</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba4def66a00435c85f1411a941fd23aa95">FXLS8962_SENS_CONFIG3</a>, <a class="code" href="a00053.html#aca05330e87748ec0a6ac55ece8774592">FXLS8962_SENS_CONFIG3_WAKE_ODR_12_5HZ</a>, <a class="code" href="a00053.html#a72bffaf55ce0fe60a398f0ef5350134c">FXLS8962_SENS_CONFIG3_WAKE_ODR_MASK</a>},</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">/* Enable Interrupts for Data Ready Events. */</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba2ebe52291cb8a1a2d6b59a6dcb62df24">FXLS8962_INT_EN</a>, <a class="code" href="a00053.html#ac10b99cca5c95f882ba757fd2a8897ac">FXLS8962_INT_EN_DRDY_EN_EN</a>, <a class="code" href="a00053.html#a2558f5047f39c3f1545e6f3f678a3b0d">FXLS8962_INT_EN_DRDY_EN_MASK</a>},</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">/* Enable Temperature sensor. */</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba7f4d4a8123af029731acab8d30fe1eeb">FXLS8962_SENS_CONFIG2</a>,<a class="code" href="a00053.html#adf40d9101b02ea10a7e0bfd763b63ba6">FXLS8962_SENS_CONFIG2_ANIC_TEMP_EN</a>,<a class="code" href="a00053.html#ab1a926ce744cc291da66b0b82e560f8f">FXLS8962_SENS_CONFIG2_ANIC_TEMP_MASK</a>},</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">/* Set Self-Test ODR to 100 Hz. */</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {0x38,0x05,0x00},</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="a00428.html#aba0697446c816ceefc9c411091e9b29a"> 101</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#aba0697446c816ceefc9c411091e9b29a">cFxls896216G</a>[] = {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">/* Disable Self-Test. */</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#ae87f252c4c7559bd12c3f182ee23a381">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_DISABLED</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">/* Set Full-scale range as 16G. */</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">/* Enable Interrupts for Data Ready Events. */</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba2ebe52291cb8a1a2d6b59a6dcb62df24">FXLS8962_INT_EN</a>, <a class="code" href="a00053.html#ac10b99cca5c95f882ba757fd2a8897ac">FXLS8962_INT_EN_DRDY_EN_EN</a>, <a class="code" href="a00053.html#a2558f5047f39c3f1545e6f3f678a3b0d">FXLS8962_INT_EN_DRDY_EN_MASK</a>},</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">/* Enable Temperature sensor. */</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba7f4d4a8123af029731acab8d30fe1eeb">FXLS8962_SENS_CONFIG2</a>,<a class="code" href="a00053.html#adf40d9101b02ea10a7e0bfd763b63ba6">FXLS8962_SENS_CONFIG2_ANIC_TEMP_EN</a>,<a class="code" href="a00053.html#ab1a926ce744cc291da66b0b82e560f8f">FXLS8962_SENS_CONFIG2_ANIC_TEMP_MASK</a>},</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">/* Set Self-Test ODR to 100 Hz. */</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {0x38,0x05,0x00},</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"></span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment">/*! @brief Register settings for Self-Test in X Axis (Positive polarity). */</span></div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="a00428.html#a9e995fd68713446ee645b65c5fd632d0"> 115</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#a9e995fd68713446ee645b65c5fd632d0">cFxls8962STXP</a>[] = {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="comment">/* Set Self Test Axis. */</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a2c79d91311962f2eb69d2333b1396726">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_X</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a365862578ad57e69106aa46e688fda8d">FXLS8962_SENS_CONFIG1_ST_POL_POSITIVE</a>, <a class="code" href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a>},</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"></span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">/*! @brief Register settings for Self-Test in X Axis (Negative polarity). */</span></div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="a00428.html#af8bc36894d75bec8a9eab609dea20baa"> 123</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#af8bc36894d75bec8a9eab609dea20baa">cFxls8962STXN</a>[] = {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="comment">/* Set Self Test Axis. */</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a2c79d91311962f2eb69d2333b1396726">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_X</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a40cdfb2b5bc9fbc8115b145a5ac99f2e">FXLS8962_SENS_CONFIG1_ST_POL_NEGATIVE</a>, <a class="code" href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a>},</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"></span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment">/*! @brief Register settings for Self-Test in Y Axis (Positive polarity). */</span></div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="a00428.html#afb1eb0af4acdfd7558ae2daf04b09a36"> 131</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#afb1eb0af4acdfd7558ae2daf04b09a36">cFxls8962STYP</a>[] = {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="comment">/* Set Self Test Axis. */</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a43be12b2b59535541533bf490e0f2aed">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Y</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a365862578ad57e69106aa46e688fda8d">FXLS8962_SENS_CONFIG1_ST_POL_POSITIVE</a>,<a class="code" href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a>},</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"></span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment">/*! @brief Register settings for Self-Test in Y Axis (Negative polarity). */</span></div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="a00428.html#a49f60997dac3cb04aadc24bf94c42dc1"> 139</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#a49f60997dac3cb04aadc24bf94c42dc1">cFxls8962STYN</a>[] = {</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="comment">/* Set Self Test Axis. */</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a43be12b2b59535541533bf490e0f2aed">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Y</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a40cdfb2b5bc9fbc8115b145a5ac99f2e">FXLS8962_SENS_CONFIG1_ST_POL_NEGATIVE</a>, <a class="code" href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a>},</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"></span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment">/*! @brief Register settings for Self-Test in Z Axis (Positive polarity). */</span></div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="a00428.html#aaad632a5d66cd499ea6e6b932e2900d6"> 147</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#aaad632a5d66cd499ea6e6b932e2900d6">cFxls8962STZP</a>[] = {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">/* Set Self Test Axis. */</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#af43bac310e0dc8f47eda742eb21d9598">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Z</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a365862578ad57e69106aa46e688fda8d">FXLS8962_SENS_CONFIG1_ST_POL_POSITIVE</a>, <a class="code" href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a>},</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"></span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment">/*! @brief Register settings for Self-Test in Z Axis (Negative polarity). */</span></div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="a00428.html#a19cff265869e1ac9bc4b3d168707be70"> 155</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00428.html#a19cff265869e1ac9bc4b3d168707be70">cFxls8962STZN</a>[] = {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">/* Set Self Test Axis. */</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a>, <a class="code" href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a>},</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#af43bac310e0dc8f47eda742eb21d9598">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Z</a>, <a class="code" href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a>},</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  {<a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a40cdfb2b5bc9fbc8115b145a5ac99f2e">FXLS8962_SENS_CONFIG1_ST_POL_NEGATIVE</a>, <a class="code" href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a>},</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"></span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment">/*! @brief Address of Raw Accel Data in Normal Mode. */</span></div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="a00428.html#a0e69354ed8baa6d0d08286a179c0616d"> 163</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00428.html#a0e69354ed8baa6d0d08286a179c0616d">cFxls8962OutputNormal</a>[] = {{.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baada3aa43d39f816bb64ef724658bcfcc">FXLS8962_INT_STATUS</a>, .numBytes = <a class="code" href="a00428.html#a39cbf8cdda1114b33641d3a36c489b89">FXLS8962_DATA_SIZE</a>},</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment">// Global Variables</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="a00428.html#a1c419755be00b2aebbd8d31da9b66142"> 169</a></span> <span class="keywordtype">char</span> <a class="code" href="a00428.html#a44681c771b24906b93d52a830b4ec968">boardString</a>[<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {0}, <a class="code" href="a00428.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>[<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {0},</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="a00428.html#a70385ff3e0081022336573247e5ecaec"> 170</a></span>  <a class="code" href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>[<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {0};</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="a00428.html#aaf56ae4c156374e195890d3459adda93"> 171</a></span> <span class="keyword">volatile</span> <span class="keywordtype">bool</span> <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> = <span class="keyword">false</span>, <a class="code" href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a> = <span class="keyword">false</span>, <a class="code" href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6"> 172</a></span> uint8_t <a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>; <span class="comment">/* The auto assigned Stream ID. */</span></div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="a00428.html#ac61bf859f26cd2541c3958bff34e2bda"> 173</a></span> <a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a00428.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a> = &<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6"> 174</a></span> uint8_t <a class="code" href="a00428.html#a0155cf01983779a6f386fb8eac40d37c">data</a>[<a class="code" href="a00428.html#a39cbf8cdda1114b33641d3a36c489b89">FXLS8962_DATA_SIZE</a>], <a class="code" href="a00428.html#a3f472fff7261e46e432beb76fa314b4c">streamingPacket</a>[<a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a> + <a class="code" href="a00428.html#a04343f892dc6b048e51081ed3b5ea3e8">FXLS8962_STREAM_DATA_SIZE</a>],<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a>[<a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a> + <a class="code" href="a00428.html#ac71e9c7fb71985479f1ffc6a4cc241e6">FXLS8962_STREAM_SELF_TEST_SIZE</a>];</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="a00428.html#a7f64af0b42fb84db946009e4de018a6e"> 175</a></span> <a class="code" href="a03883.html">fxls8962_acceldataUser_t</a> <a class="code" href="a00428.html#a7f64af0b42fb84db946009e4de018a6e">rawData</a> = {.<a class="code" href="a03883.html#ab20b0c7772544cf5d318507f34231fbe">timestamp</a> = 0};</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="a00428.html#a4780e13298b0fd7b98db6f974e8e5388"> 176</a></span> <a class="code" href="a01847.html">fxls8962_i2c_sensorhandle_t</a> <a class="code" href="a00428.html#a4780e13298b0fd7b98db6f974e8e5388">fxls8962Driver</a>;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c"> 177</a></span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>, <a class="code" href="a00428.html#aafa5fcc299fb9a0db111332f5111b7df">gSystick</a>;</div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="a00428.html#a53f283eae4320de34a747e6d74d302c1"> 178</a></span> <span class="keywordtype">int</span> <a class="code" href="a00428.html#a4ffd470e0f1e97c32d1ab2f612a42a7c">st_on</a> =0, <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=0;</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="a00428.html#a4a87b28c0c30a751c1fd6ec6d4f39f1c"> 179</a></span> int16_t <a class="code" href="a00428.html#a6b9ad1ff43bfcb3a5f523a0d384afa6c">st_xp</a>,<a class="code" href="a00428.html#a42e7e170ace50624d1373abbe0796653">st_yp</a>,<a class="code" href="a00428.html#a4a87b28c0c30a751c1fd6ec6d4f39f1c">st_zp</a>,<a class="code" href="a00428.html#aef7713d27866c23178912fe8ee9750c3">st_xn</a>,<a class="code" href="a00428.html#aa6f173ca6371f7d5149400252bc8056a">st_yn</a>,<a class="code" href="a00428.html#a45214ce8f1bfb0e042051c53f1656a4c">st_zn</a>,<a class="code" href="a00428.html#a67fc9c5c7e5b2b294e38be1aedf19897">st_dx</a>,<a class="code" href="a00428.html#acc0ad824fd441638baf26ba29772c443">st_dy</a>,<a class="code" href="a00428.html#acc0ad824fd441638baf26ba29772c443">st_dy</a>;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6"> 180</a></span> <span class="keywordtype">float</span> <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment">// Functions</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment">/* This is the Sensor Data Ready ISR implementation.*/</span></div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="a00428.html#a3d09c9a2c89dd136c09a897c541854b7"> 186</a></span> <span class="keywordtype">void</span> <a class="code" href="a00428.html#a3d09c9a2c89dd136c09a897c541854b7">fxls8962_int_data_ready_callback</a>(<span class="keywordtype">void</span> *pUserData)</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> { <span class="comment">/*! @brief Set flag to indicate Sensor has signalled data ready. */</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> }</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment">/* Handler for Device Info and Streaming Control Commands. */</span></div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="a00428.html#a0076d28c9a17cd6908c7b3b0f5c6006c"> 192</a></span> <span class="keywordtype">bool</span> <a class="code" href="a00428.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a>(</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  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="l00194"></a><span class="lineno"> 194</span> {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordtype">bool</span> success = <span class="keyword">false</span>;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">/* If it is Host requesting Device Info, send Board Name and Shield Name. */</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <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="l00199"></a><span class="lineno"> 199</span>  { <span class="comment">/* Byte 1 : Payload - Length of APPLICATION_NAME (b)</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> * Bytes=b : Payload Application Name</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"> * Byte b+1 : Payload - Length of BOARD_NAME (s)</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> * Bytes=s : Payload Board Name</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"> * Byte b+s+2 : Payload - Length of SHIELD_NAME (v)</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> * Bytes=v : Payload Shield Name */</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordtype">size_t</span> appNameLen = strlen(<a class="code" href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">size_t</span> boardNameLen = strlen(<a class="code" href="a00428.html#a44681c771b24906b93d52a830b4ec968">boardString</a>);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordtype">size_t</span> shieldNameLen = strlen(<a class="code" href="a00428.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">if</span> (respBufferSize >= boardNameLen + shieldNameLen + appNameLen + 3)</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  { <span class="comment">/* We have sufficient buffer. */</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  *hostMsgSize = 0;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  }</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  hostResponse[*hostMsgSize] = appNameLen;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  *hostMsgSize += 1;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  memcpy(hostResponse + *hostMsgSize, <a class="code" href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, appNameLen);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  *hostMsgSize += appNameLen;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  hostResponse[*hostMsgSize] = boardNameLen;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  *hostMsgSize += 1;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  memcpy(hostResponse + *hostMsgSize, <a class="code" href="a00428.html#a44681c771b24906b93d52a830b4ec968">boardString</a>, boardNameLen);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  *hostMsgSize += boardNameLen;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  hostResponse[*hostMsgSize] = shieldNameLen;</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  *hostMsgSize += 1;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  memcpy(hostResponse + *hostMsgSize, <a class="code" href="a00428.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>, shieldNameLen);</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  *hostMsgSize += shieldNameLen;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  }</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="comment">/* If it is Host sending Streaming Commands, take necessary actions. */</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <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>)) &&</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  (*hostMsgSize == <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="l00243"></a><span class="lineno"> 243</span>  { <span class="comment">/* Byte 1 : Payload - Operation Code (Start/Stop Operation Code)</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> * Byte 2 : Payload - Stream ID (Target Stream for carrying out operation) */</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <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="l00246"></a><span class="lineno"> 246</span>  {</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdabd87bb42bdfc53f57fa1afe1ef2eae30">HOST_CMD_START</a>:</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">if</span> (hostCommand[1] == <a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> && <a class="code" href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a> && <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> == <span class="keyword">false</span>)</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  {</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="code" href="a00530.html#ac4471deeef0c2a93b7d4263259b0ed63">BOARD_SystickStart</a>(&<a class="code" href="a00428.html#aafa5fcc299fb9a0db111332f5111b7df">gSystick</a>);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  success = <span class="keyword">true</span>;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">case</span> <a class="code" href="a00101.html#aa62371d642974c67a0c0efa77d54fcbdaaa509d318c5904c4ddd5f235dd4ecbb3">HOST_CMD_STOP</a>:</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">if</span> (hostCommand[1] == <a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> && <a class="code" href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a> && <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> == <span class="keyword">true</span>)</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  {</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  pGpioDriver-><a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  success = <span class="keyword">true</span>;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  }</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">case</span> <a class="code" href="a00428.html#a1568099a2871ab220d4016cc328ebb99">HOST_CMD_RESET</a>:</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">if</span> (hostCommand[1] == <a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> && <a class="code" href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a>)</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">do</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  {</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a> = <a class="code" href="a00056.html#a13160308eebd2dce90198d9f1388ad27">FXLS8962_I2C_DeInit</a>(&fxls8962Driver);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>)</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a> = <a class="code" href="a00056.html#a4a1889da307c324fcb8907b59fdf6c94">FXLS8962_I2C_Initialize</a>(&fxls8962Driver, &<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#a229f68d0d94ff8e21733702990dda68b">FXLS8962_I2C_ADDR</a>,</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a>);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> </div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>)</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a> = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962ConfigNormal2);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>)</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  success = <span class="keyword">true</span>;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  } <span class="keywordflow">while</span>(0);</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  }</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">case</span> <a class="code" href="a00428.html#a21ddfe1c7f9205f1e9d8d742587cdc8f">HOST_CMD_SELFTEST</a>:</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <a class="code" href="a00428.html#a4ffd470e0f1e97c32d1ab2f612a42a7c">st_on</a>=1;</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=98;</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[0]=0;</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[1]=0;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[2]=0;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="comment">/* Copy Raw samples to Streaming Buffer. */</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  memcpy(<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a> + <a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a>, &rawData, <a class="code" href="a00428.html#ac71e9c7fb71985479f1ffc6a4cc241e6">FXLS8962_STREAM_SELF_TEST_SIZE</a>);</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="comment">/* Send streaming packet to Host. */</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <a class="code" href="a00098.html#a719ad6da4502e713f1573b5353af9617">Host_IO_Send</a>(<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a>, <span class="keyword">sizeof</span>(<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a>), <a class="code" href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a>);</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  success = <span class="keyword">true</span>;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  }</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  *hostMsgSize = 0; <span class="comment">/* Zero payload in response. */</span></div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  }</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <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#a071e5542770ff815dcc93a74fdad769a">HOST_PRO_CMD_W_REG_TAG</a>)) && (*hostMsgSize >= 3))</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  {</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="comment">/* If ODR set from GUI > 100 Hz set ODR to 100 Hz */</span></div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">if</span>(hostCommand[1]==0x17)</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  {</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keywordflow">if</span>(((hostCommand[2] & 0x0F)<5))</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  {</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  hostCommand[2]= ((hostCommand[2]&0xF0) | 0x05);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordflow">if</span>((((hostCommand[2] & 0xF0)>>4)<5))</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  {</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  hostCommand[2]= ((hostCommand[2]&0x0F) | 0x50);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  }</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  }</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span> </div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="comment">/* Select the Sensitivity factor according to the FSR selected from the GUI*/</span></div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">if</span>(hostCommand[1]==0x15)</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  {</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordflow">if</span>(((hostCommand[2] & 0x06)==0x06))</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  {</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=7.81;</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  }</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordflow">if</span>(((hostCommand[2] & 0x06)==0x04))</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  {</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=3.91;</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  }</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordflow">if</span>(((hostCommand[2] & 0x06)==0x02))</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  {</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=1.95;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  }</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordflow">if</span>(((hostCommand[2] & 0x06)==0x00))</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  {</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=0.98;</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  }</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  }</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> </div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="comment">/* If Self-Test ODR set from GUI > 100 Hz set ODR to 100 Hz */</span></div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">if</span>(hostCommand[1]==0x38 && hostCommand[2]<5)</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  {</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  hostCommand[2]=0x05;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  }</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keywordflow">if</span>(hostCommand[1]==0x90)</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  {</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <a class="code" href="a00428.html#a4ffd470e0f1e97c32d1ab2f612a42a7c">st_on</a>=1;</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=98;</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  }</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <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#a764fc306a207f31b46440521051f6d3f">HOST_PRO_CMD_R_REG_TAG</a>)) &&</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  (*hostMsgSize == 3))</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  {</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="comment">/* Select the Sensitivity factor according to the FSR selected from the GUI*/</span></div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordflow">if</span>(hostCommand[1]==0x15)</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  {</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <span class="keywordflow">if</span>((*hostResponse & 0x06)==0x06)</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  {</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=7.81;</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  }</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordflow">if</span>((*hostResponse & 0x06)==0x04)</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  {</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=3.91;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  }</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">if</span>((*hostResponse & 0x06)==0x02)</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  {</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=1.95;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  }</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="keywordflow">if</span>((*hostResponse & 0x06)==0x00)</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  {</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <a class="code" href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a>=0.98;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  }</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  }</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  }</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">return</span> success;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> }</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment"></span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="comment">/*!</span></div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment"> * @brief Main function</span></div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment"> */</span></div><div class="line"><a name="l00378"></a><span class="lineno"><a class="line" href="a00428.html#a840291bc02cba5474a4cb46a9b9566fe"> 378</a></span> <span class="keywordtype">int</span> <a class="code" href="a00428.html#a840291bc02cba5474a4cb46a9b9566fe">main</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> {</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordtype">int</span> flag=0;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  uint8_t <a class="code" href="a00428.html#a0155cf01983779a6f386fb8eac40d37c">data</a>[<a class="code" href="a00428.html#a39cbf8cdda1114b33641d3a36c489b89">FXLS8962_DATA_SIZE</a>], <a class="code" href="a00428.html#a3f472fff7261e46e432beb76fa314b4c">streamingPacket</a>[<a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a> + <a class="code" href="a00428.html#a04343f892dc6b048e51081ed3b5ea3e8">FXLS8962_STREAM_DATA_SIZE</a>];</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  ARM_DRIVER_I2C *pI2cDriver = &<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  ARM_DRIVER_USART *pUartDriver = &<a class="code" href="a00578.html#a8d15df9aa13a779003e27e835a001f60">HOST_S_DRIVER</a>;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> <span class="comment"></span></div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="comment"> /*! Initialize the MCU hardware. */</span></div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <a class="code" href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a>();</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <a class="code" href="a00530.html#ad43629969994e92bd3620e630bda24c8">BOARD_SystickEnable</a>();</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="comment">/* Create the Short Application Name String for ADS. */</span></div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  sprintf(<a class="code" href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, <span class="stringliteral">"%s:%s"</span>, <a class="code" href="a00428.html#adf41b2857036247c970bc8594b6a636a">APPLICATION_NAME</a>, <a class="code" href="a00428.html#a6efa9917d91d75dcb9036443bc2483cd">APPLICATION_VERSION</a>);</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="comment">/* Run ADS. */</span></div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <a class="code" href="a04823.html#a95285f14f6707e326e523c82d926c900">BOARD_RunADS</a>(<a class="code" href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, <a class="code" href="a00428.html#a44681c771b24906b93d52a830b4ec968">boardString</a>, <a class="code" href="a00428.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>, <a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>);</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span> </div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="comment">/* Create the Full Application Name String for Device Info Response. */</span></div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  sprintf(<a class="code" href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a>, <span class="stringliteral">"%s:%s:%s"</span>, <a class="code" href="a04337.html#ab72ca53100f11826f5060580d7223410">SHIELD_NAME</a>, <a class="code" href="a00428.html#adf41b2857036247c970bc8594b6a636a">APPLICATION_NAME</a>, <a class="code" href="a00428.html#a6efa9917d91d75dcb9036443bc2483cd">APPLICATION_VERSION</a>);</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="comment"></span></div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment"> /*! Initialize FXLS8962 pin used by FRDM board */</span></div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  pGpioDriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a04094.html#a094a690dfab30221b37b8271339a4cd7">FXLS8962_INT1</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a>, NULL, &<a class="code" href="a00428.html#a3d09c9a2c89dd136c09a897c541854b7">fxls8962_int_data_ready_callback</a>, NULL);</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment"></span></div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment"> /*! Initialize RGB LED pin used by FRDM board */</span></div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  pGpioDriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"></span></div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"> /*! Initialize the I2C driver. */</span></div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  status = pI2cDriver->Initialize(<a class="code" href="a04343.html#a60ac2e3bb32ae33e2fd542f607a58ac4">I2C_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  {</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  }</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="comment"></span></div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="comment"> /*! Set the I2C Power mode. */</span></div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  status = pI2cDriver->PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  {</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  }</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span> <span class="comment"></span></div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment"> /*! Set the I2C bus speed. */</span></div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  status = pI2cDriver->Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  {</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  }</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="comment"></span></div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="comment"> /*! Initialize the UART driver. */</span></div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  status = pUartDriver->Initialize(<a class="code" href="a00578.html#a1a6866b34518a8b261ac338c52f597be">HOST_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  {</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  }</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment"></span></div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="comment"> /*! Set the UART Power mode. */</span></div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  status = pUartDriver->PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  {</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  }</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment"></span></div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="comment"> /*! Set UART Baud Rate. */</span></div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  status = pUartDriver->Control(ARM_USART_MODE_ASYNCHRONOUS, <a class="code" href="a04166.html#a7bae38ce2df969e54e7d59ceb9de9195">BOARD_DEBUG_UART_BAUDRATE</a>);</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  {</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  }</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="comment"></span></div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span> <span class="comment"> /*! Initialize FXLS8962 sensor driver. */</span></div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  status = <a class="code" href="a00056.html#a4a1889da307c324fcb8907b59fdf6c94">FXLS8962_I2C_Initialize</a>(&fxls8962Driver, &<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#a229f68d0d94ff8e21733702990dda68b">FXLS8962_I2C_ADDR</a>,</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <a class="code" href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a>);</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> == status)</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  {<span class="comment"></span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span> <span class="comment"> /*! Set the task to be executed while waiting for I2C transactions to complete. */</span></div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <a class="code" href="a00056.html#aaf373e8cc09893d925ca8893fe167f97">FXLS8962_I2C_SetIdleTask</a>(&fxls8962Driver, (<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="l00455"></a><span class="lineno"> 455</span> <span class="comment"></span></div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="comment"> /*! Configure the FXLS8962 sensor. */</span></div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962ConfigNormal);</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> == status)</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  {</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <a class="code" href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  }</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  }</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="comment"></span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="comment"> /*! Initialize streaming and assign a Stream ID. */</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a> =</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <a class="code" href="a00098.html#ab4b858422bbaae71aff2ab540ae0e2b1">Host_IO_Init</a>(pUartDriver, (<span class="keywordtype">void</span> *)fxls8962Driver.<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, NULL, <a class="code" href="a00545.html#a229f68d0d94ff8e21733702990dda68b">FXLS8962_I2C_ADDR</a>);</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="comment">/* Confirm if a valid Stream ID has been allocated for this stream. */</span></div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordflow">if</span> (0 == <a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>)</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  {</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <a class="code" href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  }</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  {<span class="comment"></span></div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span> <span class="comment"> /*! Populate streaming header. */</span></div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <a class="code" href="a00098.html#a68a2c033a0f6f967149dca76897f5c8a">Host_IO_Add_ISO_Header</a>(<a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>, streamingPacket, <a class="code" href="a00428.html#a04343f892dc6b048e51081ed3b5ea3e8">FXLS8962_STREAM_DATA_SIZE</a>);</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <a class="code" href="a00098.html#a68a2c033a0f6f967149dca76897f5c8a">Host_IO_Add_ISO_Header</a>(<a class="code" href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a>, <a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a>, <a class="code" href="a00428.html#ac71e9c7fb71985479f1ffc6a4cc241e6">FXLS8962_STREAM_SELF_TEST_SIZE</a>);</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  pGpioDriver-><a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  }</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[0]=0;</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[1]=0;</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[2]=0;</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">for</span> (;;) <span class="comment">/* Forever loop */</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  { <span class="comment">/* Call UART Non-Blocking Receive. */</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <span class="comment">/* If Self-Test is selected*/</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="keywordflow">if</span>(<a class="code" href="a00428.html#a4ffd470e0f1e97c32d1ab2f612a42a7c">st_on</a>)</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  { <span class="comment">/* Call UART Non-Blocking Receive. */</span></div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <a class="code" href="a00098.html#a3924d21a0703878695ebdb68f720fff9">Host_IO_Receive</a>(<a class="code" href="a00428.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a>, <a class="code" href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a>);</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <span class="keywordflow">switch</span>(<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>)</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  {</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keywordflow">case</span> 98:</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  status =<a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls896216G); <span class="comment">/* Configure 16G mode*/</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keywordflow">case</span> 100:</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962STXP);<span class="comment">/* Enable Self-Test +X Axis*/</span></div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="keywordflow">case</span> 200:</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962STXN);<span class="comment">/* Enable Self-Test -X Axis*/</span></div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <span class="keywordflow">case</span> 300:</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962STYP);<span class="comment">/* Enable Self-Test +Y Axis*/</span></div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keywordflow">case</span> 400:</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962STYN);<span class="comment">/* Enable Self-Test -Y Axis*/</span></div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <span class="keywordflow">case</span> 500:</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962STZP);<span class="comment">/* Enable Self-Test +Z Axis*/</span></div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="keywordflow">case</span> 600:</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls8962STZN);<span class="comment">/* Enable Self-Test -Z Axis*/</span></div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  }</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="comment">/* Process packets only if streaming has been enabled by Host and ISR is available.</span></div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="comment"> * In ISR Mode we do not need to check Data Ready Register.</span></div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="comment"> * The receipt of interrupt will indicate data is ready. */</span></div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> || <span class="keyword">false</span> == <a class="code" href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a>)</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  {</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <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="l00520"></a><span class="lineno"> 520</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  }</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  { <span class="comment">/*! Clear the data ready flag, it will be set again by the ISR. */</span></div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <a class="code" href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  pGpioDriver-><a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  }</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span> </div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="comment">/* Place device in Standby mode after acquiring close to 100 samples */</span></div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  <span class="keywordflow">switch</span>(<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>)</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  {</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  <span class="keywordflow">case</span> 99:</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(&<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>,&(fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>),0x18, 0x15,0x00,0x00,0x00);</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordflow">case</span> 199:</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(&<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>,&(fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>),0x18, 0x15,0x00,0x00,0x00);</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="keywordflow">case</span> 299:</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(&<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>,&(fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>),0x18, 0x15,0x00,0x00,0x00);</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <span class="keywordflow">case</span> 399:</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(&<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>,&(fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>),0x18, 0x15,0x00,0x00,0x00);</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  <span class="keywordflow">case</span> 499:</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(&<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>,&(fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>),0x18, 0x15,0x00,0x00,0x00);</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <span class="keywordflow">case</span> 599:</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(&<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>,&(fxls8962Driver.<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>),0x18, 0x15,0x00,0x00,0x00);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  }<span class="comment"></span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="comment"> /*! Read new raw sensor data from the FXLS8962. */</span></div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  status = <a class="code" href="a00056.html#a14a2159c85255ee4d333dd103740e87d">FXLS8962_I2C_ReadData</a>(&fxls8962Driver, cFxls8962OutputNormal, data);</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  { <span class="comment">/* Loop, if sample read failed. */</span></div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  }</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> </div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="comment">/* Update timestamp from Systick framework. */</span></div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  rawData.<a class="code" href="a03883.html#ab20b0c7772544cf5d318507f34231fbe">timestamp</a> +=<a class="code" href="a00530.html#a85a32737b730fbb713ec910e1ad17c74">BOARD_SystickElapsedTime_us</a>(&<a class="code" href="a00428.html#aafa5fcc299fb9a0db111332f5111b7df">gSystick</a>);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> <span class="comment"></span></div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="comment"> /*! Convert the raw sensor data to signed 16-bit container for display to the debug port. */</span></div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  rawData.<a class="code" href="a03883.html#a661660001effc417fb684db96e973688">accel</a>[0] = (int16_t)(((int16_t)(((int16_t)data[3] << 8) | data[2]))); <span class="comment">/*7.81 is the scale factor for 16 G mode */</span></div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  rawData.<a class="code" href="a03883.html#a661660001effc417fb684db96e973688">accel</a>[1] = (int16_t)(((int16_t)(((int16_t)data[5] << 8) | data[4])));</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  rawData.<a class="code" href="a03883.html#a661660001effc417fb684db96e973688">accel</a>[2] = (int16_t)(((int16_t)(((int16_t)data[7] << 8) | data[6])));</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> </div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="keywordflow">switch</span>(<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>)</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  {</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <span class="keywordflow">case</span> 100:</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <a class="code" href="a00428.html#a6b9ad1ff43bfcb3a5f523a0d384afa6c">st_xp</a> = (int16_t)(((int16_t)data[3] << 8) | data[2]);</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keywordflow">case</span> 200:</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <a class="code" href="a00428.html#aef7713d27866c23178912fe8ee9750c3">st_xn</a> = (int16_t)(((int16_t)data[3] << 8) | data[2]);</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keywordflow">case</span> 300:</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <a class="code" href="a00428.html#a42e7e170ace50624d1373abbe0796653">st_yp</a> = (int16_t)(((int16_t)data[5] << 8) | data[4]);</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keywordflow">case</span> 400:</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <a class="code" href="a00428.html#aa6f173ca6371f7d5149400252bc8056a">st_yn</a> = (int16_t)(((int16_t)data[5] << 8) | data[4]);</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="keywordflow">case</span> 500:</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <a class="code" href="a00428.html#a4a87b28c0c30a751c1fd6ec6d4f39f1c">st_zp</a> = (int16_t)(((int16_t)data[7] << 8) | data[6]);</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keywordflow">case</span> 600:</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <a class="code" href="a00428.html#a45214ce8f1bfb0e042051c53f1656a4c">st_zn</a> = (int16_t)(((int16_t)data[7] << 8) | data[6]);</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="keywordflow">case</span> 700: <span class="comment">/* Calculate Self-Test output */</span></div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[0] =(<a class="code" href="a00428.html#a6b9ad1ff43bfcb3a5f523a0d384afa6c">st_xp</a>-<a class="code" href="a00428.html#aef7713d27866c23178912fe8ee9750c3">st_xn</a>)/2;</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[1] =(<a class="code" href="a00428.html#a42e7e170ace50624d1373abbe0796653">st_yp</a>-<a class="code" href="a00428.html#aa6f173ca6371f7d5149400252bc8056a">st_yn</a>)/2;</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[2] =(<a class="code" href="a00428.html#a4a87b28c0c30a751c1fd6ec6d4f39f1c">st_zp</a>-<a class="code" href="a00428.html#a45214ce8f1bfb0e042051c53f1656a4c">st_zn</a>)/2;</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <a class="code" href="a00428.html#a4ffd470e0f1e97c32d1ab2f612a42a7c">st_on</a>=0;</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=98;</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  flag=1;</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  status = <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(&fxls8962Driver, cFxls896216G);</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>=<a class="code" href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a>+1;</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  }</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span> </div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  rawData.<a class="code" href="a03883.html#a029a87658f39852c58465c723e31eb29">temp</a> = data[1]+25;</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  rawData.<a class="code" href="a03883.html#a5df4eecddeaf753c71e3eb7c1be3eb11">sdcd</a> = (data[0] & 0x10)>>4;</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span> </div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  <span class="comment">/* Copy Raw samples to Streaming Buffer. */</span></div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  memcpy(<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a> + <a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a>, &rawData, <a class="code" href="a00428.html#ac71e9c7fb71985479f1ffc6a4cc241e6">FXLS8962_STREAM_SELF_TEST_SIZE</a>);</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  <a class="code" href="a00098.html#a719ad6da4502e713f1573b5353af9617">Host_IO_Send</a>(<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a>, <span class="keyword">sizeof</span>(<a class="code" href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a>), <a class="code" href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a>);</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  }</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  {</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  <span class="comment">/* Call UART Non-Blocking Receive. */</span></div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <a class="code" href="a00098.html#a3924d21a0703878695ebdb68f720fff9">Host_IO_Receive</a>(<a class="code" href="a00428.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a>, <a class="code" href="a00101.html#a15b8f0a0cc23d28aafa1b827c46a5305a7c754ec0cda1ed431ce52c2c4a6a63da">HOST_FORMAT_HDLC</a>);</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> </div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="comment">/* Process packets only if streaming has been enabled by Host and ISR is available.</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span> <span class="comment"> * In ISR Mode we do not need to check Data Ready Register.</span></div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span> <span class="comment"> * The receipt of interrupt will indicate data is ready. */</span></div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a> || <span class="keyword">false</span> == <a class="code" href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a>)</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  {</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  <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="l00623"></a><span class="lineno"> 623</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  }</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  { <span class="comment">/*! Clear the data ready flag, it will be set again by the ISR. */</span></div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <a class="code" href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  pGpioDriver-><a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  }</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span> <span class="comment"></span></div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span> <span class="comment"> /*! Read new raw sensor data from the FXLS8962. */</span></div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  status= <a class="code" href="a00056.html#a14a2159c85255ee4d333dd103740e87d">FXLS8962_I2C_ReadData</a>(&fxls8962Driver, cFxls8962OutputNormal, data);</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span> </div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  { <span class="comment">/* Loop, if sample read failed. */</span></div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  }</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span> </div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  <span class="comment">/* Update timestamp from Systick framework. */</span></div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  rawData.<a class="code" href="a03883.html#ab20b0c7772544cf5d318507f34231fbe">timestamp</a> +=<a class="code" href="a00530.html#a85a32737b730fbb713ec910e1ad17c74">BOARD_SystickElapsedTime_us</a>(&<a class="code" href="a00428.html#aafa5fcc299fb9a0db111332f5111b7df">gSystick</a>);</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span> <span class="comment"></span></div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <span class="comment"> /*! Convert the raw sensor data to signed 16-bit container for display to the debug port. */</span></div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  rawData.<a class="code" href="a03883.html#a661660001effc417fb684db96e973688">accel</a>[0] = (int16_t)(((int16_t)(((int16_t)data[3] << 8) | data[2])));</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  rawData.<a class="code" href="a03883.html#a661660001effc417fb684db96e973688">accel</a>[1] = (int16_t)(((int16_t)(((int16_t)data[5] << 8) | data[4])));</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  rawData.<a class="code" href="a03883.html#a661660001effc417fb684db96e973688">accel</a>[2] = (int16_t)(((int16_t)(((int16_t)data[7] << 8) | data[6])));</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span> </div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  rawData.<a class="code" href="a03883.html#a029a87658f39852c58465c723e31eb29">temp</a> = data[1]+25;</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  rawData.<a class="code" href="a03883.html#a5df4eecddeaf753c71e3eb7c1be3eb11">sdcd</a> = (data[0] & 0x10)>>4;</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span> </div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  <span class="comment">/* Copy Raw samples to Streaming Buffer. */</span></div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  memcpy(streamingPacket + <a class="code" href="a00101.html#adc72f7a14386aae7a4025ca511c06f54">STREAMING_HEADER_LEN</a>, &rawData, <a class="code" href="a00428.html#a04343f892dc6b048e51081ed3b5ea3e8">FXLS8962_STREAM_DATA_SIZE</a>);</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="comment">/* Send streaming packet to Host. */</span></div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <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="l00654"></a><span class="lineno"> 654</span> </div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <span class="keywordflow">if</span>(flag==1) <span class="comment">/*Reset Self-Test Values */</span></div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  {</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[0]=0;</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[1]=0;</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  rawData.<a class="code" href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">selftest</a>[2]=0;</div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  flag=0;</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  }</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  }</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  }</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span> }</div><div class="ttc" id="a00428_html_a67fc9c5c7e5b2b294e38be1aedf19897"><div class="ttname"><a href="a00428.html#a67fc9c5c7e5b2b294e38be1aedf19897">st_dx</a></div><div class="ttdeci">int16_t st_dx</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 52<div class="ttc" id="a00428_html_a19cff265869e1ac9bc4b3d168707be70"><div class="ttname"><a href="a00428.html#a19cff265869e1ac9bc4b3d168707be70">cFxls8962STZN</a></div><div class="ttdeci">const registerwritelist_t cFxls8962STZN[]</div><div class="ttdoc">Register settings for Self-Test in Z Axis (Negative polarity). </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00155">fxls8962_demo.c:155</a></div></div> 53<div class="ttc" id="a00428_html_ac61bf859f26cd2541c3958bff34e2bda"><div class="ttname"><a href="a00428.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a></div><div class="ttdeci">GENERIC_DRIVER_GPIO * pGpioDriver</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00173">fxls8962_demo.c:173</a></div></div> 54<div class="ttc" id="a00053_html_ac10b99cca5c95f882ba757fd2a8897ac"><div class="ttname"><a href="a00053.html#ac10b99cca5c95f882ba757fd2a8897ac">FXLS8962_INT_EN_DRDY_EN_EN</a></div><div class="ttdeci">#define FXLS8962_INT_EN_DRDY_EN_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00857">fxls8962.h:857</a></div></div> 55<div class="ttc" id="a00428_html_a42e7e170ace50624d1373abbe0796653"><div class="ttname"><a href="a00428.html#a42e7e170ace50624d1373abbe0796653">st_yp</a></div><div class="ttdeci">int16_t st_yp</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 56<div class="ttc" id="a00428_html_aafa5fcc299fb9a0db111332f5111b7df"><div class="ttname"><a href="a00428.html#aafa5fcc299fb9a0db111332f5111b7df">gSystick</a></div><div class="ttdeci">int32_t gSystick</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00177">fxls8962_demo.c:177</a></div></div> 57<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> 58<div class="ttc" id="a00428_html_a53f283eae4320de34a747e6d74d302c1"><div class="ttname"><a href="a00428.html#a53f283eae4320de34a747e6d74d302c1">st_sample</a></div><div class="ttdeci">int st_sample</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00178">fxls8962_demo.c:178</a></div></div> 59<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> 60<div class="ttc" id="a03807_html"><div class="ttname"><a href="a03807.html">registerwritelist_t</a></div><div class="ttdoc">This structure defines the Write command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00068">sensor_drv.h:68</a></div></div> 61<div class="ttc" id="a00428_html_afb1eb0af4acdfd7558ae2daf04b09a36"><div class="ttname"><a href="a00428.html#afb1eb0af4acdfd7558ae2daf04b09a36">cFxls8962STYP</a></div><div class="ttdeci">const registerwritelist_t cFxls8962STYP[]</div><div class="ttdoc">Register settings for Self-Test in Y Axis (Positive polarity). </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00131">fxls8962_demo.c:131</a></div></div> 62<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> 63<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> 64<div class="ttc" id="a00101_html_a764fc306a207f31b46440521051f6d3f"><div class="ttname"><a href="a00101.html#a764fc306a207f31b46440521051f6d3f">HOST_PRO_CMD_R_REG_TAG</a></div><div class="ttdeci">#define HOST_PRO_CMD_R_REG_TAG</div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00066">host_io_uart.h:66</a></div></div> 65<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> 66<div class="ttc" id="a00053_html_af43bac310e0dc8f47eda742eb21d9598"><div class="ttname"><a href="a00053.html#af43bac310e0dc8f47eda742eb21d9598">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Z</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Z</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00446">fxls8962.h:446</a></div></div> 67<div class="ttc" id="a00167_html_ad08d2c7880bc5f09fd27eee247311448"><div class="ttname"><a href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a></div><div class="ttdeci">int32_t Register_I2C_Write(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, uint8_t offset, uint8_t value, uint8_t mask, bool repeatedStart)</div><div class="ttdoc">The interface function to write a sensor register. </div><div class="ttdef"><b>Definition:</b> <a href="a00167_source.html#l00193">register_io_i2c.c:193</a></div></div> 68<div class="ttc" id="a00428_html_aaad632a5d66cd499ea6e6b932e2900d6"><div class="ttname"><a href="a00428.html#aaad632a5d66cd499ea6e6b932e2900d6">cFxls8962STZP</a></div><div class="ttdeci">const registerwritelist_t cFxls8962STZP[]</div><div class="ttdoc">Register settings for Self-Test in Z Axis (Positive polarity). </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00147">fxls8962_demo.c:147</a></div></div> 69<div class="ttc" id="a03883_html_ab20b0c7772544cf5d318507f34231fbe"><div class="ttname"><a href="a03883.html#ab20b0c7772544cf5d318507f34231fbe">fxls8962_acceldataUser_t::timestamp</a></div><div class="ttdeci">uint32_t timestamp</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00054">fxls8962_demo.c:54</a></div></div> 70<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> 71<div class="ttc" id="a00059_html"><div class="ttname"><a href="a00059.html">fxls8962_drv.h</a></div><div class="ttdoc">The fxls8962_drv.h file describes the FXLS8962AF driver interface and structures. ...</div></div> 72<div class="ttc" id="a00428_html_ab2545d8b5a7d9c81a49c4d6a9d477e44"><div class="ttname"><a href="a00428.html#ab2545d8b5a7d9c81a49c4d6a9d477e44">bFxls8962DataReady</a></div><div class="ttdeci">volatile bool bFxls8962DataReady</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00171">fxls8962_demo.c:171</a></div></div> 73<div class="ttc" id="a00053_html_ab1a926ce744cc291da66b0b82e560f8f"><div class="ttname"><a href="a00053.html#ab1a926ce744cc291da66b0b82e560f8f">FXLS8962_SENS_CONFIG2_ANIC_TEMP_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG2_ANIC_TEMP_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00496">fxls8962.h:496</a></div></div> 74<div class="ttc" id="a00428_html_a6b9ad1ff43bfcb3a5f523a0d384afa6c"><div class="ttname"><a href="a00428.html#a6b9ad1ff43bfcb3a5f523a0d384afa6c">st_xp</a></div><div class="ttdeci">int16_t st_xp</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 75<div class="ttc" id="a00428_html_af4a03c246f6c11a2411cd22de2d749d1"><div class="ttname"><a href="a00428.html#af4a03c246f6c11a2411cd22de2d749d1">cFxls8962ConfigNormal</a></div><div class="ttdeci">const registerwritelist_t cFxls8962ConfigNormal[]</div><div class="ttdoc">Register settings for Interrupt (non buffered) mode. </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00065">fxls8962_demo.c:65</a></div></div> 76<div class="ttc" id="a00053_html_a555b029068c28f1412db207929e4809a"><div class="ttname"><a href="a00053.html#a555b029068c28f1412db207929e4809a">FXLS8962_SENS_CONFIG1_FSR_16G</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_FSR_16G</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00459">fxls8962.h:459</a></div></div> 77<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649ba7f4d4a8123af029731acab8d30fe1eeb"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649ba7f4d4a8123af029731acab8d30fe1eeb">FXLS8962_SENS_CONFIG2</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00049">fxls8962.h:49</a></div></div> 78<div class="ttc" id="a00053_html_a2558f5047f39c3f1545e6f3f678a3b0d"><div class="ttname"><a href="a00053.html#a2558f5047f39c3f1545e6f3f678a3b0d">FXLS8962_INT_EN_DRDY_EN_MASK</a></div><div class="ttdeci">#define FXLS8962_INT_EN_DRDY_EN_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00850">fxls8962.h:850</a></div></div> 79<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> 80<div class="ttc" id="a04292_html_a8d81431cbbc4b01da56afbff0f766379"><div class="ttname"><a href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a></div><div class="ttdeci">#define BOARD_BootClockRUN</div><div class="ttdef"><b>Definition:</b> <a href="a04292_source.html#l00019">clock_config.h:19</a></div></div> 81<div class="ttc" id="a00056_html_a4a1889da307c324fcb8907b59fdf6c94"><div class="ttname"><a href="a00056.html#a4a1889da307c324fcb8907b59fdf6c94">FXLS8962_I2C_Initialize</a></div><div class="ttdeci">int32_t FXLS8962_I2C_Initialize(fxls8962_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *whoami)</div><div class="ttdoc">The interface function to initialize the sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00240">fxls8962_drv.c:240</a></div></div> 82<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> 83<div class="ttc" id="a00428_html_aa6f173ca6371f7d5149400252bc8056a"><div class="ttname"><a href="a00428.html#aa6f173ca6371f7d5149400252bc8056a">st_yn</a></div><div class="ttdeci">int16_t st_yn</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 84<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> 85<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> 86<div class="ttc" id="a00053_html_a97deabb3b1a818a059e64ef8bf96c1b5"><div class="ttname"><a href="a00053.html#a97deabb3b1a818a059e64ef8bf96c1b5">FXLS8962_SENS_CONFIG1_ST_POL_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_POL_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00429">fxls8962.h:429</a></div></div> 87<div class="ttc" id="a00428_html_a0e69354ed8baa6d0d08286a179c0616d"><div class="ttname"><a href="a00428.html#a0e69354ed8baa6d0d08286a179c0616d">cFxls8962OutputNormal</a></div><div class="ttdeci">const registerreadlist_t cFxls8962OutputNormal[]</div><div class="ttdoc">Address of Raw Accel Data in Normal Mode. </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00163">fxls8962_demo.c:163</a></div></div> 88<div class="ttc" id="a00428_html_a3d09c9a2c89dd136c09a897c541854b7"><div class="ttname"><a href="a00428.html#a3d09c9a2c89dd136c09a897c541854b7">fxls8962_int_data_ready_callback</a></div><div class="ttdeci">void fxls8962_int_data_ready_callback(void *pUserData)</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00186">fxls8962_demo.c:186</a></div></div> 89<div class="ttc" id="a00428_html_a9e995fd68713446ee645b65c5fd632d0"><div class="ttname"><a href="a00428.html#a9e995fd68713446ee645b65c5fd632d0">cFxls8962STXP</a></div><div class="ttdeci">const registerwritelist_t cFxls8962STXP[]</div><div class="ttdoc">Register settings for Self-Test in X Axis (Positive polarity). </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00115">fxls8962_demo.c:115</a></div></div> 90<div class="ttc" id="a00428_html_a5f20d7e581e9e454ee0dd84ea3bfdeb6"><div class="ttname"><a href="a00428.html#a5f20d7e581e9e454ee0dd84ea3bfdeb6">fsr_scale</a></div><div class="ttdeci">float fsr_scale</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00180">fxls8962_demo.c:180</a></div></div> 91<div class="ttc" id="a00179_html_a2cedde333a6373a3ee274bde6af145d0"><div class="ttname"><a href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a></div><div class="ttdeci">#define __END_WRITE_DATA__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00045">sensor_drv.h:45</a></div></div> 92<div class="ttc" id="a00428_html_a4ffd470e0f1e97c32d1ab2f612a42a7c"><div class="ttname"><a href="a00428.html#a4ffd470e0f1e97c32d1ab2f612a42a7c">st_on</a></div><div class="ttdeci">int st_on</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00178">fxls8962_demo.c:178</a></div></div> 93<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> 94<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> 95<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> 96<div class="ttc" id="a00482_html_a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e"><div class="ttname"><a href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a></div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00023">Driver_GPIO.h:23</a></div></div> 97<div class="ttc" id="a00428_html_a369536ebfe385731562c0b55dd6f3a7c"><div class="ttname"><a href="a00428.html#a369536ebfe385731562c0b55dd6f3a7c">status</a></div><div class="ttdeci">int32_t status</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00177">fxls8962_demo.c:177</a></div></div> 98<div class="ttc" id="a00053_html_a72bffaf55ce0fe60a398f0ef5350134c"><div class="ttname"><a href="a00053.html#a72bffaf55ce0fe60a398f0ef5350134c">FXLS8962_SENS_CONFIG3_WAKE_ODR_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG3_WAKE_ODR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00551">fxls8962.h:551</a></div></div> 99<div class="ttc" id="a01847_html"><div class="ttname"><a href="a01847.html">fxls8962_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="a00059_source.html#l00044">fxls8962_drv.h:44</a></div></div> 100<div class="ttc" id="a00428_html_a840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="a00428.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="a00428_source.html#l00378">fxls8962_demo.c:378</a></div></div> 101<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> 102<div class="ttc" id="a00428_html_a0076d28c9a17cd6908c7b3b0f5c6006c"><div class="ttname"><a href="a00428.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="a00428_source.html#l00192">fxls8962_demo.c:192</a></div></div> 103<div class="ttc" id="a00101_html_a071e5542770ff815dcc93a74fdad769a"><div class="ttname"><a href="a00101.html#a071e5542770ff815dcc93a74fdad769a">HOST_PRO_CMD_W_REG_TAG</a></div><div class="ttdeci">#define HOST_PRO_CMD_W_REG_TAG</div><div class="ttdef"><b>Definition:</b> <a href="a00101_source.html#l00065">host_io_uart.h:65</a></div></div> 104<div class="ttc" id="a03883_html_a5df4eecddeaf753c71e3eb7c1be3eb11"><div class="ttname"><a href="a03883.html#a5df4eecddeaf753c71e3eb7c1be3eb11">fxls8962_acceldataUser_t::sdcd</a></div><div class="ttdeci">uint8_t sdcd</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00056">fxls8962_demo.c:56</a></div></div> 105<div class="ttc" id="a03883_html_a661660001effc417fb684db96e973688"><div class="ttname"><a href="a03883.html#a661660001effc417fb684db96e973688">fxls8962_acceldataUser_t::accel</a></div><div class="ttdeci">int16_t accel[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00055">fxls8962_demo.c:55</a></div></div> 106<div class="ttc" id="a00428_html_a868ff2a7606d02288b18d3b7c21ebce6"><div class="ttname"><a href="a00428.html#a868ff2a7606d02288b18d3b7c21ebce6">gStreamID</a></div><div class="ttdeci">uint8_t gStreamID</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00172">fxls8962_demo.c:172</a></div></div> 107<div class="ttc" id="a00428_html_a4780e13298b0fd7b98db6f974e8e5388"><div class="ttname"><a href="a00428.html#a4780e13298b0fd7b98db6f974e8e5388">fxls8962Driver</a></div><div class="ttdeci">fxls8962_i2c_sensorhandle_t fxls8962Driver</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00176">fxls8962_demo.c:176</a></div></div> 108<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> 109<div class="ttc" id="a00428_html_acc0ad824fd441638baf26ba29772c443"><div class="ttname"><a href="a00428.html#acc0ad824fd441638baf26ba29772c443">st_dy</a></div><div class="ttdeci">int16_t st_dy</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 110<div class="ttc" id="a00428_html_a1568099a2871ab220d4016cc328ebb99"><div class="ttname"><a href="a00428.html#a1568099a2871ab220d4016cc328ebb99">HOST_CMD_RESET</a></div><div class="ttdeci">#define HOST_CMD_RESET</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00048">fxls8962_demo.c:48</a></div></div> 111<div class="ttc" id="a00053_html_aca05330e87748ec0a6ac55ece8774592"><div class="ttname"><a href="a00053.html#aca05330e87748ec0a6ac55ece8774592">FXLS8962_SENS_CONFIG3_WAKE_ODR_12_5HZ</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG3_WAKE_ODR_12_5HZ</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00565">fxls8962.h:565</a></div></div> 112<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> 113<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> 114<div class="ttc" id="a00053_html_a365862578ad57e69106aa46e688fda8d"><div class="ttname"><a href="a00053.html#a365862578ad57e69106aa46e688fda8d">FXLS8962_SENS_CONFIG1_ST_POL_POSITIVE</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_POL_POSITIVE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00447">fxls8962.h:447</a></div></div> 115<div class="ttc" id="a00530_html_ac4471deeef0c2a93b7d4263259b0ed63"><div class="ttname"><a href="a00530.html#ac4471deeef0c2a93b7d4263259b0ed63">BOARD_SystickStart</a></div><div class="ttdeci">void BOARD_SystickStart(int32_t *pStart)</div><div class="ttdoc">Function to Record the Start systick. </div><div class="ttdef"><b>Definition:</b> <a href="a00530_source.html#l00044">systick_utils.c:44</a></div></div> 116<div class="ttc" id="a00428_html_aba0697446c816ceefc9c411091e9b29a"><div class="ttname"><a href="a00428.html#aba0697446c816ceefc9c411091e9b29a">cFxls896216G</a></div><div class="ttdeci">const registerwritelist_t cFxls896216G[]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00101">fxls8962_demo.c:101</a></div></div> 117<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> 118<div class="ttc" id="a00428_html_af8bc36894d75bec8a9eab609dea20baa"><div class="ttname"><a href="a00428.html#af8bc36894d75bec8a9eab609dea20baa">cFxls8962STXN</a></div><div class="ttdeci">const registerwritelist_t cFxls8962STXN[]</div><div class="ttdoc">Register settings for Self-Test in X Axis (Negative polarity). </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00123">fxls8962_demo.c:123</a></div></div> 119<div class="ttc" id="a00428_html_a49f60997dac3cb04aadc24bf94c42dc1"><div class="ttname"><a href="a00428.html#a49f60997dac3cb04aadc24bf94c42dc1">cFxls8962STYN</a></div><div class="ttdeci">const registerwritelist_t cFxls8962STYN[]</div><div class="ttdoc">Register settings for Self-Test in Y Axis (Negative polarity). </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00139">fxls8962_demo.c:139</a></div></div> 120<div class="ttc" id="a00053_html_ae87f252c4c7559bd12c3f182ee23a381"><div class="ttname"><a href="a00053.html#ae87f252c4c7559bd12c3f182ee23a381">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_DISABLED</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_DISABLED</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00442">fxls8962.h:442</a></div></div> 121<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> 122<div class="ttc" id="a00530_html_a85a32737b730fbb713ec910e1ad17c74"><div class="ttname"><a href="a00530.html#a85a32737b730fbb713ec910e1ad17c74">BOARD_SystickElapsedTime_us</a></div><div class="ttdeci">uint32_t BOARD_SystickElapsedTime_us(int32_t *pStart)</div><div class="ttdoc">Function to compute the Elapsed Time. </div><div class="ttdef"><b>Definition:</b> <a href="a00530_source.html#l00064">systick_utils.c:64</a></div></div> 123<div class="ttc" id="a00056_html_a13160308eebd2dce90198d9f1388ad27"><div class="ttname"><a href="a00056.html#a13160308eebd2dce90198d9f1388ad27">FXLS8962_I2C_DeInit</a></div><div class="ttdeci">int32_t FXLS8962_I2C_DeInit(fxls8962_i2c_sensorhandle_t *pSensorHandle)</div><div class="ttdoc">The interface function to De Initialize sensor.. </div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00360">fxls8962_drv.c:360</a></div></div> 124<div class="ttc" id="a00428_html_a4a87b28c0c30a751c1fd6ec6d4f39f1c"><div class="ttname"><a href="a00428.html#a4a87b28c0c30a751c1fd6ec6d4f39f1c">st_zp</a></div><div class="ttdeci">int16_t st_zp</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 125<div class="ttc" id="a00428_html_a0155cf01983779a6f386fb8eac40d37c"><div class="ttname"><a href="a00428.html#a0155cf01983779a6f386fb8eac40d37c">data</a></div><div class="ttdeci">uint8_t data[FXLS8962_DATA_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00174">fxls8962_demo.c:174</a></div></div> 126<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649ba2ebe52291cb8a1a2d6b59a6dcb62df24"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649ba2ebe52291cb8a1a2d6b59a6dcb62df24">FXLS8962_INT_EN</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00059">fxls8962.h:59</a></div></div> 127<div class="ttc" id="a00428_html_a39cbf8cdda1114b33641d3a36c489b89"><div class="ttname"><a href="a00428.html#a39cbf8cdda1114b33641d3a36c489b89">FXLS8962_DATA_SIZE</a></div><div class="ttdeci">#define FXLS8962_DATA_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00041">fxls8962_demo.c:41</a></div></div> 128<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> 129<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> 130<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00048">fxls8962.h:48</a></div></div> 131<div class="ttc" id="a00053_html_a38a04863fe45f808caae72627954c920"><div class="ttname"><a href="a00053.html#a38a04863fe45f808caae72627954c920">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00432">fxls8962.h:432</a></div></div> 132<div class="ttc" id="a00428_html_a5a8b9a006ddcb23e54a59ffbffde31b6"><div class="ttname"><a href="a00428.html#a5a8b9a006ddcb23e54a59ffbffde31b6">streamingPacket1</a></div><div class="ttdeci">uint8_t streamingPacket1[STREAMING_HEADER_LEN+FXLS8962_STREAM_SELF_TEST_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00174">fxls8962_demo.c:174</a></div></div> 133<div class="ttc" id="a00056_html_a14a2159c85255ee4d333dd103740e87d"><div class="ttname"><a href="a00056.html#a14a2159c85255ee4d333dd103740e87d">FXLS8962_I2C_ReadData</a></div><div class="ttdeci">int32_t FXLS8962_I2C_ReadData(fxls8962_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)</div><div class="ttdoc">The interface function to read the sensor data. </div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00331">fxls8962_drv.c:331</a></div></div> 134<div class="ttc" id="a00428_html_a45214ce8f1bfb0e042051c53f1656a4c"><div class="ttname"><a href="a00428.html#a45214ce8f1bfb0e042051c53f1656a4c">st_zn</a></div><div class="ttdeci">int16_t st_zn</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 135<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> 136<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> 137<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> 138<div class="ttc" id="a03883_html"><div class="ttname"><a href="a03883.html">fxls8962_acceldataUser_t</a></div><div class="ttdoc">This structure defines the fxls8962 raw data buffer. </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00052">fxls8962_demo.c:52</a></div></div> 139<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> 140<div class="ttc" id="a03883_html_a029a87658f39852c58465c723e31eb29"><div class="ttname"><a href="a03883.html#a029a87658f39852c58465c723e31eb29">fxls8962_acceldataUser_t::temp</a></div><div class="ttdeci">int8_t temp</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00057">fxls8962_demo.c:57</a></div></div> 141<div class="ttc" id="a00428_html_a05e292e874778fd426291d2bf0941c67"><div class="ttname"><a href="a00428.html#a05e292e874778fd426291d2bf0941c67">bFxls8962Ready</a></div><div class="ttdeci">volatile bool bFxls8962Ready</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00171">fxls8962_demo.c:171</a></div></div> 142<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> 143<div class="ttc" id="a00428_html_a21ddfe1c7f9205f1e9d8d742587cdc8f"><div class="ttname"><a href="a00428.html#a21ddfe1c7f9205f1e9d8d742587cdc8f">HOST_CMD_SELFTEST</a></div><div class="ttdeci">#define HOST_CMD_SELFTEST</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00049">fxls8962_demo.c:49</a></div></div> 144<div class="ttc" id="a00428_html_a04343f892dc6b048e51081ed3b5ea3e8"><div class="ttname"><a href="a00428.html#a04343f892dc6b048e51081ed3b5ea3e8">FXLS8962_STREAM_DATA_SIZE</a></div><div class="ttdeci">#define FXLS8962_STREAM_DATA_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00042">fxls8962_demo.c:42</a></div></div> 145<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> 146<div class="ttc" id="a00428_html_a2acb8a0b51b9b19ea6fd7d3d09ef5622"><div class="ttname"><a href="a00428.html#a2acb8a0b51b9b19ea6fd7d3d09ef5622">cFxls8962ConfigNormal2</a></div><div class="ttdeci">const registerwritelist_t cFxls8962ConfigNormal2[]</div><div class="ttdoc">Register settings for Interrupt (non buffered) mode. </div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00088">fxls8962_demo.c:88</a></div></div> 147<div class="ttc" id="a00428_html_a44681c771b24906b93d52a830b4ec968"><div class="ttname"><a href="a00428.html#a44681c771b24906b93d52a830b4ec968">boardString</a></div><div class="ttdeci">char boardString[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00169">fxls8962_demo.c:169</a></div></div> 148<div class="ttc" id="a01847_html_af6d4d51d4fb48cfb392eeb03ac26abed"><div class="ttname"><a href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">fxls8962_i2c_sensorhandle_t::pCommDrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * pCommDrv</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00047">fxls8962_drv.h:47</a></div></div> 149<div class="ttc" id="a00053_html_a40cdfb2b5bc9fbc8115b145a5ac99f2e"><div class="ttname"><a href="a00053.html#a40cdfb2b5bc9fbc8115b145a5ac99f2e">FXLS8962_SENS_CONFIG1_ST_POL_NEGATIVE</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_POL_NEGATIVE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00449">fxls8962.h:449</a></div></div> 150<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> 151<div class="ttc" id="a00428_html_ac71e9c7fb71985479f1ffc6a4cc241e6"><div class="ttname"><a href="a00428.html#ac71e9c7fb71985479f1ffc6a4cc241e6">FXLS8962_STREAM_SELF_TEST_SIZE</a></div><div class="ttdeci">#define FXLS8962_STREAM_SELF_TEST_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00043">fxls8962_demo.c:43</a></div></div> 152<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> 153<div class="ttc" id="a00428_html_aef7713d27866c23178912fe8ee9750c3"><div class="ttname"><a href="a00428.html#aef7713d27866c23178912fe8ee9750c3">st_xn</a></div><div class="ttdeci">int16_t st_xn</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00179">fxls8962_demo.c:179</a></div></div> 154<div class="ttc" id="a00056_html_a1b62cba67669ae79f5f3c2e5f846a6c7"><div class="ttname"><a href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a></div><div class="ttdeci">int32_t FXLS8962_I2C_Configure(fxls8962_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)</div><div class="ttdoc">The interface function to configure he sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00286">fxls8962_drv.c:286</a></div></div> 155<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> 156<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> 157<div class="ttc" id="a00053_html_a4f492a0fcea7e9e841f04e36ca3cec6e"><div class="ttname"><a href="a00053.html#a4f492a0fcea7e9e841f04e36ca3cec6e">FXLS8962_SENS_CONFIG1_FSR_4G</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_FSR_4G</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00455">fxls8962.h:455</a></div></div> 158<div class="ttc" id="a00428_html_a70385ff3e0081022336573247e5ecaec"><div class="ttname"><a href="a00428.html#a70385ff3e0081022336573247e5ecaec">embAppName</a></div><div class="ttdeci">char embAppName[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00170">fxls8962_demo.c:170</a></div></div> 159<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> 160<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> 161<div class="ttc" id="a03883_html_aa6ee39b77cfb5ed1c879f86fb157aaab"><div class="ttname"><a href="a03883.html#aa6ee39b77cfb5ed1c879f86fb157aaab">fxls8962_acceldataUser_t::selftest</a></div><div class="ttdeci">int16_t selftest[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00058">fxls8962_demo.c:58</a></div></div> 162<div class="ttc" id="a00053_html_adf40d9101b02ea10a7e0bfd763b63ba6"><div class="ttname"><a href="a00053.html#adf40d9101b02ea10a7e0bfd763b63ba6">FXLS8962_SENS_CONFIG2_ANIC_TEMP_EN</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG2_ANIC_TEMP_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00521">fxls8962.h:521</a></div></div> 163<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> 164<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> 165<div class="ttc" id="a04094_html_a094a690dfab30221b37b8271339a4cd7"><div class="ttname"><a href="a04094.html#a094a690dfab30221b37b8271339a4cd7">FXLS8962_INT1</a></div><div class="ttdeci">#define FXLS8962_INT1</div><div class="ttdef"><b>Definition:</b> <a href="a04094_source.html#l00026">frdm_stbc_agmp03_shield.h:26</a></div></div> 166<div class="ttc" id="a00053_html_aa3941ed884be782f1ca019c7ce74c271"><div class="ttname"><a href="a00053.html#aa3941ed884be782f1ca019c7ce74c271">FXLS8962_SENS_CONFIG1_FSR_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_FSR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00423">fxls8962.h:423</a></div></div> 167<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> 168<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> 169<div class="ttc" id="a00428_html_adf41b2857036247c970bc8594b6a636a"><div class="ttname"><a href="a00428.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="a00428_source.html#l00045">fxls8962_demo.c:45</a></div></div> 170<div class="ttc" id="a00428_html_a7f64af0b42fb84db946009e4de018a6e"><div class="ttname"><a href="a00428.html#a7f64af0b42fb84db946009e4de018a6e">rawData</a></div><div class="ttdeci">fxls8962_acceldataUser_t rawData</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00175">fxls8962_demo.c:175</a></div></div> 171<div class="ttc" id="a00056_html_aaf373e8cc09893d925ca8893fe167f97"><div class="ttname"><a href="a00056.html#aaf373e8cc09893d925ca8893fe167f97">FXLS8962_I2C_SetIdleTask</a></div><div class="ttdeci">void FXLS8962_I2C_SetIdleTask(fxls8962_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="a00056_source.html#l00278">fxls8962_drv.c:278</a></div></div> 172<div class="ttc" id="a00545_html_a229f68d0d94ff8e21733702990dda68b"><div class="ttname"><a href="a00545.html#a229f68d0d94ff8e21733702990dda68b">FXLS8962_I2C_ADDR</a></div><div class="ttdeci">#define FXLS8962_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00066">auto_detection_shield.h:66</a></div></div> 173<div class="ttc" id="a00338_html_a2f69cd2dc81c3a7769cc8280ce11e389"><div class="ttname"><a href="a00338.html#a2f69cd2dc81c3a7769cc8280ce11e389">selftest</a></div><div class="ttdeci">fxls896x_selftest_t selftest</div><div class="ttdef"><b>Definition:</b> <a href="a00338_source.html#l00237">fxls8962_freemaster_demo.c:237</a></div></div> 174<div class="ttc" id="a00428_html_a6efa9917d91d75dcb9036443bc2483cd"><div class="ttname"><a href="a00428.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="a00428_source.html#l00047">fxls8962_demo.c:47</a></div></div> 175<div class="ttc" id="a00053_html_a827f1c265a5d5c1bb4b037f9c5d0b8ca"><div class="ttname"><a href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXLS8962_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00087">fxls8962.h:87</a></div></div> 176<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> 177<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649baada3aa43d39f816bb64ef724658bcfcc"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649baada3aa43d39f816bb64ef724658bcfcc">FXLS8962_INT_STATUS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00028">fxls8962.h:28</a></div></div> 178<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> 179<div class="ttc" id="a00053_html_a2c79d91311962f2eb69d2333b1396726"><div class="ttname"><a href="a00053.html#a2c79d91311962f2eb69d2333b1396726">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_X</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_X</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00444">fxls8962.h:444</a></div></div> 180<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> 181<div class="ttc" id="a00428_html_aaf56ae4c156374e195890d3459adda93"><div class="ttname"><a href="a00428.html#aaf56ae4c156374e195890d3459adda93">bStreamingEnabled</a></div><div class="ttdeci">volatile bool bStreamingEnabled</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00171">fxls8962_demo.c:171</a></div></div> 182<div class="ttc" id="a00053_html_a43be12b2b59535541533bf490e0f2aed"><div class="ttname"><a href="a00053.html#a43be12b2b59535541533bf490e0f2aed">FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Y</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ST_AXIS_SEL_EN_Y</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00445">fxls8962.h:445</a></div></div> 183<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649ba4def66a00435c85f1411a941fd23aa95"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649ba4def66a00435c85f1411a941fd23aa95">FXLS8962_SENS_CONFIG3</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00050">fxls8962.h:50</a></div></div> 184<div class="ttc" id="a00428_html_a1c419755be00b2aebbd8d31da9b66142"><div class="ttname"><a href="a00428.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a></div><div class="ttdeci">char shieldString[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00428_source.html#l00169">fxls8962_demo.c:169</a></div></div> 185<div class="ttc" id="a01847_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">fxls8962_i2c_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00046">fxls8962_drv.h:46</a></div></div> 186<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> 187<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> 188</div><!-- fragment --></div><!-- contents --> 189 190<hr class="footer"/><address class="footer"><small> 191© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 192</small></address> 193</body> 194</html> 195