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/fxlc95000_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">fxlc95000_drv.c</div>  </div>
49</div><!--header-->
50<div class="contents">
51<a href="a00038.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * @file  fxlc95000_drv.c</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * @brief The fxlc95000_drv.c file implements the FXLC95000 sensor driver interface.</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="a00041.html">fxlc95000_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="a00038.html#a232c113a4b3336dfe615ed74b754995e">   24</a></span>&#160;uint8_t <a class="code" href="a00038.html#a232c113a4b3336dfe615ed74b754995e">fxlc95000_spiRead_CmdBuffer</a>[<a class="code" href="a00041.html#a758f92931bd6e4cd7b0d2502d7fc6cbf">FXLC95000_SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="a00038.html#af3d8aef641cb63a10584bae817068c2f">   25</a></span>&#160;uint8_t <a class="code" href="a00038.html#af3d8aef641cb63a10584bae817068c2f">fxlc95000_spiRead_DataBuffer</a>[<a class="code" href="a00041.html#a758f92931bd6e4cd7b0d2502d7fc6cbf">FXLC95000_SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="a00038.html#a87c2db34761f064977284c39c36fd7d3">   26</a></span>&#160;uint8_t <a class="code" href="a00038.html#a87c2db34761f064977284c39c36fd7d3">fxlc95000_spiWrite_CmdDataBuffer</a>[<a class="code" href="a00041.html#a758f92931bd6e4cd7b0d2502d7fc6cbf">FXLC95000_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="a00041.html#a8e3488e3a4db535a6c822746377c289b">   31</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00038.html#a8e3488e3a4db535a6c822746377c289b">FXLC95000_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="a00038.html#a232c113a4b3336dfe615ed74b754995e">fxlc95000_spiRead_CmdBuffer</a>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    uint8_t *pRBuff = <a class="code" href="a00038.html#af3d8aef641cb63a10584bae817068c2f">fxlc95000_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 FXLC95000 SENSOR. */</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    *(pWBuff) =</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        (offset &amp; 0x7F) &lt;&lt; 1; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></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="a00041.html#a616ba9547dc35682ff155933f15652b4">FXLC95000_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="a00041.html#a627506e76cad9d842873b8e549998baf">   48</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00038.html#a627506e76cad9d842873b8e549998baf">FXLC95000_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="a00038.html#a87c2db34761f064977284c39c36fd7d3">fxlc95000_spiWrite_CmdDataBuffer</a>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    uint8_t *pRBuff = <a class="code" href="a00038.html#a87c2db34761f064977284c39c36fd7d3">fxlc95000_spiWrite_CmdDataBuffer</a> + size + <a class="code" href="a00041.html#a616ba9547dc35682ff155933f15652b4">FXLC95000_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 FXLC95000 SENSOR. */</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    *(pWBuff) =</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        (offset | 0x40) &lt;&lt; 1; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></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 + FXLC95000_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="a00041.html#a616ba9547dc35682ff155933f15652b4">FXLC95000_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="a00041.html#aec67caf020c27066c2918ca5ba6807ac">   68</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#aec67caf020c27066c2918ca5ba6807ac">FXLC95000_SPI_Initialize</a>(<a class="code" href="a01231.html">fxlc95000_spi_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                                 ARM_DRIVER_SPI *pBus,</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                                 uint8_t index,</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                                 <span class="keywordtype">void</span> *pSpiSelect,</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                                 <span class="keywordtype">void</span> *pSlaveSelect,</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                                 <span class="keywordtype">void</span> *pReset,</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                 uint16_t buildId)</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;{</div><div class="line"><a name="l00076"></a><span class="lineno">   76</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="l00077"></a><span class="lineno">   77</span>&#160;    uint16_t readNumber[2];</div><div class="line"><a name="l00078"></a><span class="lineno">   78</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="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">    /*! Check the input parameters. */</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle == NULL || pBus == NULL || pSpiSelect == NULL || pSlaveSelect == NULL || pReset == NULL)</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    {</div><div class="line"><a name="l00083"></a><span class="lineno">   83</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="l00084"></a><span class="lineno">   84</span>&#160;    }</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment">    /*! Initialize the sensor handle. */</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a> = pBus;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#ab4d08944f72286fde118fc7fa4667723">pReadPreprocessFN</a> = <a class="code" href="a00038.html#a8e3488e3a4db535a6c822746377c289b">FXLC95000_SPI_ReadPreprocess</a>;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#ab4281402074641230f56f227d0b796e5">pWritePreprocessFN</a> = <a class="code" href="a00038.html#a627506e76cad9d842873b8e549998baf">FXLC95000_SPI_WritePreprocess</a>;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#aa1f5d2f72e51fd01079605106392e2eb">pTargetSlavePinID</a> = pSlaveSelect;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#ad27d09756d625d132207782d1792e4df">spiCmdLen</a> = <a class="code" href="a00041.html#a616ba9547dc35682ff155933f15652b4">FXLC95000_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> = <a class="code" href="a00041.html#a612d388509cf109459f5193b4d400e47">FXLC95000_SS_ACTIVE_VALUE</a>;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = index;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = NULL;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = NULL;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="comment">/* Initialize the Slave Select and reset Pins. */</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</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="l00100"></a><span class="lineno">  100</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(pSpiSelect, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(pReset, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</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">/* Pull down SPI Select, Pull up SS and Reset */</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(pSlaveSelect);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(pSpiSelect);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(pReset);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(30); <span class="comment">/* Wait for Part to Complete Reset */</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(pReset);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(50); <span class="comment">/* Wait for Part to Initialize in SPI Mode */</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    pGPIODriver-&gt;<a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(pSpiSelect);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(10); <span class="comment">/* Wait for ROM Initialization before communication */</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="comment">/* Verify if the SPI connection by writing command to Boot to flash and fetch Device Info.</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment">     * A matching Build Number confirms Sensor Identity and Firmware. */</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="a00173.html#a0662e3575811a227d02c1cfe802744c5">Register_SPI_BlockWrite</a>(pSensorHandle-&gt;<a class="code" href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>, 0,</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                            BootToFlash, <span class="keyword">sizeof</span>(BootToFlash));</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(10); <span class="comment">/* Allow time for the device to boot to Flash. */</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="a00173.html#a0662e3575811a227d02c1cfe802744c5">Register_SPI_BlockWrite</a>(pSensorHandle-&gt;<a class="code" href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>, 0,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                            GetDeviceInfoCmd, <span class="keyword">sizeof</span>(GetDeviceInfoCmd));</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(1);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    status = <a class="code" href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a>(pSensorHandle-&gt;<a class="code" href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                               <a class="code" href="a00035.html#ae7c20f0bc94db969f0d70ce16655fda6">FXLC95000_BUILD_ID_OFFSET</a>, <a class="code" href="a00035.html#a6bf0a136899bc45a68e5e82d6a924cd3">FXLC95000_BUILD_ID_SIZE</a> + <a class="code" href="a00035.html#a106c7d1e7141449867e66ff63f94481a">FXLC95000_PART_NUMBER_SIZE</a>,</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                               (uint8_t *)&amp;readNumber);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    readNumber[0] = (readNumber[0] &gt;&gt; 8) | (readNumber[0] &lt;&lt; 8);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    readNumber[1] = (readNumber[1] &gt;&gt; 8) | (readNumber[1] &lt;&lt; 8);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status || readNumber[0] != buildId || readNumber[1] != <a class="code" href="a00035.html#a48c1619984377175d01158c6d0458359">FXLC95000_PART_NUMBER</a>)</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">  131</span>&#160;        pSensorHandle-&gt;<a class="code" href="a01231.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</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;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="a00041.html#adbebb6903baa6626cd08f78ddcbc2925">  139</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00038.html#adbebb6903baa6626cd08f78ddcbc2925">FXLC95000_SPI_SetIdleTask</a>(<a class="code" href="a01231.html">fxlc95000_spi_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                               <a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a> idleTask,</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                               <span class="keywordtype">void</span> *userParam)</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;{</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = userParam;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = idleTask;</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;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="a00041.html#ac1215eeedc9ffa5b5d3ee5b133d7ee2a">  147</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#a8d7cf0240f1e479eec936dac59023f3d">FXLC95000_SPI_CommandResponse</a>(<a class="code" href="a01231.html">fxlc95000_spi_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> *pCommandList,</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> *pResponseList,</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                                      uint8_t *pBuffer)</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;{</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <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="l00153"></a><span class="lineno">  153</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="comment">    /*! Validate for the correct handle and command list.*/</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle == NULL || (pCommandList == NULL &amp;&amp; pResponseList == NULL))</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    {</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before reading sensor data.*/</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01231.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</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="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    }</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">if</span> (pCommandList != NULL)</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    { <span class="comment">/* Write command to fetch configuration. */</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        status = <a class="code" href="a00188.html#a6891c5409037ff96ef29750f131f4c00">Sensor_SPI_BlockWrite</a>(pSensorHandle-&gt;<a class="code" href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                                       pCommandList, <a class="code" href="a00041.html#af7c1353b603dd5e2c10a88bd935bad27">FXLC95000_COCO_ERROR_MASK</a>);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</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;            <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        }</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    }</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="comment">    /*! Parse through the read list and read the data one by one. */</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordflow">if</span> (pResponseList != NULL)</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    {</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        status = <a class="code" href="a00188.html#a77509913bc008bceacf1e5f500e7499d">Sensor_SPI_Read</a>(pSensorHandle-&gt;<a class="code" href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">slaveParams</a>,</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                                 pResponseList, pBuffer);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        {</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a>;</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;    }</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="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;}</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="a00041.html#ae354fc2aafbf7609f21ebc8cf2538db0">  190</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#ae354fc2aafbf7609f21ebc8cf2538db0">FXLC95000_I2C_CheckRomMode</a>(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress)</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;{</div><div class="line"><a name="l00192"></a><span class="lineno">  192</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="l00193"></a><span class="lineno">  193</span>&#160;    uint16_t readNumber[2];</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = index, .idleFunction = NULL};</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <a class="code" href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01">Register_I2C_BlockWrite</a>(pBus, &amp;deviceInfo, sAddress, 0, GetDeviceInfoCmd, <span class="keyword">sizeof</span>(GetDeviceInfoCmd));</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(1);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    status = <a class="code" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a>(pBus, &amp;deviceInfo, sAddress, <a class="code" href="a00035.html#ae7c20f0bc94db969f0d70ce16655fda6">FXLC95000_BUILD_ID_OFFSET</a>,</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                               <a class="code" href="a00035.html#a6bf0a136899bc45a68e5e82d6a924cd3">FXLC95000_BUILD_ID_SIZE</a> + <a class="code" href="a00035.html#a106c7d1e7141449867e66ff63f94481a">FXLC95000_PART_NUMBER_SIZE</a>, (uint8_t *)&amp;readNumber);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    readNumber[0] = (readNumber[0] &gt;&gt; 8) | (readNumber[0] &lt;&lt; 8);</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    readNumber[1] = (readNumber[1] &gt;&gt; 8) | (readNumber[1] &lt;&lt; 8);</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status || readNumber[0] != <a class="code" href="a00035.html#a2725a5705adac6f1e949c80731fa0e7b">FXLC95000_RESERVED_ID</a> || readNumber[1] != <a class="code" href="a00035.html#a48c1619984377175d01158c6d0458359">FXLC95000_PART_NUMBER</a>)</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">  205</span>&#160;        <span class="keywordflow">return</span> -1;</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;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;}</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="a00041.html#a871aa55982b73b6f38f5bfa87a3c070e">  211</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a>(ARM_DRIVER_I2C *pBus,</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                                    uint8_t index,</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;                                    uint16_t sAddress,</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                                    <span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> *pCommandList)</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;{</div><div class="line"><a name="l00216"></a><span class="lineno">  216</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="l00217"></a><span class="lineno">  217</span>&#160;    <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = index, .idleFunction = NULL};</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="comment">    /*! Validate for the correct handle and register write list.*/</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keywordflow">if</span> (pBus == NULL || pCommandList == NULL)</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    {</div><div class="line"><a name="l00222"></a><span class="lineno">  222</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="l00223"></a><span class="lineno">  223</span>&#160;    }</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="comment">/* Write command to fetch configuration. */</span></div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    status = <a class="code" href="a00182.html#ad6c175b9a45aa936aa74abda223eeafe">Sensor_I2C_BlockWrite</a>(pBus, &amp;deviceInfo, sAddress, pCommandList, <a class="code" href="a00041.html#af7c1353b603dd5e2c10a88bd935bad27">FXLC95000_COCO_ERROR_MASK</a>);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    {</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    }</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;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;}</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="a00041.html#a0ad7b40a417661e25cdee37caccc21a6">  235</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#a0ad7b40a417661e25cdee37caccc21a6">FXLC95000_I2C_FlashPayload</a>(</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *pFlashBytes, uint8_t numBytes)</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;{</div><div class="line"><a name="l00238"></a><span class="lineno">  238</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="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="comment">/* First 4 bytes is address (which fits into 2 byte separate address field and Bank code)</span></div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="comment">     * and then remaining bytes is WData. */</span></div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <span class="comment">/* Make sure that the Flash payload received has the minimum information bytes</span></div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="comment">     * required to construct a CI_READ_WRITE ROM Command. */</span></div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordflow">if</span> (numBytes &gt;= <a class="code" href="a00041.html#a87a05641d2fbd088885921b1ef6edadf">FXLC95000_FLASH_PAYLOAD_ADDR_LEN</a> + <a class="code" href="a00041.html#a9d462bd063315f4b059730007b7c8957">FXLC95000_ROM_CI_WRITE_MIN_LEN</a>)</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    {</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        uint8_t bytesToPageBoundary = 256 - *(pFlashBytes + 3);</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        uint8_t bytesAfterPageBoundary = numBytes - bytesToPageBoundary - <a class="code" href="a00041.html#a87a05641d2fbd088885921b1ef6edadf">FXLC95000_FLASH_PAYLOAD_ADDR_LEN</a>;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="comment">/* Prepare CI_READ_WRITE ROM Command. */</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="comment">/* Check if the write command being attempted spans across a page boundary (256 bytes). */</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        <span class="keywordflow">if</span> (bytesToPageBoundary &gt; 0 &amp;&amp; bytesToPageBoundary &lt; numBytes - FXLC95000_FLASH_PAYLOAD_ADDR_LEN)</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        { <span class="comment">/* Break it into 2 write commands if write spans across 2 pages. Ref. Section 16.5 of FXLC95000CLHWRM. */</span></div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;            uint8_t writeFlashCommand[<a class="code" href="a00041.html#a3c809b5689ca3dc0738f8a84c25dfca8">FXLC95000_ROM_CI_READ_WRITE_MAX_LEN</a>] = {0x0A, 0x00, 0x12, 0x34, 0x56, 0x78};</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;            uint8_t writeFlashCommand_2[<a class="code" href="a00041.html#a3c809b5689ca3dc0738f8a84c25dfca8">FXLC95000_ROM_CI_READ_WRITE_MAX_LEN</a>] = {0x0A, 0x00, 0x12, 0x34, 0x56, 0x78};</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            writeFlashCommand[1] =</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                (*(pFlashBytes + 1) == 0) ? 0x1F &amp; (bytesToPageBoundary) : 0xC0 | (bytesToPageBoundary);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; bytesToPageBoundary + <a class="code" href="a00041.html#a292154e8131ca012097a2b0201a18f37">FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</a>;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                 i++) <span class="comment">// 2 LSB Bytes of Address + Data.</span></div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;            {</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                writeFlashCommand[<a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + i] =</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                    pFlashBytes[FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN + i];</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;            }</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            writeFlashCommand_2[1] =</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                (*(pFlashBytes + 1) == 0) ? 0x1F &amp; (bytesAfterPageBoundary) : 0xC0 | (bytesAfterPageBoundary);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;            uint8_t address[] = {*(pFlashBytes + FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN + 1),</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                                 *(pFlashBytes + FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN)};</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            *((uint16_t *)address) += bytesToPageBoundary;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            writeFlashCommand_2[<a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a>] = address[1];</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;            writeFlashCommand_2[<a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + 1] = address[0];</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; bytesAfterPageBoundary; i++)</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;            {</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                writeFlashCommand_2[<a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN + i] =</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                    pFlashBytes[FXLC95000_FLASH_PAYLOAD_ADDR_LEN + bytesToPageBoundary + i];</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            }</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;            <span class="keywordflow">if</span> (bytesToPageBoundary &gt; <a class="code" href="a00041.html#a0ea961f6980793cea5da0455557deff6">FXLC95000_ROM_CI_WRITE_MAX_LEN</a> ||</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                bytesAfterPageBoundary &gt; <a class="code" href="a00041.html#a0ea961f6980793cea5da0455557deff6">FXLC95000_ROM_CI_WRITE_MAX_LEN</a>)</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;            {</div><div class="line"><a name="l00280"></a><span class="lineno">  280</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="l00281"></a><span class="lineno">  281</span>&#160;            }</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            { <span class="comment">/* Create Command List to Write. */</span></div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                <span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> cWriteFlashSequence[] = {</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                    {writeFlashCommand, 0,</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                     <a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN + bytesToPageBoundary},</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                    {writeFlashCommand_2, 0, <a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> +</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                                                 FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN + bytesAfterPageBoundary},</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                    <a class="code" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a>};</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                <span class="comment">/* Write Flash Bytes as Commands to Sensor. */</span></div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                status = <a class="code" href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a>(pBus, index, sAddress, cWriteFlashSequence);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                {</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                }</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;            }</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        }</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <span class="keywordflow">else</span> <span class="comment">/* If write is enclosed within 1-page, a single CI_READ_WRITE will do the job. */</span></div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        {</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;            uint8_t writeFlashCommand[<a class="code" href="a00041.html#a3c809b5689ca3dc0738f8a84c25dfca8">FXLC95000_ROM_CI_READ_WRITE_MAX_LEN</a>] = {0x0A, 0x00, 0x12, 0x34, 0x56, 0x78};</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;            writeFlashCommand[1] = <span class="comment">/* Ref. Section 16.5 of FXLC95000CLHWRM. */</span></div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                (*(pFlashBytes + 1) == 0) ? 0x1F &amp; (numBytes - <a class="code" href="a00041.html#a87a05641d2fbd088885921b1ef6edadf">FXLC95000_FLASH_PAYLOAD_ADDR_LEN</a>) :</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                                            0xC0 | (numBytes - FXLC95000_FLASH_PAYLOAD_ADDR_LEN);</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = <a class="code" href="a00041.html#a292154e8131ca012097a2b0201a18f37">FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</a>; i &lt; numBytes; i++) <span class="comment">// Skip 2 MSBs of Address.</span></div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            {</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                writeFlashCommand[<a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + i - <a class="code" href="a00041.html#a292154e8131ca012097a2b0201a18f37">FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</a>] =</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                    pFlashBytes[i];</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="keywordflow">if</span> (<a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + numBytes &gt;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;                <a class="code" href="a00041.html#a0ea961f6980793cea5da0455557deff6">FXLC95000_ROM_CI_WRITE_MAX_LEN</a> + <a class="code" href="a00041.html#a292154e8131ca012097a2b0201a18f37">FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</a>)</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            {</div><div class="line"><a name="l00313"></a><span class="lineno">  313</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="l00314"></a><span class="lineno">  314</span>&#160;            }</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            { <span class="comment">/* Create Command List to Write. */</span></div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;                <span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> cWriteFlashSequence[] = {</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;                    {writeFlashCommand, 0,</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;                     <a class="code" href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a> + numBytes - <a class="code" href="a00041.html#a292154e8131ca012097a2b0201a18f37">FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</a>},</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;                    <a class="code" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a>};</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;                <span class="comment">/* Write Flash Bytes as Commands to Sensor. */</span></div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;                status = <a class="code" href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a>(pBus, index, sAddress, cWriteFlashSequence);</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;        }</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;    <span class="keywordflow">else</span></div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    {</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    }</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;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;}</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="a00041.html#a32b4c71a3c3cbef9999416fdb83dc054">  338</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#a32b4c71a3c3cbef9999416fdb83dc054">FXLC95000_I2C_Initialize</a>(<a class="code" href="a01235.html">fxlc95000_i2c_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;                                 ARM_DRIVER_I2C *pBus,</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;                                 uint8_t index,</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;                                 uint16_t sAddress,</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;                                 uint16_t buildId)</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;{</div><div class="line"><a name="l00344"></a><span class="lineno">  344</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="l00345"></a><span class="lineno">  345</span>&#160;    uint16_t readNumber[2];</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="comment">    /*! Check the input parameters. */</span></div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="keywordflow">if</span> ((pSensorHandle == NULL) || (pBus == NULL))</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    {</div><div class="line"><a name="l00350"></a><span class="lineno">  350</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="l00351"></a><span class="lineno">  351</span>&#160;    }</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = index;</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = NULL;</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = NULL;</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="comment">/* Verify if the I2C connection by writing command to Boot to flash and fetch Device Info.</span></div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;<span class="comment">     * A matching Build Number confirms Sensor Identity and Firmware. */</span></div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <a class="code" href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01">Register_I2C_BlockWrite</a>(pBus, &amp;pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, sAddress, 0, BootToFlash, <span class="keyword">sizeof</span>(BootToFlash));</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(10); <span class="comment">/* Allow time for the device to boot to Flash. */</span></div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <a class="code" href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01">Register_I2C_BlockWrite</a>(pBus, &amp;pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, sAddress, 0, GetDeviceInfoCmd, <span class="keyword">sizeof</span>(GetDeviceInfoCmd));</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(1);</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;    status = <a class="code" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a>(pBus, &amp;pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, sAddress, <a class="code" href="a00035.html#ae7c20f0bc94db969f0d70ce16655fda6">FXLC95000_BUILD_ID_OFFSET</a>,</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                               <a class="code" href="a00035.html#a6bf0a136899bc45a68e5e82d6a924cd3">FXLC95000_BUILD_ID_SIZE</a> + <a class="code" href="a00035.html#a106c7d1e7141449867e66ff63f94481a">FXLC95000_PART_NUMBER_SIZE</a>, (uint8_t *)&amp;readNumber);</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    readNumber[0] = (readNumber[0] &gt;&gt; 8) | (readNumber[0] &lt;&lt; 8);</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    readNumber[1] = (readNumber[1] &gt;&gt; 8) | (readNumber[1] &lt;&lt; 8);</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <span class="keywordflow">if</span> (ARM_DRIVER_OK != status || readNumber[0] != buildId || readNumber[1] != <a class="code" href="a00035.html#a48c1619984377175d01158c6d0458359">FXLC95000_PART_NUMBER</a>)</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    {</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        pSensorHandle-&gt;<a class="code" href="a01235.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    }</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;    pSensorHandle-&gt;<a class="code" href="a01235.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a> = pBus;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a> = sAddress;</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;}</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"><a class="line" href="a00041.html#a7d31c709c8c3637ebfa48265b0347e77">  381</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00038.html#a7d31c709c8c3637ebfa48265b0347e77">FXLC95000_I2C_SetIdleTask</a>(<a class="code" href="a01235.html">fxlc95000_i2c_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;                               <a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a> idleTask,</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;                               <span class="keywordtype">void</span> *userParam)</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;{</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a> = userParam;</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>.<a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a> = idleTask;</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"><a class="line" href="a00041.html#aceb89b4fc88099b21318cacb6088f9cd">  389</a></span>&#160;<a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00038.html#a7ce291d9339bc2515ada199ee4c53692">FXLC95000_I2C_CommandResponse</a>(<a class="code" href="a01235.html">fxlc95000_i2c_sensorhandle_t</a> *pSensorHandle,</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="a03815.html">registercommandlist_t</a> *pCommandList,</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> *pResponseList,</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;                                      uint8_t *pBuffer)</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;{</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <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="l00395"></a><span class="lineno">  395</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;<span class="comment">    /*! Validate for the correct handle and register read list.*/</span></div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle == NULL || (pCommandList == NULL &amp;&amp; pResponseList == NULL))</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    {</div><div class="line"><a name="l00399"></a><span class="lineno">  399</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="l00400"></a><span class="lineno">  400</span>&#160;    }</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;<span class="comment">    /*! Check whether sensor handle is initialized before reading sensor data.*/</span></div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="keywordflow">if</span> (pSensorHandle-&gt;<a class="code" href="a01235.html#a1fdc2bf5595c2e64dc06d987769834eb">isInitialized</a> != <span class="keyword">true</span>)</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    {</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    }</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    <span class="keywordflow">if</span> (pCommandList != NULL)</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    { <span class="comment">/* Write command to fetch configuration. */</span></div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        status = <a class="code" href="a00182.html#ad6c175b9a45aa936aa74abda223eeafe">Sensor_I2C_BlockWrite</a>(pSensorHandle-&gt;<a class="code" href="a01235.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01235.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;                                       pCommandList, <a class="code" href="a00041.html#af7c1353b603dd5e2c10a88bd935bad27">FXLC95000_COCO_ERROR_MASK</a>);</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        {</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        }</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    }</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="keywordflow">if</span> (pResponseList != NULL)</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    { <span class="comment">/* Parse through the read list and read the data one by one */</span></div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        status = <a class="code" href="a00182.html#aa75349faed7c77807cb88d9224aa2636">Sensor_I2C_Read</a>(pSensorHandle-&gt;<a class="code" href="a01235.html#af6d4d51d4fb48cfb392eeb03ac26abed">pCommDrv</a>, &amp;pSensorHandle-&gt;<a class="code" href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">deviceInfo</a>, pSensorHandle-&gt;<a class="code" href="a01235.html#a67af74c3fc959654c6dc8bcff3a2ea80">slaveAddress</a>,</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;                                 pResponseList, pBuffer);</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        {</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a>;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        }</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    }</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00429"></a><span class="lineno">  429</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="a00038_html_a87c2db34761f064977284c39c36fd7d3"><div class="ttname"><a href="a00038.html#a87c2db34761f064977284c39c36fd7d3">fxlc95000_spiWrite_CmdDataBuffer</a></div><div class="ttdeci">uint8_t fxlc95000_spiWrite_CmdDataBuffer[FXLC95000_SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00026">fxlc95000_drv.c:26</a></div></div>
54<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>
55<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>
56<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>
57<div class="ttc" id="a03819_html"><div class="ttname"><a href="a03819.html">registerDeviceInfo_t</a></div><div class="ttdoc">This structure defines the device specific info required by register I/O. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00102">sensor_drv.h:102</a></div></div>
58<div class="ttc" id="a00038_html_adbebb6903baa6626cd08f78ddcbc2925"><div class="ttname"><a href="a00038.html#adbebb6903baa6626cd08f78ddcbc2925">FXLC95000_SPI_SetIdleTask</a></div><div class="ttdeci">void FXLC95000_SPI_SetIdleTask(fxlc95000_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="a00038_source.html#l00139">fxlc95000_drv.c:139</a></div></div>
59<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>
60<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>
61<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>
62<div class="ttc" id="a00038_html_aec67caf020c27066c2918ca5ba6807ac"><div class="ttname"><a href="a00038.html#aec67caf020c27066c2918ca5ba6807ac">FXLC95000_SPI_Initialize</a></div><div class="ttdeci">int32_t FXLC95000_SPI_Initialize(fxlc95000_spi_sensorhandle_t *pSensorHandle, ARM_DRIVER_SPI *pBus, uint8_t index, void *pSpiSelect, void *pSlaveSelect, void *pReset, uint16_t buildId)</div><div class="ttdoc">The interface function to initialize the sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00068">fxlc95000_drv.c:68</a></div></div>
63<div class="ttc" id="a01231_html_a3a881257fd72d50e25d3389656b9eacb"><div class="ttname"><a href="a01231.html#a3a881257fd72d50e25d3389656b9eacb">fxlc95000_spi_sensorhandle_t::pCommDrv</a></div><div class="ttdeci">ARM_DRIVER_SPI * pCommDrv</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00036">fxlc95000_drv.h:36</a></div></div>
64<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>
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="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>
67<div class="ttc" id="a00041_html_a292154e8131ca012097a2b0201a18f37"><div class="ttname"><a href="a00041.html#a292154e8131ca012097a2b0201a18f37">FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</a></div><div class="ttdeci">#define FXLC95000_ROM_CI_READ_WRITE_ADDR_LEN</div><div class="ttdoc">The Length of Address field in ROM CI_READ_WRITE Command Header. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00093">fxlc95000_drv.h:93</a></div></div>
68<div class="ttc" id="a03815_html"><div class="ttname"><a href="a03815.html">registercommandlist_t</a></div><div class="ttdoc">This structure defines the Block command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00087">sensor_drv.h:87</a></div></div>
69<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>
70<div class="ttc" id="a00038_html_a627506e76cad9d842873b8e549998baf"><div class="ttname"><a href="a00038.html#a627506e76cad9d842873b8e549998baf">FXLC95000_SPI_WritePreprocess</a></div><div class="ttdeci">void FXLC95000_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="a00038_source.html#l00048">fxlc95000_drv.c:48</a></div></div>
71<div class="ttc" id="a01235_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a01235.html#ae75b47fd9e098d6bd3b28f6be6586998">fxlc95000_i2c_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00046">fxlc95000_drv.h:46</a></div></div>
72<div class="ttc" id="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>
73<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>
74<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>
75<div class="ttc" id="a00041_html_a8be63c1adf19fb9de3ea4c5f95f8d880"><div class="ttname"><a href="a00041.html#a8be63c1adf19fb9de3ea4c5f95f8d880">FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</a></div><div class="ttdeci">#define FXLC95000_ROM_CI_READ_WRITE_HDR_LEN</div><div class="ttdoc">The Length of ROM CI_READ_WRITE Command Header. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00089">fxlc95000_drv.h:89</a></div></div>
76<div class="ttc" id="a00182_html_ad6c175b9a45aa936aa74abda223eeafe"><div class="ttname"><a href="a00182.html#ad6c175b9a45aa936aa74abda223eeafe">Sensor_I2C_BlockWrite</a></div><div class="ttdeci">int32_t Sensor_I2C_BlockWrite(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, const registercommandlist_t *pCommandList, uint8_t error_mask)</div><div class="ttdoc">Write commands to a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00024">sensor_io_i2c.c:24</a></div></div>
77<div class="ttc" id="a00041_html_a758f92931bd6e4cd7b0d2502d7fc6cbf"><div class="ttname"><a href="a00041.html#a758f92931bd6e4cd7b0d2502d7fc6cbf">FXLC95000_SPI_MAX_MSG_SIZE</a></div><div class="ttdeci">#define FXLC95000_SPI_MAX_MSG_SIZE</div><div class="ttdoc">The MAX size of SPI message. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00065">fxlc95000_drv.h:65</a></div></div>
78<div class="ttc" id="a00041_html_af7c1353b603dd5e2c10a88bd935bad27"><div class="ttname"><a href="a00041.html#af7c1353b603dd5e2c10a88bd935bad27">FXLC95000_COCO_ERROR_MASK</a></div><div class="ttdeci">#define FXLC95000_COCO_ERROR_MASK</div><div class="ttdoc">The Error Bit Mask in COCO Byte. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00061">fxlc95000_drv.h:61</a></div></div>
79<div class="ttc" id="a00041_html_a0ea961f6980793cea5da0455557deff6"><div class="ttname"><a href="a00041.html#a0ea961f6980793cea5da0455557deff6">FXLC95000_ROM_CI_WRITE_MAX_LEN</a></div><div class="ttdeci">#define FXLC95000_ROM_CI_WRITE_MAX_LEN</div><div class="ttdoc">The MAX Length of ROM CI_WRITE Data. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00081">fxlc95000_drv.h:81</a></div></div>
80<div class="ttc" id="a01235_html_a1fdc2bf5595c2e64dc06d987769834eb"><div class="ttname"><a href="a01235.html#a1fdc2bf5595c2e64dc06d987769834eb">fxlc95000_i2c_sensorhandle_t::isInitialized</a></div><div class="ttdeci">bool isInitialized</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00048">fxlc95000_drv.h:48</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="a00041_html_a612d388509cf109459f5193b4d400e47"><div class="ttname"><a href="a00041.html#a612d388509cf109459f5193b4d400e47">FXLC95000_SS_ACTIVE_VALUE</a></div><div class="ttdeci">#define FXLC95000_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="a00041_source.html#l00073">fxlc95000_drv.h:73</a></div></div>
84<div class="ttc" id="a01231_html_ae75b47fd9e098d6bd3b28f6be6586998"><div class="ttname"><a href="a01231.html#ae75b47fd9e098d6bd3b28f6be6586998">fxlc95000_spi_sensorhandle_t::deviceInfo</a></div><div class="ttdeci">registerDeviceInfo_t deviceInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00035">fxlc95000_drv.h:35</a></div></div>
85<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>
86<div class="ttc" id="a00035_html_ae7c20f0bc94db969f0d70ce16655fda6"><div class="ttname"><a href="a00035.html#ae7c20f0bc94db969f0d70ce16655fda6">FXLC95000_BUILD_ID_OFFSET</a></div><div class="ttdeci">#define FXLC95000_BUILD_ID_OFFSET</div><div class="ttdoc">Offset of 2-Byte ISF1.1_95k_Build_ID in Device Info Response. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00018">fxlc95000.h:18</a></div></div>
87<div class="ttc" id="a00041_html"><div class="ttname"><a href="a00041.html">fxlc95000_drv.h</a></div><div class="ttdoc">The fxlc95000_drv.h file describes the FXLC95000L driver interface and structures. </div></div>
88<div class="ttc" id="a01235_html"><div class="ttname"><a href="a01235.html">fxlc95000_i2c_sensorhandle_t</a></div><div class="ttdoc">This defines the sensor specific information for I2C. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00044">fxlc95000_drv.h:44</a></div></div>
89<div class="ttc" id="a01231_html_a1fdc2bf5595c2e64dc06d987769834eb"><div class="ttname"><a href="a01231.html#a1fdc2bf5595c2e64dc06d987769834eb">fxlc95000_spi_sensorhandle_t::isInitialized</a></div><div class="ttdeci">bool isInitialized</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00037">fxlc95000_drv.h:37</a></div></div>
90<div class="ttc" id="a00038_html_ae354fc2aafbf7609f21ebc8cf2538db0"><div class="ttname"><a href="a00038.html#ae354fc2aafbf7609f21ebc8cf2538db0">FXLC95000_I2C_CheckRomMode</a></div><div class="ttdeci">int32_t FXLC95000_I2C_CheckRomMode(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress)</div><div class="ttdoc">The interface function to check if the sensor is in ROM CI Mode. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00190">fxlc95000_drv.c:190</a></div></div>
91<div class="ttc" id="a00041_html_a87a05641d2fbd088885921b1ef6edadf"><div class="ttname"><a href="a00041.html#a87a05641d2fbd088885921b1ef6edadf">FXLC95000_FLASH_PAYLOAD_ADDR_LEN</a></div><div class="ttdeci">#define FXLC95000_FLASH_PAYLOAD_ADDR_LEN</div><div class="ttdoc">The Length of Address field in FLASH Payload form Host. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00097">fxlc95000_drv.h:97</a></div></div>
92<div class="ttc" id="a00038_html_a32b4c71a3c3cbef9999416fdb83dc054"><div class="ttname"><a href="a00038.html#a32b4c71a3c3cbef9999416fdb83dc054">FXLC95000_I2C_Initialize</a></div><div class="ttdeci">int32_t FXLC95000_I2C_Initialize(fxlc95000_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint16_t buildId)</div><div class="ttdoc">The interface function to initialize the sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00338">fxlc95000_drv.c:338</a></div></div>
93<div class="ttc" id="a00038_html_a7d31c709c8c3637ebfa48265b0347e77"><div class="ttname"><a href="a00038.html#a7d31c709c8c3637ebfa48265b0347e77">FXLC95000_I2C_SetIdleTask</a></div><div class="ttdeci">void FXLC95000_I2C_SetIdleTask(fxlc95000_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)</div><div class="ttdoc">: The interface function to set the I2C Idle Task. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00381">fxlc95000_drv.c:381</a></div></div>
94<div class="ttc" id="a00038_html_a871aa55982b73b6f38f5bfa87a3c070e"><div class="ttname"><a href="a00038.html#a871aa55982b73b6f38f5bfa87a3c070e">FXLC95000_I2C_FlashCommands</a></div><div class="ttdeci">int32_t FXLC95000_I2C_FlashCommands(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, const registercommandlist_t *pCommandList)</div><div class="ttdoc">The interface function to write ROM CI Commands. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00211">fxlc95000_drv.c:211</a></div></div>
95<div class="ttc" id="a00038_html_a0ad7b40a417661e25cdee37caccc21a6"><div class="ttname"><a href="a00038.html#a0ad7b40a417661e25cdee37caccc21a6">FXLC95000_I2C_FlashPayload</a></div><div class="ttdeci">int32_t FXLC95000_I2C_FlashPayload(ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t *pFlashBytes, uint8_t numBytes)</div><div class="ttdoc">The interface function to write ROM CI Data Payload. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00235">fxlc95000_drv.c:235</a></div></div>
96<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>
97<div class="ttc" id="a01235_html_a67af74c3fc959654c6dc8bcff3a2ea80"><div class="ttname"><a href="a01235.html#a67af74c3fc959654c6dc8bcff3a2ea80">fxlc95000_i2c_sensorhandle_t::slaveAddress</a></div><div class="ttdeci">uint16_t slaveAddress</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00049">fxlc95000_drv.h:49</a></div></div>
98<div class="ttc" id="a00041_html_a616ba9547dc35682ff155933f15652b4"><div class="ttname"><a href="a00041.html#a616ba9547dc35682ff155933f15652b4">FXLC95000_SPI_CMD_LEN</a></div><div class="ttdeci">#define FXLC95000_SPI_CMD_LEN</div><div class="ttdoc">The size of the Sensor specific SPI Header. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00069">fxlc95000_drv.h:69</a></div></div>
99<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>
100<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>
101<div class="ttc" id="a00035_html_a2725a5705adac6f1e949c80731fa0e7b"><div class="ttname"><a href="a00035.html#a2725a5705adac6f1e949c80731fa0e7b">FXLC95000_RESERVED_ID</a></div><div class="ttdeci">#define FXLC95000_RESERVED_ID</div><div class="ttdoc">The FXLC95000 Reserved filed bytes. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00027">fxlc95000.h:27</a></div></div>
102<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>
103<div class="ttc" id="a00041_html_a9d462bd063315f4b059730007b7c8957"><div class="ttname"><a href="a00041.html#a9d462bd063315f4b059730007b7c8957">FXLC95000_ROM_CI_WRITE_MIN_LEN</a></div><div class="ttdeci">#define FXLC95000_ROM_CI_WRITE_MIN_LEN</div><div class="ttdoc">The MIN Length of ROM CI_WRITE Data. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00077">fxlc95000_drv.h:77</a></div></div>
104<div class="ttc" id="a00179_html_a7b68cad1d117c3169c9a52eede1435f9"><div class="ttname"><a href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9">__END_WRITE_CMD__</a></div><div class="ttdeci">#define __END_WRITE_CMD__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00057">sensor_drv.h:57</a></div></div>
105<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>
106<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>
107<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>
108<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>
109<div class="ttc" id="a00188_html_a6891c5409037ff96ef29750f131f4c00"><div class="ttname"><a href="a00188.html#a6891c5409037ff96ef29750f131f4c00">Sensor_SPI_BlockWrite</a></div><div class="ttdeci">int32_t Sensor_SPI_BlockWrite(ARM_DRIVER_SPI *pCommDrv, registerDeviceInfo_t *devInfo, void *pWriteParams, const registercommandlist_t *pCommandList, uint8_t error_mask)</div><div class="ttdoc">Write commands to a sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00188_source.html#l00024">sensor_io_spi.c:24</a></div></div>
110<div class="ttc" id="a00041_html_a3c809b5689ca3dc0738f8a84c25dfca8"><div class="ttname"><a href="a00041.html#a3c809b5689ca3dc0738f8a84c25dfca8">FXLC95000_ROM_CI_READ_WRITE_MAX_LEN</a></div><div class="ttdeci">#define FXLC95000_ROM_CI_READ_WRITE_MAX_LEN</div><div class="ttdoc">The MAX Length of ROM CI_READ_WRITE Command. </div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00085">fxlc95000_drv.h:85</a></div></div>
111<div class="ttc" id="a00173_html_a0662e3575811a227d02c1cfe802744c5"><div class="ttname"><a href="a00173.html#a0662e3575811a227d02c1cfe802744c5">Register_SPI_BlockWrite</a></div><div class="ttdeci">int32_t Register_SPI_BlockWrite(ARM_DRIVER_SPI *pCommDrv, registerDeviceInfo_t *devInfo, void *pWriteParams, uint8_t offset, const uint8_t *pBuffer, uint8_t bytesToWrite)</div><div class="ttdoc">The interface function to block write to a sensor register. </div><div class="ttdef"><b>Definition:</b> <a href="a00173_source.html#l00162">register_io_spi.c:162</a></div></div>
112<div class="ttc" id="a00038_html_a232c113a4b3336dfe615ed74b754995e"><div class="ttname"><a href="a00038.html#a232c113a4b3336dfe615ed74b754995e">fxlc95000_spiRead_CmdBuffer</a></div><div class="ttdeci">uint8_t fxlc95000_spiRead_CmdBuffer[FXLC95000_SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00024">fxlc95000_drv.c:24</a></div></div>
113<div class="ttc" id="a00167_html_ac5a66aa1b8d95d267c9d68cb475c9e01"><div class="ttname"><a href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01">Register_I2C_BlockWrite</a></div><div class="ttdeci">int32_t Register_I2C_BlockWrite(ARM_DRIVER_I2C *pCommDrv, registerDeviceInfo_t *devInfo, uint16_t slaveAddress, uint8_t offset, const uint8_t *pBuffer, uint8_t bytesToWrite)</div><div class="ttdoc">The interface function to write a sensor register. </div><div class="ttdef"><b>Definition:</b> <a href="a00167_source.html#l00149">register_io_i2c.c:149</a></div></div>
114<div class="ttc" id="a00035_html_a106c7d1e7141449867e66ff63f94481a"><div class="ttname"><a href="a00035.html#a106c7d1e7141449867e66ff63f94481a">FXLC95000_PART_NUMBER_SIZE</a></div><div class="ttdeci">#define FXLC95000_PART_NUMBER_SIZE</div><div class="ttdoc">The FXLC95000 Size of Part Number. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00033">fxlc95000.h:33</a></div></div>
115<div class="ttc" id="a01235_html_af6d4d51d4fb48cfb392eeb03ac26abed"><div class="ttname"><a href="a01235.html#af6d4d51d4fb48cfb392eeb03ac26abed">fxlc95000_i2c_sensorhandle_t::pCommDrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * pCommDrv</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00047">fxlc95000_drv.h:47</a></div></div>
116<div class="ttc" id="a00035_html_a48c1619984377175d01158c6d0458359"><div class="ttname"><a href="a00035.html#a48c1619984377175d01158c6d0458359">FXLC95000_PART_NUMBER</a></div><div class="ttdeci">#define FXLC95000_PART_NUMBER</div><div class="ttdoc">The FXLC95000 2-byte packed BCD encoded Part Number (BCD for Last 4 characters). </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00036">fxlc95000.h:36</a></div></div>
117<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>
118<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>
119<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>
120<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>
121<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>
122<div class="ttc" id="a00038_html_af3d8aef641cb63a10584bae817068c2f"><div class="ttname"><a href="a00038.html#af3d8aef641cb63a10584bae817068c2f">fxlc95000_spiRead_DataBuffer</a></div><div class="ttdeci">uint8_t fxlc95000_spiRead_DataBuffer[FXLC95000_SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00025">fxlc95000_drv.c:25</a></div></div>
123<div class="ttc" id="a00038_html_a7ce291d9339bc2515ada199ee4c53692"><div class="ttname"><a href="a00038.html#a7ce291d9339bc2515ada199ee4c53692">FXLC95000_I2C_CommandResponse</a></div><div class="ttdeci">int32_t FXLC95000_I2C_CommandResponse(fxlc95000_i2c_sensorhandle_t *pSensorHandle, const registercommandlist_t *pCommandList, const registerreadlist_t *pResponseList, uint8_t *pBuffer)</div><div class="ttdoc">The interface function to read the sensor data. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00389">fxlc95000_drv.c:389</a></div></div>
124<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>
125<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>
126<div class="ttc" id="a01231_html"><div class="ttname"><a href="a01231.html">fxlc95000_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="a00041_source.html#l00033">fxlc95000_drv.h:33</a></div></div>
127<div class="ttc" id="a00038_html_a8d7cf0240f1e479eec936dac59023f3d"><div class="ttname"><a href="a00038.html#a8d7cf0240f1e479eec936dac59023f3d">FXLC95000_SPI_CommandResponse</a></div><div class="ttdeci">int32_t FXLC95000_SPI_CommandResponse(fxlc95000_spi_sensorhandle_t *pSensorHandle, const registercommandlist_t *pCommandList, const registerreadlist_t *pResponseList, uint8_t *pBuffer)</div><div class="ttdoc">The interface function to read the sensor data. </div><div class="ttdef"><b>Definition:</b> <a href="a00038_source.html#l00147">fxlc95000_drv.c:147</a></div></div>
128<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>
129<div class="ttc" id="a00038_html_a8e3488e3a4db535a6c822746377c289b"><div class="ttname"><a href="a00038.html#a8e3488e3a4db535a6c822746377c289b">FXLC95000_SPI_ReadPreprocess</a></div><div class="ttdeci">void FXLC95000_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="a00038_source.html#l00031">fxlc95000_drv.c:31</a></div></div>
130<div class="ttc" id="a00035_html_a6bf0a136899bc45a68e5e82d6a924cd3"><div class="ttname"><a href="a00035.html#a6bf0a136899bc45a68e5e82d6a924cd3">FXLC95000_BUILD_ID_SIZE</a></div><div class="ttdeci">#define FXLC95000_BUILD_ID_SIZE</div><div class="ttdoc">The FXLC95000 Size of ISF1.1_95k_Build_ID. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00021">fxlc95000.h:21</a></div></div>
131<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>
132<div class="ttc" id="a01231_html_a5ac5d34e6fa204911ab8492c20890341"><div class="ttname"><a href="a01231.html#a5ac5d34e6fa204911ab8492c20890341">fxlc95000_spi_sensorhandle_t::slaveParams</a></div><div class="ttdeci">spiSlaveSpecificParams_t slaveParams</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00038">fxlc95000_drv.h:38</a></div></div>
133</div><!-- fragment --></div><!-- contents -->
134
135<hr class="footer"/><address class="footer"><small>
136&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
137</small></address>
138</body>
139</html>
140