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: sensors/fxls8962_drv.c Source File</title>
9<link href="tabs.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="dynsections.js"></script>
12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" />
13</head>
14<body>
15<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16<div id="titlearea">
17<table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr style="height: 56px;">
20  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
21  <td id="projectalign" style="padding-left: 0.5em;">
22   <div id="projectname">ISSDK
23   &#160;<span id="projectnumber">1.8</span>
24   </div>
25   <div id="projectbrief">IoT Sensing Software Development Kit</div>
26  </td>
27 </tr>
28 </tbody>
29</table>
30</div>
31<!-- end header part -->
32<!-- Generated by Doxygen 1.8.13 -->
33<script type="text/javascript" src="menudata.js"></script>
34<script type="text/javascript" src="menu.js"></script>
35<script type="text/javascript">
36$(function() {
37  initMenu('',false,false,'search.php','Search');
38});
39</script>
40<div id="main-nav"></div>
41<div id="nav-path" class="navpath">
42  <ul>
43<li class="navelem"><a class="el" href="dir_c77a8e2546a9c75bbba96be2ef542c8e.html">sensors</a></li>  </ul>
44</div>
45</div><!-- top -->
46<div class="header">
47  <div class="headertitle">
48<div class="title">fxls8962_drv.c</div>  </div>
49</div><!--header-->
50<div class="contents">
51<a href="a00056.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * @file fxls8962_drv.c</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * @brief The fxls8962_drv.c file implements the FXLS8962 sensor driver interfaces.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// ISSDK Includes</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;gpio_driver.h&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00059.html">fxls8962_drv.h</a>&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00533.html">systick_utils.h</a>&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// Global Variables</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="a00056.html#a7c38dca706d2748840b10fac4b445d9c">   24</a></span>&#160;uint8_t <a class="code" href="a00056.html#a7c38dca706d2748840b10fac4b445d9c">fxls8962_spiRead_CmdBuffer</a>[<a class="code" href="a00059.html#a52869f418a4bfa46ef399a768de997a7">FXLS8962_SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="a00056.html#abf0d5489852b06ea14ed95da251bb1e6">   25</a></span>&#160;uint8_t <a class="code" href="a00056.html#abf0d5489852b06ea14ed95da251bb1e6">fxls8962_spiRead_DataBuffer</a>[<a class="code" href="a00059.html#a52869f418a4bfa46ef399a768de997a7">FXLS8962_SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="a00056.html#a2d2262bd3feb0722add8dcd8c4164a7e">   26</a></span>&#160;uint8_t <a class="code" href="a00056.html#a2d2262bd3feb0722add8dcd8c4164a7e">fxls8962_spiWrite_CmdDataBuffer</a>[<a class="code" href="a00059.html#a52869f418a4bfa46ef399a768de997a7">FXLS8962_SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Functions</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//-----------------------------------------------------------------------</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="a00059.html#a0751397a32b4343a1563cb68fd0c0604">   31</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00056.html#a0751397a32b4343a1563cb68fd0c0604">FXLS8962_SPI_ReadPreprocess</a>(<span class="keywordtype">void</span> *pCmdOut, uint32_t offset, uint32_t <a class="code" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>)</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    uint8_t *pWBuff = <a class="code" href="a00056.html#a7c38dca706d2748840b10fac4b445d9c">fxls8962_spiRead_CmdBuffer</a>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    uint8_t *pRBuff = <a class="code" href="a00056.html#abf0d5489852b06ea14ed95da251bb1e6">fxls8962_spiRead_DataBuffer</a>;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">/* Formatting for Read command of FXLS8962 SENSOR. */</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    *(pWBuff) = offset | 0x80; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    *(pWBuff + 1) = 0x00;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="comment">/* Create the slave read command. */</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    pSlaveCmd-&gt;<a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a00059.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    pSlaveCmd-&gt;<a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    pSlaveCmd-&gt;<a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;}</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="a00059.html#a0f5490049d975cb3e74971d62ccfee4c">   48</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00056.html#a0f5490049d975cb3e74971d62ccfee4c">FXLS8962_SPI_WritePreprocess</a>(<span class="keywordtype">void</span> *pCmdOut, uint32_t offset, uint32_t <a class="code" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>, <span class="keywordtype">void</span> *pWritebuffer)</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    uint8_t *pWBuff = <a class="code" href="a00056.html#a2d2262bd3feb0722add8dcd8c4164a7e">fxls8962_spiWrite_CmdDataBuffer</a>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    uint8_t *pRBuff = <a class="code" href="a00056.html#a2d2262bd3feb0722add8dcd8c4164a7e">fxls8962_spiWrite_CmdDataBuffer</a> + size + <a class="code" href="a00059.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="comment">/* Formatting for Write command of FXLS8962 SENSOR. */</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    *(pWBuff) = offset &amp; 0x7F; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    *(pWBuff + 1) = 0x00;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">/* Copy the slave write command */</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    memcpy(pWBuff + FXLS8962_SPI_CMD_LEN, pWritebuffer, size);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="comment">/* Create the slave command. */</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    pSlaveCmd-&gt;<a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a00059.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    pSlaveCmd-&gt;<a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    pSlaveCmd-&gt;<a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;}</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="a00059.html#a9dbeb91056376b27aafdbe0e15ff40d2">   68</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#ad8fd4f011d15889953746a4e9765b24c">FXLS8962_SPI_Initialize</a>(</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="a01843.html">fxls8962_spi_sensorhandle_t</a> *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, <span class="keywordtype">void</span> *pSlaveSelect, uint8_t *whoami)</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    uint8_t reg;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a04823.html#aec42e876842ab9e53528930fd0dc6e77">pGPIODriver</a> = &amp;<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">    /*! Check the input parameters. */</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pBus == NULL) || (pSlaveSelect == NULL))</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    {</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">    /*! Initialize the sensor handle. */</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a> = pBus;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#ab4d08944f72286fde118fc7fa4667723">pReadPreprocessFN</a> = <a class="code" href="a00056.html#a0751397a32b4343a1563cb68fd0c0604">FXLS8962_SPI_ReadPreprocess</a>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#ab4281402074641230f56f227d0b796e5">pWritePreprocessFN</a> = <a class="code" href="a00056.html#a0f5490049d975cb3e74971d62ccfee4c">FXLS8962_SPI_WritePreprocess</a>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#aa1f5d2f72e51fd01079605106392e2eb">pTargetSlavePinID</a> = pSlaveSelect;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#ad27d09756d625d132207782d1792e4df">spiCmdLen</a> = <a class="code" href="a00059.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> = <a class="code" href="a00059.html#a2330121d8596da75f47cb2211228dff3">FXLS8962_SS_ACTIVE_VALUE</a>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = index;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = NULL;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = NULL;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">/* Initialize the Slave Select Pin. */</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(pSlaveSelect, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> == <a class="code" href="a00176.html#a67a2045f4f16d45f92fd22075416a7d6">SPI_SS_ACTIVE_LOW</a>)</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    {</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        pGPIODriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(pSlaveSelect);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    }</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    {</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        pGPIODriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(pSlaveSelect);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">    /*!  Read and store the device&#39;s WHO_AM_I.*/</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    status = <a class="code" href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a>(pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                               <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f">FXLS8962_WHO_AM_I</a>, 1, &amp;reg);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="comment">//if ((ARM_DRIVER_OK != status) || (whoAmi != reg))</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                (*whoami) = reg;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                <span class="keywordflow">if</span> ((<a class="code" href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a> != reg) || (<a class="code" href="a00053.html#a0e2813efc663c73cf197440dc777449e">FXLS8964_WHOAMI_VALUE</a> != reg) || (<a class="code" href="a00053.html#a2e3073191f679038dab97710177d8dbb">FXLS8967_WHOAMI_VALUE</a> != reg) || (<a class="code" href="a00053.html#a223547efc151de478d3fc1aaa84e4370">FXLS8974_WHOAMI_VALUE</a> != reg))</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                {</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                                <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf">SENSOR_ERROR_BAD_ADDRESS</a>;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                                pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="a00059.html#a80b758bb1c1636f6d2d7870f90fafcd0">  123</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00056.html#a80b758bb1c1636f6d2d7870f90fafcd0">FXLS8962_SPI_SetIdleTask</a>(<a class="code" href="a01843.html">fxls8962_spi_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                              <a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a> idleTask,</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                              <span class="keywordtype">void</span> *userParam)</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;{</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = userParam;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = idleTask;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;}</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="a00059.html#a742cbb5c5b1d65ffccf3b7d6c9615e0a">  131</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#a742cbb5c5b1d65ffccf3b7d6c9615e0a">FXLS8962_SPI_Configure</a>(<a class="code" href="a01843.html">fxls8962_spi_sensorhandle_t</a> *pSensorHandle, <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> *pRegWriteList)</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;{</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">    /*! Validate for the correct handle and register write list.*/</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pRegWriteList == NULL))</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    {</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before applying configuration.*/</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    {</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment">    /*! Put the device into standby mode so that configuration can be applied.*/</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    status = <a class="code" href="a00173.html#ac4eb16e5a939fce81270bab7f6707754">Register_SPI_Write</a>(pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                                <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#ad0843427bfe624c785e6f4f40d9a83b8">FXLS8962_SENS_CONFIG1_ACTIVE_STANDBY</a>,</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                                <a class="code" href="a00053.html#add33dadf685b0030604907af203a9475">FXLS8962_SENS_CONFIG1_ACTIVE_MASK</a>);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    {</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    }</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="comment">    /*! Apply the Sensor Configuration based on the Register Write List */</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    status = <a class="code" href="a00188.html#aaadd5fc1d790e7922e5303b4d61b67b4">Sensor_SPI_Write</a>(pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                              pRegWriteList);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    }</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="comment">    /*! Put the device into active mode and ready for reading data.*/</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    status = <a class="code" href="a00173.html#ac4eb16e5a939fce81270bab7f6707754">Register_SPI_Write</a>(pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                                <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#afa5f6666607f04d4f43c46f178a30c4c">FXLS8962_SENS_CONFIG1_ACTIVE_ACTIVE</a>,</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                                <a class="code" href="a00053.html#add33dadf685b0030604907af203a9475">FXLS8962_SENS_CONFIG1_ACTIVE_MASK</a>);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    {</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    }</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;}</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="a00059.html#a28138a58c06aa727c707aa927d95105c">  176</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#a28138a58c06aa727c707aa927d95105c">FXLS8962_SPI_ReadData</a>(<a class="code" href="a01843.html">fxls8962_spi_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                              <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> *pReadList,</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                              uint8_t *pBuffer)</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;{</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="comment">    /*! Validate for the correct handle and register read list.*/</span></div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pReadList == NULL) || (pBuffer == NULL))</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    {</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before reading sensor data.*/</span></div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    {</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    }</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment">    /*! Parse through the read list and read the data one by one. */</span></div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    status = <a class="code" href="a00188.html#a77509913bc008bceacf1e5f500e7499d">Sensor_SPI_Read</a>(pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                             pReadList, pBuffer);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    {</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a>;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    }</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;}</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="a00059.html#afa8884917291129b676fc1395fd95671">  205</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#afa8884917291129b676fc1395fd95671">FXLS8962_SPI_Deinit</a>(<a class="code" href="a01843.html">fxls8962_spi_sensorhandle_t</a> *pSensorHandle)</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;{</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle == NULL)</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    {</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    }</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before triggering sensor reset.*/</span></div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    {</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    }</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">    /*! Trigger sensor device reset.*/</span></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    status = <a class="code" href="a00173.html#ac4eb16e5a939fce81270bab7f6707754">Register_SPI_Write</a>(pSensorHandle-&gt;<a class="code" href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;                                <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a25389d126b3be6dcde0ae69805f99ce0">FXLS8962_SENS_CONFIG1_RST_RST</a>, <a class="code" href="a00053.html#adc91fb847ce65bf1168bf96b3b3910a8">FXLS8962_SENS_CONFIG1_RST_MASK</a>);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    }</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    {<span class="comment"></span></div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="comment">        /*! De-initialize sensor handle. */</span></div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        pSensorHandle-&gt;<a class="code" href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    }</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="comment">/* Wait for MAX of TBOOT ms after soft reset command,</span></div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="comment">     * to allow enough time for FXLS8962AF to complete its internal boot sequence and be ready for communication. */</span></div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(<a class="code" href="a00053.html#a57da8207a6c69b1ae6ff99ef17c20618">FXLS8962_TBOOT_MAX</a>);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;}</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="a00059.html#a91b0ee8a68669c81867a70743423e892">  240</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#a4a1889da307c324fcb8907b59fdf6c94">FXLS8962_I2C_Initialize</a>(</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <a class="code" href="a01847.html">fxls8962_i2c_sensorhandle_t</a> *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *whoami)</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;{</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    uint8_t reg;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="comment">    /*! Check the input parameters. */</span></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pBus == NULL))</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    {</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    }</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = index;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = NULL;</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = NULL;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="comment">    /*!  Read and store the device&#39;s WHO_AM_I.*/</span></div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    status = <a class="code" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a>(pBus, &amp;pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, sAddress, <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f">FXLS8962_WHO_AM_I</a>, 1, &amp;reg);</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="comment">//if ((ARM_DRIVER_OK != status) || (whoAmi != reg))</span></div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                (*whoami) = reg;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    {</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                <span class="keywordflow">if</span> ((<a class="code" href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a> != reg) || (<a class="code" href="a00053.html#a0e2813efc663c73cf197440dc777449e">FXLS8964_WHOAMI_VALUE</a> != reg) || (<a class="code" href="a00053.html#a2e3073191f679038dab97710177d8dbb">FXLS8967_WHOAMI_VALUE</a> != reg) || (<a class="code" href="a00053.html#a223547efc151de478d3fc1aaa84e4370">FXLS8974_WHOAMI_VALUE</a> != reg))</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                {</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                                pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                                <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf">SENSOR_ERROR_BAD_ADDRESS</a>;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                }</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    }</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="comment">    /*! Initialize the sensor handle. */</span></div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a> = pBus;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a> = sAddress;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;}</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="a00059.html#aaf373e8cc09893d925ca8893fe167f97">  278</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00056.html#aaf373e8cc09893d925ca8893fe167f97">FXLS8962_I2C_SetIdleTask</a>(<a class="code" href="a01847.html">fxls8962_i2c_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                              <a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a> idleTask,</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                              <span class="keywordtype">void</span> *userParam)</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;{</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = userParam;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = idleTask;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;}</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;</div><div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="a00059.html#a1b62cba67669ae79f5f3c2e5f846a6c7">  286</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#a1b62cba67669ae79f5f3c2e5f846a6c7">FXLS8962_I2C_Configure</a>(<a class="code" href="a01847.html">fxls8962_i2c_sensorhandle_t</a> *pSensorHandle, <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> *pRegWriteList)</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;{</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="comment">    /*! Validate for the correct handle and register write list.*/</span></div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pRegWriteList == NULL))</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    {</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    }</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before applying configuration.*/</span></div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    {</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    }</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="comment">    /*! Put the device into standby mode so that configuration can be applied.*/</span></div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    status = <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(pSensorHandle-&gt;<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                                <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#ad0843427bfe624c785e6f4f40d9a83b8">FXLS8962_SENS_CONFIG1_ACTIVE_STANDBY</a>,</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;                                <a class="code" href="a00053.html#add33dadf685b0030604907af203a9475">FXLS8962_SENS_CONFIG1_ACTIVE_MASK</a>, <span class="keyword">false</span>);</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    {</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    }</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<span class="comment">    /*! Apply the Sensor Configuration based on the Register Write List */</span></div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    status = <a class="code" href="a00182.html#aaac4c4f34b4dd37d3f202a1dbb4b000b">Sensor_I2C_Write</a>(pSensorHandle-&gt;<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                              pRegWriteList);</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    {</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    }</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;<span class="comment">    /*! Put the device into active mode and ready for reading data.*/</span></div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    status = <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(pSensorHandle-&gt;<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;                                <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#afa5f6666607f04d4f43c46f178a30c4c">FXLS8962_SENS_CONFIG1_ACTIVE_ACTIVE</a>,</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;                                <a class="code" href="a00053.html#add33dadf685b0030604907af203a9475">FXLS8962_SENS_CONFIG1_ACTIVE_MASK</a>, <span class="keyword">false</span>);</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    {</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    }</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;}</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;</div><div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="a00059.html#a14a2159c85255ee4d333dd103740e87d">  331</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#a14a2159c85255ee4d333dd103740e87d">FXLS8962_I2C_ReadData</a>(<a class="code" href="a01847.html">fxls8962_i2c_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;                              <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> *pReadList,</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                              uint8_t *pBuffer)</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;{</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="comment">    /*! Validate for the correct handle and register read list.*/</span></div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pReadList == NULL) || (pBuffer == NULL))</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    {</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    }</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before reading sensor data.*/</span></div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    {</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    }</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="comment">    /*! Parse through the read list and read the data one by one. */</span></div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    status = <a class="code" href="a00182.html#aa75349faed7c77807cb88d9224aa2636">Sensor_I2C_Read</a>(pSensorHandle-&gt;<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                             pReadList, pBuffer);</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    {</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a>;</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    }</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;}</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00360"></a><span class="lineno"><a class="line" href="a00059.html#a13160308eebd2dce90198d9f1388ad27">  360</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00056.html#a13160308eebd2dce90198d9f1388ad27">FXLS8962_I2C_DeInit</a>(<a class="code" href="a01847.html">fxls8962_i2c_sensorhandle_t</a> *pSensorHandle)</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;{</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle == NULL)</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    {</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    }</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before triggering sensor reset.*/</span></div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    {</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    }</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;<span class="comment">    /*! Trigger sensor device reset.*/</span></div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    status =</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        <a class="code" href="a00167.html#ad08d2c7880bc5f09fd27eee247311448">Register_I2C_Write</a>(pSensorHandle-&gt;<a class="code" href="a01847.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01847.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;                           <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649baa47af32a6789d51b28bbe4ed47162712">FXLS8962_SENS_CONFIG1</a>, <a class="code" href="a00053.html#a25389d126b3be6dcde0ae69805f99ce0">FXLS8962_SENS_CONFIG1_RST_RST</a>, <a class="code" href="a00053.html#adc91fb847ce65bf1168bf96b3b3910a8">FXLS8962_SENS_CONFIG1_RST_MASK</a>, <span class="keyword">false</span>);</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    {</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    }</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    {<span class="comment"></span></div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;<span class="comment">        /*! De-initialize sensor handle. */</span></div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        pSensorHandle-&gt;<a class="code" href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    }</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="comment">/* Wait for MAX of TBOOT ms after soft reset command,</span></div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="comment">     * to allow enough time for FXLS8962AF to complete its internal boot sequence and be ready for communication. */</span></div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(<a class="code" href="a00053.html#a57da8207a6c69b1ae6ff99ef17c20618">FXLS8962_TBOOT_MAX</a>);</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;}</div><div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00037">sensor_drv.h:37</a></div></div>
52<div class="ttc" id="a03903_html_ac3e094122adb91dc940bc7c033b47baa"><div class="ttname"><a href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">GENERIC_DRIVER_GPIO::set_pin</a></div><div class="ttdeci">void(* set_pin)(pinID_t aPinId)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00046">Driver_GPIO.h:46</a></div></div>
53<div class="ttc" id="a00521_html_a18e09d6eabccd6dfc2d5066542020e59"><div class="ttname"><a href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a></div><div class="ttdeci">uint32_t size</div><div class="ttdef"><b>Definition:</b> <a href="a00521_source.html#l00043">data_format_service.h:43</a></div></div>
54<div class="ttc" id="a03803_html_a45751b25ae9b3056830d3e425bd7a1b5"><div class="ttname"><a href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">spiSlaveSpecificParams_t::ssActiveValue</a></div><div class="ttdeci">uint8_t ssActiveValue</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00052">register_io_spi.h:52</a></div></div>
55<div class="ttc" id="a03803_html_aa1f5d2f72e51fd01079605106392e2eb"><div class="ttname"><a href="a03803.html#aa1f5d2f72e51fd01079605106392e2eb">spiSlaveSpecificParams_t::pTargetSlavePinID</a></div><div class="ttdeci">void * pTargetSlavePinID</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00050">register_io_spi.h:50</a></div></div>
56<div class="ttc" id="a00056_html_a7c38dca706d2748840b10fac4b445d9c"><div class="ttname"><a href="a00056.html#a7c38dca706d2748840b10fac4b445d9c">fxls8962_spiRead_CmdBuffer</a></div><div class="ttdeci">uint8_t fxls8962_spiRead_CmdBuffer[FXLS8962_SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00024">fxls8962_drv.c:24</a></div></div>
57<div class="ttc" id="a00182_html_aa75349faed7c77807cb88d9224aa2636"><div class="ttname"><a href="a00182.html#aa75349faed7c77807cb88d9224aa2636">Sensor_I2C_Read</a></div><div class="ttdeci">int32_t Sensor_I2C_Read(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, const registerreadlist_t *pReadList, uint8_t *pOutBuffer)</div><div class="ttdoc">Read register data from a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00105">sensor_io_i2c.c:105</a></div></div>
58<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>
59<div class="ttc" id="a00359_html_a369536ebfe385731562c0b55dd6f3a7c"><div class="ttname"><a href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a></div><div class="ttdeci">int32_t status</div><div class="ttdef"><b>Definition:</b> <a href="a00359_source.html#l00248">fxls896xaf_freemaster_demo.c:248</a></div></div>
60<div class="ttc" id="a00056_html_a0f5490049d975cb3e74971d62ccfee4c"><div class="ttname"><a href="a00056.html#a0f5490049d975cb3e74971d62ccfee4c">FXLS8962_SPI_WritePreprocess</a></div><div class="ttdeci">void FXLS8962_SPI_WritePreprocess(void *pCmdOut, uint32_t offset, uint32_t size, void *pWritebuffer)</div><div class="ttdoc">The SPI Write Pre-Process function to generate Sensor specific SPI Message Header. </div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00048">fxls8962_drv.c:48</a></div></div>
61<div class="ttc" id="a00056_html_a2d2262bd3feb0722add8dcd8c4164a7e"><div class="ttname"><a href="a00056.html#a2d2262bd3feb0722add8dcd8c4164a7e">fxls8962_spiWrite_CmdDataBuffer</a></div><div class="ttdeci">uint8_t fxls8962_spiWrite_CmdDataBuffer[FXLS8962_SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00026">fxls8962_drv.c:26</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="a00167_html_ac8a60c799d9dbc84531b4680762eb8dc"><div class="ttname"><a href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a></div><div class="ttdeci">int32_t Register_I2C_Read(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, uint8_t offset, uint8_t length, uint8_t *pOutBuffer)</div><div class="ttdoc">The interface function to read a sensor register. </div><div class="ttdef"><b>Definition:</b> <a href="a00167_source.html#l00310">register_io_i2c.c:310</a></div></div>
64<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>
65<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00036">sensor_drv.h:36</a></div></div>
66<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>
67<div class="ttc" id="a00530_html_ab052b802081fd87e1bda8d56e2c0db42"><div class="ttname"><a href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a></div><div class="ttdeci">void BOARD_DELAY_ms(uint32_t delay_ms)</div><div class="ttdoc">Function to insert delays. </div><div class="ttdef"><b>Definition:</b> <a href="a00530_source.html#l00081">systick_utils.c:81</a></div></div>
68<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f">FXLS8962_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00046">fxls8962.h:46</a></div></div>
69<div class="ttc" id="a00053_html_adc91fb847ce65bf1168bf96b3b3910a8"><div class="ttname"><a href="a00053.html#adc91fb847ce65bf1168bf96b3b3910a8">FXLS8962_SENS_CONFIG1_RST_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_RST_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00435">fxls8962.h:435</a></div></div>
70<div class="ttc" id="a03803_html_ad27d09756d625d132207782d1792e4df"><div class="ttname"><a href="a03803.html#ad27d09756d625d132207782d1792e4df">spiSlaveSpecificParams_t::spiCmdLen</a></div><div class="ttdeci">uint8_t spiCmdLen</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00051">register_io_spi.h:51</a></div></div>
71<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>
72<div class="ttc" id="a00056_html_a0751397a32b4343a1563cb68fd0c0604"><div class="ttname"><a href="a00056.html#a0751397a32b4343a1563cb68fd0c0604">FXLS8962_SPI_ReadPreprocess</a></div><div class="ttdeci">void FXLS8962_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)</div><div class="ttdoc">The SPI Read Pre-Process function to generate Sensor specific SPI Message Header. ...</div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00031">fxls8962_drv.c:31</a></div></div>
73<div class="ttc" id="a01847_html_a67af74c3fc959654c6dc8bcff3a2ea80"><div class="ttname"><a href="a01847.html#a67af74c3fc959654c6dc8bcff3a2ea80">fxls8962_i2c_sensorhandle_t::slaveAddress</a></div><div class="ttdeci">uint16_t slaveAddress</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00049">fxls8962_drv.h:49</a></div></div>
74<div class="ttc" id="a00056_html_a28138a58c06aa727c707aa927d95105c"><div class="ttname"><a href="a00056.html#a28138a58c06aa727c707aa927d95105c">FXLS8962_SPI_ReadData</a></div><div class="ttdeci">int32_t FXLS8962_SPI_ReadData(fxls8962_spi_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#l00176">fxls8962_drv.c:176</a></div></div>
75<div class="ttc" id="a00173_html_ac4eb16e5a939fce81270bab7f6707754"><div class="ttname"><a href="a00173.html#ac4eb16e5a939fce81270bab7f6707754">Register_SPI_Write</a></div><div class="ttdeci">int32_t Register_SPI_Write(ARM_DRIVER_SPI *pCommDrv, registerDeviceInfo_t *devInfo, void *pWriteParams, uint8_t offset, uint8_t value, uint8_t mask)</div><div class="ttdoc">The interface function to write a sensor register. </div><div class="ttdef"><b>Definition:</b> <a href="a00173_source.html#l00216">register_io_spi.c:216</a></div></div>
76<div class="ttc" id="a03799_html_ab2c6b258f02add8fdf4cfc7c371dd772"><div class="ttname"><a href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">spi_mater_SlaveCmd::size</a></div><div class="ttdeci">uint32_t size</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00040">register_io_spi.h:40</a></div></div>
77<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>
78<div class="ttc" id="a03819_html_a693f84e28d48677a73cd40d7e5fc79ed"><div class="ttname"><a href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">registerDeviceInfo_t::deviceInstance</a></div><div class="ttdeci">uint8_t deviceInstance</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00106">sensor_drv.h:106</a></div></div>
79<div class="ttc" id="a00176_html_a67a2045f4f16d45f92fd22075416a7d6"><div class="ttname"><a href="a00176.html#a67a2045f4f16d45f92fd22075416a7d6">SPI_SS_ACTIVE_LOW</a></div><div class="ttdeci">#define SPI_SS_ACTIVE_LOW</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00021">register_io_spi.h:21</a></div></div>
80<div class="ttc" id="a00053_html_a25389d126b3be6dcde0ae69805f99ce0"><div class="ttname"><a href="a00053.html#a25389d126b3be6dcde0ae69805f99ce0">FXLS8962_SENS_CONFIG1_RST_RST</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_RST_RST</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00441">fxls8962.h:441</a></div></div>
81<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>
82<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>
83<div class="ttc" id="a00188_html_a77509913bc008bceacf1e5f500e7499d"><div class="ttname"><a href="a00188.html#a77509913bc008bceacf1e5f500e7499d">Sensor_SPI_Read</a></div><div class="ttdeci">int32_t Sensor_SPI_Read(ARM_DRIVER_SPI *pCommDrv, registerDeviceInfo_t *devInfo, void *pReadParams, const registerreadlist_t *pReadList, uint8_t *pOutBuffer)</div><div class="ttdoc">Read register data from a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00188_source.html#l00104">sensor_io_spi.c:104</a></div></div>
84<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>
85<div class="ttc" id="a00056_html_a80b758bb1c1636f6d2d7870f90fafcd0"><div class="ttname"><a href="a00056.html#a80b758bb1c1636f6d2d7870f90fafcd0">FXLS8962_SPI_SetIdleTask</a></div><div class="ttdeci">void FXLS8962_SPI_SetIdleTask(fxls8962_spi_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)</div><div class="ttdoc">: The interface function to set the SPI Idle Task. </div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00123">fxls8962_drv.c:123</a></div></div>
86<div class="ttc" id="a00053_html_a2e3073191f679038dab97710177d8dbb"><div class="ttname"><a href="a00053.html#a2e3073191f679038dab97710177d8dbb">FXLS8967_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXLS8967_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00089">fxls8962.h:89</a></div></div>
87<div class="ttc" id="a00059_html_a8366c105b3fa0f74ec723060829f2001"><div class="ttname"><a href="a00059.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a></div><div class="ttdeci">#define FXLS8962_SPI_CMD_LEN</div><div class="ttdoc">The size of the Sensor specific SPI Header. </div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00065">fxls8962_drv.h:65</a></div></div>
88<div class="ttc" id="a00182_html_aaac4c4f34b4dd37d3f202a1dbb4b000b"><div class="ttname"><a href="a00182.html#aaac4c4f34b4dd37d3f202a1dbb4b000b">Sensor_I2C_Write</a></div><div class="ttdeci">int32_t Sensor_I2C_Write(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, const registerwritelist_t *pRegWriteList)</div><div class="ttdoc">Write register data to a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00071">sensor_io_i2c.c:71</a></div></div>
89<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>
90<div class="ttc" id="a01843_html_a1fdc2bf5595c2e64dc06d987769834eb"><div class="ttname"><a href="a01843.html#a1fdc2bf5595c2e64dc06d987769834eb">fxls8962_spi_sensorhandle_t::isInitialized</a></div><div class="ttdeci">bool isInitialized</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00037">fxls8962_drv.h:37</a></div></div>
91<div class="ttc" id="a03803_html_ab4d08944f72286fde118fc7fa4667723"><div class="ttname"><a href="a03803.html#ab4d08944f72286fde118fc7fa4667723">spiSlaveSpecificParams_t::pReadPreprocessFN</a></div><div class="ttdeci">fpSpiReadPreprocessFn_t pReadPreprocessFN</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00048">register_io_spi.h:48</a></div></div>
92<div class="ttc" id="a00056_html_abf0d5489852b06ea14ed95da251bb1e6"><div class="ttname"><a href="a00056.html#abf0d5489852b06ea14ed95da251bb1e6">fxls8962_spiRead_DataBuffer</a></div><div class="ttdeci">uint8_t fxls8962_spiRead_DataBuffer[FXLS8962_SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00025">fxls8962_drv.c:25</a></div></div>
93<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf">SENSOR_ERROR_BAD_ADDRESS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00035">sensor_drv.h:35</a></div></div>
94<div class="ttc" id="a03799_html"><div class="ttname"><a href="a03799.html">spi_mater_SlaveCmd</a></div><div class="ttdoc">The SPI Slave Transfer Command Params SDK2.0 Driver. </div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00038">register_io_spi.h:38</a></div></div>
95<div class="ttc" id="a01843_html"><div class="ttname"><a href="a01843.html">fxls8962_spi_sensorhandle_t</a></div><div class="ttdoc">This defines the sensor specific information for SPI. </div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00033">fxls8962_drv.h:33</a></div></div>
96<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00038">sensor_drv.h:38</a></div></div>
97<div class="ttc" id="a01843_html_a3a881257fd72d50e25d3389656b9eacb"><div class="ttname"><a href="a01843.html#a3a881257fd72d50e25d3389656b9eacb">fxls8962_spi_sensorhandle_t::pCommDrv</a></div><div class="ttdeci">ARM_DRIVER_SPI * pCommDrv</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00036">fxls8962_drv.h:36</a></div></div>
98<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>
99<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>
100<div class="ttc" id="a03799_html_a7b4f7b0bd6850027bc5cf068ed22f608"><div class="ttname"><a href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">spi_mater_SlaveCmd::pWriteBuffer</a></div><div class="ttdeci">uint8_t * pWriteBuffer</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00042">register_io_spi.h:42</a></div></div>
101<div class="ttc" id="a03819_html_abb8c8f961a02b447e127bd6ef3215c7d"><div class="ttname"><a href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">registerDeviceInfo_t::functionParam</a></div><div class="ttdeci">void * functionParam</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00105">sensor_drv.h:105</a></div></div>
102<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00034">sensor_drv.h:34</a></div></div>
103<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>
104<div class="ttc" id="a00053_html_afa5f6666607f04d4f43c46f178a30c4c"><div class="ttname"><a href="a00053.html#afa5f6666607f04d4f43c46f178a30c4c">FXLS8962_SENS_CONFIG1_ACTIVE_ACTIVE</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ACTIVE_ACTIVE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00462">fxls8962.h:462</a></div></div>
105<div class="ttc" id="a00059_html_a52869f418a4bfa46ef399a768de997a7"><div class="ttname"><a href="a00059.html#a52869f418a4bfa46ef399a768de997a7">FXLS8962_SPI_MAX_MSG_SIZE</a></div><div class="ttdeci">#define FXLS8962_SPI_MAX_MSG_SIZE</div><div class="ttdoc">The MAX size of SPI message. </div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00061">fxls8962_drv.h:61</a></div></div>
106<div class="ttc" id="a03799_html_a10f5aa82cde5c3db8000a0e7cc885a60"><div class="ttname"><a href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">spi_mater_SlaveCmd::pReadBuffer</a></div><div class="ttdeci">uint8_t * pReadBuffer</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00041">register_io_spi.h:41</a></div></div>
107<div class="ttc" id="a01843_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a01843.html#ae75b47fd9e098d6bd3b28f6be6586998">fxls8962_spi_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00035">fxls8962_drv.h:35</a></div></div>
108<div class="ttc" id="a00056_html_a742cbb5c5b1d65ffccf3b7d6c9615e0a"><div class="ttname"><a href="a00056.html#a742cbb5c5b1d65ffccf3b7d6c9615e0a">FXLS8962_SPI_Configure</a></div><div class="ttdeci">int32_t FXLS8962_SPI_Configure(fxls8962_spi_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#l00131">fxls8962_drv.c:131</a></div></div>
109<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>
110<div class="ttc" id="a00053_html_ad0843427bfe624c785e6f4f40d9a83b8"><div class="ttname"><a href="a00053.html#ad0843427bfe624c785e6f4f40d9a83b8">FXLS8962_SENS_CONFIG1_ACTIVE_STANDBY</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ACTIVE_STANDBY</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00461">fxls8962.h:461</a></div></div>
111<div class="ttc" id="a00056_html_ad8fd4f011d15889953746a4e9765b24c"><div class="ttname"><a href="a00056.html#ad8fd4f011d15889953746a4e9765b24c">FXLS8962_SPI_Initialize</a></div><div class="ttdeci">int32_t FXLS8962_SPI_Initialize(fxls8962_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSlaveSelect, 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#l00068">fxls8962_drv.c:68</a></div></div>
112<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>
113<div class="ttc" id="a03803_html_ab4281402074641230f56f227d0b796e5"><div class="ttname"><a href="a03803.html#ab4281402074641230f56f227d0b796e5">spiSlaveSpecificParams_t::pWritePreprocessFN</a></div><div class="ttdeci">fpSpiWritePreprocessFn_t pWritePreprocessFN</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00049">register_io_spi.h:49</a></div></div>
114<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>
115<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>
116<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>
117<div class="ttc" id="a01847_html_a1fdc2bf5595c2e64dc06d987769834eb"><div class="ttname"><a href="a01847.html#a1fdc2bf5595c2e64dc06d987769834eb">fxls8962_i2c_sensorhandle_t::isInitialized</a></div><div class="ttdeci">bool isInitialized</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00048">fxls8962_drv.h:48</a></div></div>
118<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>
119<div class="ttc" id="a00059_html_a2330121d8596da75f47cb2211228dff3"><div class="ttname"><a href="a00059.html#a2330121d8596da75f47cb2211228dff3">FXLS8962_SS_ACTIVE_VALUE</a></div><div class="ttdeci">#define FXLS8962_SS_ACTIVE_VALUE</div><div class="ttdoc">Is the Slave Select Pin Active Low or High. </div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00069">fxls8962_drv.h:69</a></div></div>
120<div class="ttc" id="a00053_html_a223547efc151de478d3fc1aaa84e4370"><div class="ttname"><a href="a00053.html#a223547efc151de478d3fc1aaa84e4370">FXLS8974_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXLS8974_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00090">fxls8962.h:90</a></div></div>
121<div class="ttc" id="a00053_html_a57da8207a6c69b1ae6ff99ef17c20618"><div class="ttname"><a href="a00053.html#a57da8207a6c69b1ae6ff99ef17c20618">FXLS8962_TBOOT_MAX</a></div><div class="ttdeci">#define FXLS8962_TBOOT_MAX</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00091">fxls8962.h:91</a></div></div>
122<div class="ttc" id="a00188_html_aaadd5fc1d790e7922e5303b4d61b67b4"><div class="ttname"><a href="a00188.html#aaadd5fc1d790e7922e5303b4d61b67b4">Sensor_SPI_Write</a></div><div class="ttdeci">int32_t Sensor_SPI_Write(ARM_DRIVER_SPI *pCommDrv, registerDeviceInfo_t *devInfo, void *pWriteParams, const registerwritelist_t *pRegWriteList)</div><div class="ttdoc">Write register data to a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00188_source.html#l00071">sensor_io_spi.c:71</a></div></div>
123<div class="ttc" id="a01843_html_a5ac5d34e6fa204911ab8492c20890341"><div class="ttname"><a href="a01843.html#a5ac5d34e6fa204911ab8492c20890341">fxls8962_spi_sensorhandle_t::slaveParams</a></div><div class="ttdeci">spiSlaveSpecificParams_t slaveParams</div><div class="ttdef"><b>Definition:</b> <a href="a00059_source.html#l00038">fxls8962_drv.h:38</a></div></div>
124<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>
125<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>
126<div class="ttc" id="a00056_html_afa8884917291129b676fc1395fd95671"><div class="ttname"><a href="a00056.html#afa8884917291129b676fc1395fd95671">FXLS8962_SPI_Deinit</a></div><div class="ttdeci">int32_t FXLS8962_SPI_Deinit(fxls8962_spi_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#l00205">fxls8962_drv.c:205</a></div></div>
127<div class="ttc" id="a00173_html_a76a3aee498397854509b81ae2da2f85e"><div class="ttname"><a href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a></div><div class="ttdeci">int32_t Register_SPI_Read(ARM_DRIVER_SPI *pCommDrv, registerDeviceInfo_t *devInfo, void *pReadParams, uint8_t offset, uint8_t length, uint8_t *pOutBuffer)</div><div class="ttdoc">The interface function to read a sensor register. </div><div class="ttdef"><b>Definition:</b> <a href="a00173_source.html#l00313">register_io_spi.c:313</a></div></div>
128<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>
129<div class="ttc" id="a03819_html_acf9a866fc6b31f72a8e26437420e0354"><div class="ttname"><a href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">registerDeviceInfo_t::idleFunction</a></div><div class="ttdeci">registeridlefunction_t idleFunction</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00104">sensor_drv.h:104</a></div></div>
130<div class="ttc" id="a00053_html_a0e2813efc663c73cf197440dc777449e"><div class="ttname"><a href="a00053.html#a0e2813efc663c73cf197440dc777449e">FXLS8964_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXLS8964_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00088">fxls8962.h:88</a></div></div>
131<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>
132<div class="ttc" id="a00053_html_add33dadf685b0030604907af203a9475"><div class="ttname"><a href="a00053.html#add33dadf685b0030604907af203a9475">FXLS8962_SENS_CONFIG1_ACTIVE_MASK</a></div><div class="ttdeci">#define FXLS8962_SENS_CONFIG1_ACTIVE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00420">fxls8962.h:420</a></div></div>
133<div class="ttc" id="a04823_html_aec42e876842ab9e53528930fd0dc6e77"><div class="ttname"><a href="a04823.html#aec42e876842ab9e53528930fd0dc6e77">pGPIODriver</a></div><div class="ttdeci">GENERIC_DRIVER_GPIO * pGPIODriver</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00302">auto_detection_service.c:302</a></div></div>
134</div><!-- fragment --></div><!-- contents -->
135
136<hr class="footer"/><address class="footer"><small>
137&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
138</small></address>
139</body>
140</html>
141