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: drivers/ads/lpc/auto_detection_service.c Source File</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 10<script type="text/javascript" src="jquery.js"></script> 11<script type="text/javascript" src="dynsections.js"></script> 12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" /> 13</head> 14<body> 15<div id="top"><!-- do not remove this div, it is closed by doxygen! --> 16<div id="titlearea"> 17<table cellspacing="0" cellpadding="0"> 18 <tbody> 19 <tr style="height: 56px;"> 20 <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td> 21 <td id="projectalign" style="padding-left: 0.5em;"> 22 <div id="projectname">ISSDK 23  <span id="projectnumber">1.8</span> 24 </div> 25 <div id="projectbrief">IoT Sensing Software Development Kit</div> 26 </td> 27 </tr> 28 </tbody> 29</table> 30</div> 31<!-- end header part --> 32<!-- Generated by Doxygen 1.8.13 --> 33<script type="text/javascript" src="menudata.js"></script> 34<script type="text/javascript" src="menu.js"></script> 35<script type="text/javascript"> 36$(function() { 37 initMenu('',false,false,'search.php','Search'); 38}); 39</script> 40<div id="main-nav"></div> 41<div id="nav-path" class="navpath"> 42 <ul> 43<li class="navelem"><a class="el" href="dir_14bc92f4b96c8519b376567118ac28b3.html">drivers</a></li><li class="navelem"><a class="el" href="dir_fe489b1a195b5b74eb4155087158bfbc.html">ads</a></li><li class="navelem"><a class="el" href="dir_66d79025c2c881a8b2fc2a614992305c.html">lpc</a></li> </ul> 44</div> 45</div><!-- top --> 46<div class="header"> 47 <div class="headertitle"> 48<div class="title">auto_detection_service.c</div> </div> 49</div><!--header--> 50<div class="contents"> 51<a href="a04823.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * @file auto_detection_service.c</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * @brief The auto detection service file implements auto detection sequence</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * for discovery of LPC Board and Sensor Shield Board.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <stdio.h></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <stdint.h></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "diff_p.h"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="a00149.html">mma9553.h</a>"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="a00158.html">mpl3115.h</a>"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="a00113.html">mag3110.h</a>"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="a00140.html">mma865x.h</a>"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="a00053.html">fxls8962.h</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="a00089.html">fxpq3115.h</a>"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="a00080.html">fxos8700.h</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="a00026.html">fxas21002.h</a>"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="a00035.html">fxlc95000.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="a00044.html">fxls8471q.h</a>"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "issdk_hal.h"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "gpio_driver.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="a00533.html">systick_utils.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="a00176.html">register_io_spi.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="a00170.html">register_io_i2c.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="a00545.html">auto_detection_shield.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="a04832.html">auto_detection_service.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "fsl_flashiap.h"</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> * Definitions</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> ******************************************************************************/</span><span class="comment"></span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">/*!</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">* @brief These variables are specific to SPI access to the FXLS8471 for ADS.</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">*/</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="a04823.html#a085e68fd2341901a3901ef721f8784d2"> 46</a></span> <span class="preprocessor">#define FXLS8471Q_SPI_CMD_LEN (2)</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="a04823.html#af77b5405aba8f06230f838e4d50d0b8c"> 47</a></span> <span class="preprocessor">#define FXLS8471Q_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"></span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">/*!</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">* @brief These variables are specific to SPI access to the FXLS8962 for ADS.</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">*/</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="a04823.html#a8366c105b3fa0f74ec723060829f2001"> 52</a></span> <span class="preprocessor">#define FXLS8962_SPI_CMD_LEN (2)</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="a04823.html#a2330121d8596da75f47cb2211228dff3"> 53</a></span> <span class="preprocessor">#define FXLS8962_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"></span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">/*!</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">* @brief These variables are specific to SPI access to the DIFF_P for ADS.</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">*/</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="a04823.html#a40f3748963d34f995ac43c047e53952d"> 58</a></span> <span class="preprocessor">#define DIFF_P_SPI_CMD_LEN (1)</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="a04823.html#afcbead347b9ff2f7f171701c3b331f57"> 59</a></span> <span class="preprocessor">#define DIFF_P_SS_ACTIVE_VALUE SPI_SS_ACTIVE_LOW</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125"> 60</a></span> <span class="preprocessor">#define ADS_NVM_SECTOR_NUM (ADS_NVM_ADDR / FSL_FEATURE_SYSCON_FLASH_SECTOR_SIZE_BYTES)</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527"> 62</a></span> <span class="preprocessor">#define ADS_QUERY_NUM (sizeof(ADS_SensorQueryList) / sizeof(sensorAccess_t))</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="a04823.html#a2da3e0551054e080d46d0ff54cef3438"> 63</a></span> <span class="preprocessor">#define ADS_NUM_BOARDS (sizeof(gADS_QueryMap) / ADS_QUERY_NUM)</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="a04823.html#a6d9b04701a351186ec774dffa225a6e5"> 64</a></span> <span class="preprocessor">#define SPI_MAX_MSG_SIZE (64)</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment">* Constants</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">******************************************************************************/</span><span class="comment"></span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">/*! @brief The Read Version Info Command for FXLC95000. */</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="a04823.html#afac3107a36ecdc3822366691c7e69f8d"> 70</a></span> <span class="keyword">const</span> uint8_t <a class="code" href="a04823.html#afac3107a36ecdc3822366691c7e69f8d">ReadVersionInfo_MMA9553</a>[4] = {0x00, 0x00, 0x00, 0x0C};</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"></span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">/*!</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment">* @brief This constant data structure contains the expected valid MCU Device ID combinations.</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment">* Refer : LPC5411x User manual - UM10914, Section: 33.5.12</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment">*/</span></div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="a04823.html#a441a9a07c1140fb2ce8d35782bae67fc"> 76</a></span> <span class="keyword">const</span> <a class="code" href="a03951.html">mcuDEVID_t</a> <a class="code" href="a04823.html#a441a9a07c1140fb2ce8d35782bae67fc">ADS_ValidDEVIDValues</a>[] = {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {0x06254113, <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6afbfd4fc11881a603ae0d7a0a6e901070">ADS_LPC_54113J128</a>}, <span class="comment">// LPC-54113J128</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {0x36454113, <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6a85aa2dbaf42913c8d65e1c99e0763c12">ADS_LPC_54113J256</a>}, <span class="comment">// LPC-54113J256</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {0x36454114, <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6ac298d628e5ab26c7766325c1011a7701">ADS_LPC_54114J256</a>}, <span class="comment">// LPC-54114J256</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> };</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"></span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment">/*!</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">* @brief This constant data structure contains the expected valid comm/sensor/who_am_i combinations.</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">*/</span></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="a04823.html#a5d4770d4af06a802589bca4df1ab44c1"> 85</a></span> <span class="keyword">const</span> <a class="code" href="a03955.html">sensorAccess_t</a> <a class="code" href="a04823.html#a5d4770d4af06a802589bca4df1ab44c1">ADS_SensorQueryList</a>[] = {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07abe3b162d37e329ef4fa9ac334d1e2805">ADS_SPI_DEV</a>, <a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a2699840f652004b0e475823793a65462">FXLS8471</a>, <a class="code" href="a00044.html#a4caf8d8f829279fba122163d961608a4a1e84a6f8313228c80a24d25587ea0c8e">FXLS8471Q_WHO_AM_I</a>, <a class="code" href="a00044.html#a02cb2001941041d143b6ec575cbad1df">FXLS8471Q_WHO_AM_I_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07abe3b162d37e329ef4fa9ac334d1e2805">ADS_SPI_DEV</a>, <a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a5f4142ec26f518e7f8ab9f758e5e7a91">FXLS8962</a>, <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f">FXLS8962_WHO_AM_I</a>, <a class="code" href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07abe3b162d37e329ef4fa9ac334d1e2805">ADS_SPI_DEV</a>, <a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804aa010c84e426eec66a075b92041c55121">DIFF_P</a>, DIFF_P_WHO_AM_I, DIFF_P_NPS3000VV_WHOAMI_VALUE, 0xFC},</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a229f68d0d94ff8e21733702990dda68b">FXLS8962_I2C_ADDR</a>, <a class="code" href="a00053.html#ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f">FXLS8962_WHO_AM_I</a>, <a class="code" href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a16a56b988ac0de778585d40fdada58f0">FXAS21002_I2C_ADDR</a>, <a class="code" href="a00026.html#af9bdc3014f3d54c426b6d2df10de4960a9c66d687be93ad245ccc01f865760180">FXAS21002_WHO_AM_I</a>, <a class="code" href="a00026.html#adaac462191d7b9b2b0e1555f58e3a2c6">FXAS21002_WHO_AM_I_WHOAMI_PROD_VALUE</a>, 0xFF},</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a6ee88a36eec5b41f4c4a25dd6e8ac4b5">FXLC95000</a>, <a class="code" href="a04832.html#a1015ab17c7effd394e93b703bcd6c13e">ADS_NO_WHO_AM_I</a>, <a class="code" href="a04832.html#a1015ab17c7effd394e93b703bcd6c13e">ADS_NO_WHO_AM_I</a>, 0xFF},</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a88d604d4e5776dfa8f16848425223cbb">FXOS8700_I2C_ADDR</a>, <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daeff4a72b3fb41ee3d221f5e901f0f8ce">FXOS8700_WHO_AM_I</a>, <a class="code" href="a00080.html#abd3fc525439295db83a2fc98076c7ed7">FXOS8700_WHO_AM_I_PROD_VALUE</a>, 0xFF},</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a424ab280dcc5a1d632d3a94885a4b7af">FXPQ3115_I2C_ADDR</a>, <a class="code" href="a00089.html#af26f449e73437e60d22c20b4f2cb2aceabdd502b0786d5958e62e3000d98c6351">FXPQ3115_WHO_AM_I</a>, <a class="code" href="a00089.html#a47e12e22b7a7675f1990f3de8c6e295e">FXPQ3115_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a4860aad19aa4ea956e2ea937fb175847">MAG3110_I2C_ADDR</a>, <a class="code" href="a00113.html#ab79db5277fcbe695243c6d68332cbf4cabfe51d0aa19412fe06477494c4915254">MAG3110_WHO_AM_I</a>, <a class="code" href="a00113.html#a6aa1b826321660c8b3307c289422a841">MAG3110_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a8988e99259e07194918336da18dd35e9">MMA8652_I2C_ADDR</a>, <a class="code" href="a00140.html#a3ee4e9f70475f3c684c23241163781abaf81b085731966d679dd38ae64123a94c">MMA865x_WHO_AM_I</a>, <a class="code" href="a00140.html#a073411344592aee73bcd637972375e00">MMA8652_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804ac69e304d93caa37bc64297815710c5b7">MMA9553</a>, <a class="code" href="a04832.html#a1015ab17c7effd394e93b703bcd6c13e">ADS_NO_WHO_AM_I</a>, <a class="code" href="a04832.html#a1015ab17c7effd394e93b703bcd6c13e">ADS_NO_WHO_AM_I</a>, 0xFF},</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#a65f7da1c5270916e80ccfadee9da966c">DIFF_P_I2C_ADDR</a>, DIFF_P_WHO_AM_I, DIFF_P_NPS3000VV_WHOAMI_VALUE, 0xFC},</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a>, <a class="code" href="a00545.html#adec31513f28aceda1b78b1dba2f161fb">MPL3115_I2C_ADDR</a>, <a class="code" href="a00158.html#a5e7fba63eebd783231b18f414e8a138fabed78897e96609e9cfe9511e93fcc376">MPL3115_WHO_AM_I</a>, <a class="code" href="a00158.html#a80b62e22babfe63712df92c8d48bbbcd">MPL3115_WHOAMI_VALUE</a>, 0xFF},</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> };</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"></span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment">/*!</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment">* @brief These are the expected query signatures for the shield boards.</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">*/</span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="a04823.html#ad5bacae294b85a89e915c30eac2af230"> 104</a></span> <span class="keyword">const</span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#ad5bacae294b85a89e915c30eac2af230">gADS_QueryMap</a>[][<a class="code" href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527">ADS_QUERY_NUM</a>] = {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  {</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">// FRDM-STBC-AGM01</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  },</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// FRDM-STBC-SA9500</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  },</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  {</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">// FRDMSTBC-A8471</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  },</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  {</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="comment">// FRDMSTBC-P3115</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  },</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  {</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// FRDMSTBC-DIFF-P SPI</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  },</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="comment">// FRDMSTBC-DIFF-P I2C</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  },</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  {</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="comment">// FRDMSTBC-B3115</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  },</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  {</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="comment">// FRDM-FXS-MULT2-B</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  },</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  {</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="comment">// FRDM-STBC-AGMP03 over SPI</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  },</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  {</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="comment">// FRDM-STBC-AGMP03 over I2C</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  },</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="comment">// FRDM-STBC-AGM04</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8471</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLS8962</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// FXAS21002</span></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXLC95000</span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXOS8700</span></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// FXPQ3115</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MAG3110</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>, <span class="comment">// MMA865x</span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MMA9553</span></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// DIFF-P</span></div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>, <span class="comment">// MPL3115</span></div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  },</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> };</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment"> * Global Variables</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment"> ******************************************************************************/</span><span class="comment"></span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment">/*!</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment">* @brief This global contains the results from the sensor query.</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment">*/</span></div><div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="a04823.html#aa096c321182964b06e5981c5099ef676"> 289</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[<a class="code" href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527">ADS_QUERY_NUM</a>];</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="a04823.html#aa3ac6c86ab178cc95ac00e42c6fe0f6e"> 291</a></span> <span class="keywordtype">char</span> <a class="code" href="a04823.html#aa3ac6c86ab178cc95ac00e42c6fe0f6e">ADS_ShieldList</a>[][<a class="code" href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a>] = {</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="stringliteral">"FRDM-STBC-AGM01"</span>, <span class="stringliteral">"FRDM-STBC-SA9500"</span>, <span class="stringliteral">"FRDMSTBC-A8471"</span>,</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="stringliteral">"FRDMSTBC-P3115"</span>, <span class="stringliteral">"FRDMSTBI-DP300x"</span>, <span class="stringliteral">"FRDMSTBI-DP300x"</span>, <span class="stringliteral">"FRDMSTBC-B3115"</span>,</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="stringliteral">"FRDM-FXS-MULT2-B"</span>, <span class="stringliteral">"FRDM-STBC-AGMP03"</span>, <span class="stringliteral">"FRDM-STBC-AGMP03"</span>, <span class="stringliteral">"FRDM-STBC-AGM04"</span>,</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> };</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment"></span></div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="comment">/*!</span></div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment">* @brief These values hold the ARM CMSIS Driver interface pointers.</span></div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment">*/</span></div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2"> 300</a></span> ARM_DRIVER_SPI *<a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a> = &<a class="code" href="a00578.html#a45b4f44a5ae6a42b8999f0051b421c7d">SPI_S_DRIVER</a>;</div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56"> 301</a></span> ARM_DRIVER_I2C *<a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a> = &<a class="code" href="a00578.html#a2eca6eeb6669462eb49b726a107007d7">I2C_S1_DRIVER</a>;</div><div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="a04823.html#aec42e876842ab9e53528930fd0dc6e77"> 302</a></span> <a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a04823.html#aec42e876842ab9e53528930fd0dc6e77">pGPIODriver</a> = &<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div><div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="a04823.html#a6db1d6df12e6d4c08716be7c0ef9b83e"> 304</a></span> <a class="code" href="a03803.html">spiSlaveSpecificParams_t</a> <a class="code" href="a04823.html#a6db1d6df12e6d4c08716be7c0ef9b83e">spiParams_8471</a>;</div><div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="a04823.html#a8b0551a8399a847d0034d2f28d615fe5"> 305</a></span> <a class="code" href="a03803.html">spiSlaveSpecificParams_t</a> <a class="code" href="a04823.html#a8b0551a8399a847d0034d2f28d615fe5">spiParams_8962</a>;</div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="a04823.html#a17862b8056833d5e8af5c71d925d2f3b"> 306</a></span> <a class="code" href="a03803.html">spiSlaveSpecificParams_t</a> <a class="code" href="a04823.html#a17862b8056833d5e8af5c71d925d2f3b">spiParams_diff_p</a>;</div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="a04823.html#aa2c51cea1e2993cbd2206ee7b026f7a8"> 307</a></span> uint8_t <a class="code" href="a04823.html#aa2c51cea1e2993cbd2206ee7b026f7a8">spiRead_CmdBuffer</a>[<a class="code" href="a04823.html#a6d9b04701a351186ec774dffa225a6e5">SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="a04823.html#a7c1651eaeb6a77df59ef83a55c7ee40d"> 308</a></span> uint8_t <a class="code" href="a04823.html#a7c1651eaeb6a77df59ef83a55c7ee40d">spiRead_DataBuffer</a>[<a class="code" href="a04823.html#a6d9b04701a351186ec774dffa225a6e5">SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="a04823.html#ad8311d0493370059b241e19e1a911fb5"> 309</a></span> uint8_t <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a>[<a class="code" href="a04823.html#a6d9b04701a351186ec774dffa225a6e5">SPI_MAX_MSG_SIZE</a>] = {0};</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="comment">* FXLS8471 SPI Specific Functions</span></div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="comment">*****************************************************************************/</span></div><div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="a04823.html#ac41379288f66100cc71fa923e43d514f"> 314</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#ac41379288f66100cc71fa923e43d514f">ADS_FXLS8471Q_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="l00315"></a><span class="lineno"> 315</span> {</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  uint8_t *pWBuff = <a class="code" href="a04823.html#aa2c51cea1e2993cbd2206ee7b026f7a8">spiRead_CmdBuffer</a>;</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  uint8_t *pRBuff = <a class="code" href="a04823.html#a7c1651eaeb6a77df59ef83a55c7ee40d">spiRead_DataBuffer</a>;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="comment">/* Formatting for Read command of FXLS8471Q SENSOR. */</span></div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  *(pWBuff) = offset & 0x7F; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  *(pWBuff + 1) = offset & 0x80;</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="comment">// Create the slave read command.</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  pSlaveCmd-><a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a04823.html#a085e68fd2341901a3901ef721f8784d2">FXLS8471Q_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  pSlaveCmd-><a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  pSlaveCmd-><a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span> }</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div><div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="a04823.html#ad1e0d7572bdcaf2a34ab099f568d98e3"> 331</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#ad1e0d7572bdcaf2a34ab099f568d98e3">ADS_FXLS8471Q_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="l00332"></a><span class="lineno"> 332</span> {</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  uint8_t *pWBuff = <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a>;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  uint8_t *pRBuff = <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a> + size + <a class="code" href="a04823.html#a085e68fd2341901a3901ef721f8784d2">FXLS8471Q_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="comment">/* Formatting for Write command of FXLS8471Q SENSOR. */</span></div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  *(pWBuff) = offset | 0x80; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  *(pWBuff + 1) = offset & 0x80;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="comment">/* Copy the slave write command */</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  memcpy(pWBuff + FXLS8471Q_SPI_CMD_LEN, pWritebuffer, size);</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="comment">/* Create the slave command. */</span></div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  pSlaveCmd-><a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a04823.html#a085e68fd2341901a3901ef721f8784d2">FXLS8471Q_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  pSlaveCmd-><a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  pSlaveCmd-><a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span> }</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span> </div><div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="a04823.html#ad655793534d56b3d7fa931de6efbfc8a"> 351</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#ad655793534d56b3d7fa931de6efbfc8a">ADS_InitSPI_FXLS8471</a>()</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> {</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  spiParams_8471.<a class="code" href="a03803.html#ab4d08944f72286fde118fc7fa4667723">pReadPreprocessFN</a> = <a class="code" href="a04823.html#ac41379288f66100cc71fa923e43d514f">ADS_FXLS8471Q_SPI_ReadPreprocess</a>;</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  spiParams_8471.<a class="code" href="a03803.html#ab4281402074641230f56f227d0b796e5">pWritePreprocessFN</a> = <a class="code" href="a04823.html#ad1e0d7572bdcaf2a34ab099f568d98e3">ADS_FXLS8471Q_SPI_WritePreprocess</a>;</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  spiParams_8471.<a class="code" href="a03803.html#aa1f5d2f72e51fd01079605106392e2eb">pTargetSlavePinID</a> = &<a class="code" href="a00545.html#a796dd9723d74e61165234f822e9699fb">FXLS8471_SPI_CS</a>;</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  spiParams_8471.<a class="code" href="a03803.html#ad27d09756d625d132207782d1792e4df">spiCmdLen</a> = <a class="code" href="a04823.html#a085e68fd2341901a3901ef721f8784d2">FXLS8471Q_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  spiParams_8471.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> = <a class="code" href="a04823.html#af77b5405aba8f06230f838e4d50d0b8c">FXLS8471Q_SS_ACTIVE_VALUE</a>;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="comment">/* Initialize the Slave Select Pin. */</span></div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  pGPIODriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a00545.html#a796dd9723d74e61165234f822e9699fb">FXLS8471_SPI_CS</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordflow">if</span> (spiParams_8471.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> == <a class="code" href="a00176.html#a67a2045f4f16d45f92fd22075416a7d6">SPI_SS_ACTIVE_LOW</a>)</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  {</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  pGPIODriver-><a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&<a class="code" href="a00545.html#a796dd9723d74e61165234f822e9699fb">FXLS8471_SPI_CS</a>);</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  }</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  {</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  pGPIODriver-><a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&<a class="code" href="a00545.html#a796dd9723d74e61165234f822e9699fb">FXLS8471_SPI_CS</a>);</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  }</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> };</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span> </div><div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="a04823.html#a9e2ed26195eaf78326777a51c8ac1f3a"> 371</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#a9e2ed26195eaf78326777a51c8ac1f3a">ADS_FXLS8471Query</a>(uint8_t whoAmiAddr, uint8_t whoAmi)</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span> {</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <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="l00374"></a><span class="lineno"> 374</span>  uint8_t reg;</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  .<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a00578.html#aa0c45bbc90cacf6048548850c9b48cb9">SPI_S_DEVICE_INDEX</a>, .functionParam = NULL, .idleFunction = NULL};</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment"></span></div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment"> /*! Read and store the device's WHO_AM_I.*/</span></div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  status = <a class="code" href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a>(<a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>, &deviceInfo, &spiParams_8471, whoAmiAddr, 1, &reg);</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">if</span> ((ARM_DRIVER_OK != status) || (whoAmi != reg))</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  {</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  }</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> }</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> </div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="comment">* FXLS8962 SPI Specific Functions</span></div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <span class="comment">*****************************************************************************/</span></div><div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="a04823.html#a2e804a9d1267b7078fe76f3d6048701a"> 391</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#a2e804a9d1267b7078fe76f3d6048701a">ADS_FXLS8962_SPI_ReadPreprocess</a>(<span class="keywordtype">void</span> *pCmdOut, uint32_t offset, uint32_t <a class="code" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>)</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span> {</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  uint8_t *pWBuff = <a class="code" href="a04823.html#aa2c51cea1e2993cbd2206ee7b026f7a8">spiRead_CmdBuffer</a>;</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  uint8_t *pRBuff = <a class="code" href="a04823.html#a7c1651eaeb6a77df59ef83a55c7ee40d">spiRead_DataBuffer</a>;</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="comment">/* Formatting for Read command of FXLS8962 SENSOR. */</span></div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  *(pWBuff) = offset | 0x80; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  *(pWBuff + 1) = 0x00;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="comment">/* Create the slave read command. */</span></div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  pSlaveCmd-><a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a04823.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  pSlaveCmd-><a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  pSlaveCmd-><a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> }</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div><div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="a04823.html#a745f716148252846838c653f885734dc"> 408</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#a745f716148252846838c653f885734dc">ADS_FXLS8962_SPI_WritePreprocess</a>(<span class="keywordtype">void</span> *pCmdOut, uint32_t offset, uint32_t <a class="code" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>, <span class="keywordtype">void</span> *pWritebuffer)</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> {</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  uint8_t *pWBuff = <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a>;</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  uint8_t *pRBuff = <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a> + size + <a class="code" href="a04823.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span> </div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="comment">/* Formatting for Write command of FXLS8962 SENSOR. */</span></div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  *(pWBuff) = offset & 0x7F; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  *(pWBuff + 1) = 0x00;</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span> </div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="comment">/* Copy the slave write command */</span></div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  memcpy(pWBuff + FXLS8962_SPI_CMD_LEN, pWritebuffer, size);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="comment">/* Create the slave command. */</span></div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  pSlaveCmd-><a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a04823.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  pSlaveCmd-><a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  pSlaveCmd-><a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> }</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="a04823.html#a700a2d30b8d440e08032549f1508c730"> 428</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#a700a2d30b8d440e08032549f1508c730">ADS_InitSPI_FXLS8962</a>()</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> { <span class="comment">/*! Initialize the sensor handle. */</span></div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  spiParams_8962.<a class="code" href="a03803.html#ab4d08944f72286fde118fc7fa4667723">pReadPreprocessFN</a> = <a class="code" href="a04823.html#a2e804a9d1267b7078fe76f3d6048701a">ADS_FXLS8962_SPI_ReadPreprocess</a>;</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  spiParams_8962.<a class="code" href="a03803.html#ab4281402074641230f56f227d0b796e5">pWritePreprocessFN</a> = <a class="code" href="a04823.html#a745f716148252846838c653f885734dc">ADS_FXLS8962_SPI_WritePreprocess</a>;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  spiParams_8962.<a class="code" href="a03803.html#aa1f5d2f72e51fd01079605106392e2eb">pTargetSlavePinID</a> = &<a class="code" href="a00545.html#abcc89d3851988f5c616dd70623a2fc76">FXLS8962_CS</a>;</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  spiParams_8962.<a class="code" href="a03803.html#ad27d09756d625d132207782d1792e4df">spiCmdLen</a> = <a class="code" href="a04823.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  spiParams_8962.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> = <a class="code" href="a04823.html#a2330121d8596da75f47cb2211228dff3">FXLS8962_SS_ACTIVE_VALUE</a>;</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <span class="comment">/* Initialize the Slave Select Pin. */</span></div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  pGPIODriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a00545.html#abcc89d3851988f5c616dd70623a2fc76">FXLS8962_CS</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordflow">if</span> (spiParams_8962.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> == <a class="code" href="a00176.html#a67a2045f4f16d45f92fd22075416a7d6">SPI_SS_ACTIVE_LOW</a>)</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  {</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  pGPIODriver-><a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&<a class="code" href="a00545.html#abcc89d3851988f5c616dd70623a2fc76">FXLS8962_CS</a>);</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  }</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  {</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  pGPIODriver-><a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&<a class="code" href="a00545.html#abcc89d3851988f5c616dd70623a2fc76">FXLS8962_CS</a>);</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  }</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> };</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span> </div><div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="a04823.html#a7381a2e1ee8e3fb264314c9c71216c98"> 448</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#a7381a2e1ee8e3fb264314c9c71216c98">ADS_FXLS8962Query</a>(uint8_t whoAmiAddr, uint8_t whoAmi)</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span> {</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <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="l00451"></a><span class="lineno"> 451</span>  uint8_t reg;</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  .<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a00578.html#aa0c45bbc90cacf6048548850c9b48cb9">SPI_S_DEVICE_INDEX</a>, .functionParam = NULL, .idleFunction = NULL};</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span> <span class="comment"></span></div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="comment"> /*! Read and store the device's WHO_AM_I.*/</span></div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  status = <a class="code" href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a>(<a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>, &deviceInfo, &spiParams_8962, whoAmiAddr, 1, &reg);</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keywordflow">if</span> ((ARM_DRIVER_OK != status) || (whoAmi != reg))</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  {</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  }</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> }</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span> </div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="comment">* DIFF-P SPI Specific Functions</span></div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="comment">*****************************************************************************/</span></div><div class="line"><a name="l00468"></a><span class="lineno"><a class="line" href="a04823.html#a33a83e87996ed0bbf228d1a3793cab85"> 468</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#a33a83e87996ed0bbf228d1a3793cab85">ADS_DIFF_P_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="l00469"></a><span class="lineno"> 469</span> {</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  uint8_t *pWBuff = <a class="code" href="a04823.html#aa2c51cea1e2993cbd2206ee7b026f7a8">spiRead_CmdBuffer</a>;</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  uint8_t *pRBuff = <a class="code" href="a04823.html#a7c1651eaeb6a77df59ef83a55c7ee40d">spiRead_DataBuffer</a>;</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span> </div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="comment">/* Formatting for Read command of DIFF-P SENSOR. */</span></div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  *(pWBuff) = offset & 0x7F; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="comment">// Create the slave read command.</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  pSlaveCmd-><a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a04823.html#a40f3748963d34f995ac43c047e53952d">DIFF_P_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  pSlaveCmd-><a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  pSlaveCmd-><a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> }</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00484"></a><span class="lineno"><a class="line" href="a04823.html#a99b11dd940990e967afd812ec64cbbd5"> 484</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#a99b11dd940990e967afd812ec64cbbd5">ADS_DIFF_P_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="l00485"></a><span class="lineno"> 485</span> {</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <a class="code" href="a03799.html">spiCmdParams_t</a> *pSlaveCmd = pCmdOut;</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span> </div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  uint8_t *pWBuff = <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a>;</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  uint8_t *pRBuff = <a class="code" href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a> + size + <a class="code" href="a04823.html#a40f3748963d34f995ac43c047e53952d">DIFF_P_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <span class="comment">/* Formatting for Write command of DIFF-P SENSOR. */</span></div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  *(pWBuff) = offset | 0x80; <span class="comment">/* offset is the internal register address of the sensor at which write is performed. */</span></div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> </div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="comment">/* Copy the slave write command */</span></div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  memcpy(pWBuff + DIFF_P_SPI_CMD_LEN, pWritebuffer, size);</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> </div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="comment">/* Create the slave command. */</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  pSlaveCmd-><a class="code" href="a03799.html#ab2c6b258f02add8fdf4cfc7c371dd772">size</a> = size + <a class="code" href="a04823.html#a40f3748963d34f995ac43c047e53952d">DIFF_P_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  pSlaveCmd-><a class="code" href="a03799.html#a7b4f7b0bd6850027bc5cf068ed22f608">pWriteBuffer</a> = pWBuff;</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  pSlaveCmd-><a class="code" href="a03799.html#a10f5aa82cde5c3db8000a0e7cc885a60">pReadBuffer</a> = pRBuff;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> }</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div><div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="a04823.html#ad62f3052de3e4b8bf43fde88bfdea1c9"> 503</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#ad62f3052de3e4b8bf43fde88bfdea1c9">ADS_InitSPI_DIFF_P</a>()</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span> {</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  spiParams_diff_p.<a class="code" href="a03803.html#ab4d08944f72286fde118fc7fa4667723">pReadPreprocessFN</a> = <a class="code" href="a04823.html#a33a83e87996ed0bbf228d1a3793cab85">ADS_DIFF_P_SPI_ReadPreprocess</a>;</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  spiParams_diff_p.<a class="code" href="a03803.html#ab4281402074641230f56f227d0b796e5">pWritePreprocessFN</a> = <a class="code" href="a04823.html#a99b11dd940990e967afd812ec64cbbd5">ADS_DIFF_P_SPI_WritePreprocess</a>;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  spiParams_diff_p.<a class="code" href="a03803.html#aa1f5d2f72e51fd01079605106392e2eb">pTargetSlavePinID</a> = &<a class="code" href="a00545.html#a861d7de6a2676b357171a80cd624f07f">DIFF_P_SPI_CS</a>;</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  spiParams_diff_p.<a class="code" href="a03803.html#ad27d09756d625d132207782d1792e4df">spiCmdLen</a> = <a class="code" href="a04823.html#a40f3748963d34f995ac43c047e53952d">DIFF_P_SPI_CMD_LEN</a>;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  spiParams_diff_p.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> = <a class="code" href="a04823.html#afcbead347b9ff2f7f171701c3b331f57">DIFF_P_SS_ACTIVE_VALUE</a>;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="comment">/* Initialize the Slave Select Pin. */</span></div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  pGPIODriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a00545.html#a861d7de6a2676b357171a80cd624f07f">DIFF_P_SPI_CS</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keywordflow">if</span> (spiParams_diff_p.<a class="code" href="a03803.html#a45751b25ae9b3056830d3e425bd7a1b5">ssActiveValue</a> == <a class="code" href="a00176.html#a67a2045f4f16d45f92fd22075416a7d6">SPI_SS_ACTIVE_LOW</a>)</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  {</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  pGPIODriver-><a class="code" href="a03903.html#ac3e094122adb91dc940bc7c033b47baa">set_pin</a>(&<a class="code" href="a00545.html#a861d7de6a2676b357171a80cd624f07f">DIFF_P_SPI_CS</a>);</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  }</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  {</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  pGPIODriver-><a class="code" href="a03903.html#aa59efe0989ad47737f368819d5dae141">clr_pin</a>(&<a class="code" href="a00545.html#a861d7de6a2676b357171a80cd624f07f">DIFF_P_SPI_CS</a>);</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  }</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span> };</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span> </div><div class="line"><a name="l00523"></a><span class="lineno"><a class="line" href="a04823.html#ae3d648f7414fad5a7cce5161b3592c92"> 523</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#ae3d648f7414fad5a7cce5161b3592c92">ADS_DIFF_PQuery</a>(uint8_t whoAmiAddr, uint8_t whoAmi)</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span> {</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <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="l00526"></a><span class="lineno"> 526</span>  uint8_t reg;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  .<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a00578.html#aa0c45bbc90cacf6048548850c9b48cb9">SPI_S_DEVICE_INDEX</a>, .functionParam = NULL, .idleFunction = NULL};</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> <span class="comment"></span></div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="comment"> /*! Read and store the device's WHO_AM_I.*/</span></div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  status = <a class="code" href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a>(<a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>, &deviceInfo, &spiParams_diff_p, whoAmiAddr, 1, &reg);</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="keywordflow">if</span> ((ARM_DRIVER_OK != status) || (whoAmi != reg))</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  {</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  }</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span> </div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span> }</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span> </div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="comment">* FXLC95000 Specific Functions</span></div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="comment">*****************************************************************************/</span></div><div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="a04823.html#ad1db6927af79c26ca7b6447a93b42131"> 543</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#ad1db6927af79c26ca7b6447a93b42131">ADS_FXLC95000Query</a>()</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> {</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <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="l00546"></a><span class="lineno"> 546</span>  uint16_t partNumber;</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  .<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a00578.html#a443b7fa870a185d189dcc6b8ec5b6747">I2C_S1_DEVICE_INDEX</a>, .functionParam = NULL, .idleFunction = NULL};</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span> </div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <span class="comment">/* ADS is required to confirm only the presence of FXLC95000 and not the contents of its FLASH.</span></div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="comment"> * As such we will not send command to Boot FXLC95000 to Flash.</span></div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="comment"> * We send the Get Device Info ROM CI command and validate response. */</span></div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <a class="code" href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01">Register_I2C_BlockWrite</a>(<a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>, &deviceInfo, <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>, 0, GetDeviceInfoCmd, <span class="keyword">sizeof</span>(GetDeviceInfoCmd));</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(1);</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> </div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="comment">/* Read the Device Info Result.</span></div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span> <span class="comment"> * A valid response COCO indicates command acceptance and by nature Sensor Identity. */</span></div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  status = <a class="code" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a>(<a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>, &deviceInfo, <a class="code" href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a>, <a class="code" href="a00035.html#a6cb69e7b3578f955a0f33089ab43112d">FXLC95000_PART_NUMBER_OFFSET</a>,</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <a class="code" href="a00035.html#a106c7d1e7141449867e66ff63f94481a">FXLC95000_PART_NUMBER_SIZE</a>, (uint8_t *)&partNumber);</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  partNumber = (partNumber >> 8) | (partNumber << 8);</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status || partNumber != <a class="code" href="a00035.html#a48c1619984377175d01158c6d0458359">FXLC95000_PART_NUMBER</a>)</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  {</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  }</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span> };</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span> </div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> <span class="comment">* MMA9553 Specific Functions</span></div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span> <span class="comment">*****************************************************************************/</span></div><div class="line"><a name="l00572"></a><span class="lineno"><a class="line" href="a04823.html#a61f59d3254fb54c57b010f2f9f8a7499"> 572</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#a61f59d3254fb54c57b010f2f9f8a7499">ADS_MMA9553Query</a>()</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span> {</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <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="l00575"></a><span class="lineno"> 575</span>  uint8_t cmdRespHdr[<a class="code" href="a00149.html#a2be9fbb738bd1481bdf9ff746ea0742c">MMA9553_HDR_SIZE</a>] = {0};</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span> </div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  .<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a00578.html#a443b7fa870a185d189dcc6b8ec5b6747">I2C_S1_DEVICE_INDEX</a>, .functionParam = NULL, .idleFunction = NULL};</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span> </div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="comment">/* We send the Read Version Info command and validate response. */</span></div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <a class="code" href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01">Register_I2C_BlockWrite</a>(<a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>, &deviceInfo, <a class="code" href="a00545.html#aad15d3a5ef0b4d38efd527d188a8f0b8">MMA9553_I2C_ADDR</a>, 0, <a class="code" href="a04823.html#afac3107a36ecdc3822366691c7e69f8d">ReadVersionInfo_MMA9553</a>,</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keyword">sizeof</span>(<a class="code" href="a04823.html#afac3107a36ecdc3822366691c7e69f8d">ReadVersionInfo_MMA9553</a>));</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <a class="code" href="a00530.html#ab052b802081fd87e1bda8d56e2c0db42">BOARD_DELAY_ms</a>(1);</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span> </div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <span class="comment">/* Read the Device Info Result.</span></div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span> <span class="comment"> * A valid response COCO and length fields indicate command acceptance and by nature Sensor Identity. */</span></div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  status = <a class="code" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a>(<a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>, &deviceInfo, <a class="code" href="a00545.html#aad15d3a5ef0b4d38efd527d188a8f0b8">MMA9553_I2C_ADDR</a>, 0, <span class="keyword">sizeof</span>(cmdRespHdr), cmdRespHdr);</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status || (cmdRespHdr[1] & 0x80) != 0x80 || cmdRespHdr[2] != <a class="code" href="a04823.html#afac3107a36ecdc3822366691c7e69f8d">ReadVersionInfo_MMA9553</a>[3] ||</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  cmdRespHdr[3] != <a class="code" href="a04823.html#afac3107a36ecdc3822366691c7e69f8d">ReadVersionInfo_MMA9553</a>[3])</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  {</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  }</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span> };</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span> </div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span> <span class="comment"> * Functions</span></div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span> <span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00599"></a><span class="lineno"><a class="line" href="a04823.html#a9112c08af09a669260e8cb583d5aa17d"> 599</a></span> <span class="keywordtype">int</span> <a class="code" href="a04823.html#a9112c08af09a669260e8cb583d5aa17d">ADS_InitI2CBuses</a>()</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span> {</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <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="l00602"></a><span class="lineno"> 602</span> <span class="comment"></span></div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> <span class="comment"> /*! Initialize the External I2C driver. */</span></div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  status = <a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>->Initialize(<a class="code" href="a00578.html#af2fbfb76ce822d073231ed1693143df2">I2C_S1_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  {</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  }</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span> <span class="comment"></span></div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> <span class="comment"> /*! Set the External I2C Power mode. */</span></div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  status = <a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>->PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  {</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  }</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> <span class="comment"></span></div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span> <span class="comment"> /*! Set the External I2C bus speed. */</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  status = <a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>->Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  {</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  }</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span> </div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span> }</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span> </div><div class="line"><a name="l00627"></a><span class="lineno"><a class="line" href="a04823.html#ae337a9a757a688707ce71b8e11d57ba4"> 627</a></span> <span class="keywordtype">int</span> <a class="code" href="a04823.html#ae337a9a757a688707ce71b8e11d57ba4">ADS_InitSPIBus</a>()</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span> {</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  <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="l00630"></a><span class="lineno"> 630</span> <span class="comment"></span></div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span> <span class="comment"> /*! Initialize the SPI driver. */</span></div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  status = <a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>->Initialize(<a class="code" href="a00578.html#a17302dfb42d8f2146a423d18b38afa13">SPI_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  {</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  }</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="comment"></span></div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="comment"> /*! Set the SPI Power mode. */</span></div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  status = <a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>->PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  {</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  }</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span> <span class="comment"></span></div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="comment"> /*! Set the SPI Slave speed. */</span></div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  status = <a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>->Control(ARM_SPI_MODE_MASTER | ARM_SPI_CPOL1_CPHA0, <a class="code" href="a00578.html#a822bbe5298894c23f6db8a34b5912ca3">SPI_S_BAUDRATE</a>);</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  {</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  }</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span> </div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span> }</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span> </div><div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="a04823.html#a08a3bcfdd7fe68d68f5e0f85baf05c40"> 655</a></span> <span class="keywordtype">int</span> <a class="code" href="a04823.html#a08a3bcfdd7fe68d68f5e0f85baf05c40">ADS_DeInitI2CBuses</a>()</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span> {</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <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="l00658"></a><span class="lineno"> 658</span> <span class="comment"></span></div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span> <span class="comment"> /*! De-Initialize the External I2C driver. */</span></div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  status = <a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>->Uninitialize();</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  {</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  }</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span> </div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span> }</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span> </div><div class="line"><a name="l00669"></a><span class="lineno"><a class="line" href="a04823.html#ab988a4b5e272952ab30c4dbf27c15148"> 669</a></span> <span class="keywordtype">int</span> <a class="code" href="a04823.html#ab988a4b5e272952ab30c4dbf27c15148">ADS_DeInitSPIBus</a>()</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> {</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <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="l00672"></a><span class="lineno"> 672</span> <span class="comment"></span></div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span> <span class="comment"> /*! De-Initialize the SPI0 driver. */</span></div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  status = <a class="code" href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a>->Uninitialize();</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  {</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR;</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  }</div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span> </div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span> }</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span> </div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span> <span class="comment">// Private function to detect Shield.</span></div><div class="line"><a name="l00684"></a><span class="lineno"><a class="line" href="a04823.html#a01f30c94c49eadb65cc176f79209e84c"> 684</a></span> <span class="keywordtype">int</span> <a class="code" href="a04823.html#a01f30c94c49eadb65cc176f79209e84c">ADS_DetectShield</a>(<span class="keywordtype">char</span> *pShieldString, <span class="keywordtype">size_t</span> bufferLength)</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span> {</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  <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="l00687"></a><span class="lineno"> 687</span>  uint8_t reg;</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  <span class="keywordtype">bool</span> match;</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  uint32_t boardFound = <a class="code" href="a04832.html#aa7215baf25a91359928e20b0b75e66b3">ADS_NO_SHIELD_DETECTED</a>;</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  <a class="code" href="a03819.html">registerDeviceInfo_t</a> deviceInfo = {0};</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span> </div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="comment">/* We init SPI bus to test for SPI Sensors. */</span></div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  <a class="code" href="a04823.html#ae337a9a757a688707ce71b8e11d57ba4">ADS_InitSPIBus</a>();</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span> </div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  <span class="comment">// Execute the SPI queries based on the ADS_SensorQueryList.</span></div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  <span class="keywordflow">for</span> (uint32_t i = 0; i < <a class="code" href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527">ADS_QUERY_NUM</a>; i++)</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  {</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07abe3b162d37e329ef4fa9ac334d1e2805">ADS_SPI_DEV</a> == ADS_SensorQueryList[i].channel)</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  {</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a5f4142ec26f518e7f8ab9f758e5e7a91">FXLS8962</a> == ADS_SensorQueryList[i].slaveAddr)</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  {</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  <a class="code" href="a04823.html#a700a2d30b8d440e08032549f1508c730">ADS_InitSPI_FXLS8962</a>();</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] =</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <a class="code" href="a04823.html#a7381a2e1ee8e3fb264314c9c71216c98">ADS_FXLS8962Query</a>(ADS_SensorQueryList[i].whoAmIAddr, ADS_SensorQueryList[i].whoAmIValue);</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  }</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a2699840f652004b0e475823793a65462">FXLS8471</a> == ADS_SensorQueryList[i].slaveAddr)</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  {</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  <a class="code" href="a04823.html#ad655793534d56b3d7fa931de6efbfc8a">ADS_InitSPI_FXLS8471</a>();</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] =</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  <a class="code" href="a04823.html#a9e2ed26195eaf78326777a51c8ac1f3a">ADS_FXLS8471Query</a>(ADS_SensorQueryList[i].whoAmIAddr, ADS_SensorQueryList[i].whoAmIValue);</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  }</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804aa010c84e426eec66a075b92041c55121">DIFF_P</a> == ADS_SensorQueryList[i].slaveAddr)</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  {</div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  <a class="code" href="a04823.html#ad62f3052de3e4b8bf43fde88bfdea1c9">ADS_InitSPI_DIFF_P</a>();</div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] =</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  <a class="code" href="a04823.html#ae3d648f7414fad5a7cce5161b3592c92">ADS_DIFF_PQuery</a>(ADS_SensorQueryList[i].whoAmIAddr, ADS_SensorQueryList[i].whoAmIValue);</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  }</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  }</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  }</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span> </div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  <span class="comment">/* We now disable SPI bus and init I2C buses to test for I2C sensors. */</span></div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  <a class="code" href="a04823.html#ab988a4b5e272952ab30c4dbf27c15148">ADS_DeInitSPIBus</a>();</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  <a class="code" href="a04823.html#a9112c08af09a669260e8cb583d5aa17d">ADS_InitI2CBuses</a>();</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span> </div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  <span class="comment">// Execute the Ext I2C queries based on the ADS_SensorQueryList.</span></div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  <span class="keywordflow">for</span> (uint32_t i = 0; i < <a class="code" href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527">ADS_QUERY_NUM</a>; i++)</div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  {</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a> == ADS_SensorQueryList[i].channel)</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  {</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  deviceInfo.<a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a> = <a class="code" href="a00578.html#a443b7fa870a185d189dcc6b8ec5b6747">I2C_S1_DEVICE_INDEX</a>;</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a6ee88a36eec5b41f4c4a25dd6e8ac4b5">FXLC95000</a> == ADS_SensorQueryList[i].slaveAddr)</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  {</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] = <a class="code" href="a04823.html#ad1db6927af79c26ca7b6447a93b42131">ADS_FXLC95000Query</a>();</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  }</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#a8a2947c074f77c3df57dad8b6851a804ac69e304d93caa37bc64297815710c5b7">MMA9553</a> == ADS_SensorQueryList[i].slaveAddr)</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  {</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] = <a class="code" href="a04823.html#a61f59d3254fb54c57b010f2f9f8a7499">ADS_MMA9553Query</a>();</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  }</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  status = <a class="code" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc">Register_I2C_Read</a>(<a class="code" href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a>, &deviceInfo, ADS_SensorQueryList[i].slaveAddr,</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  ADS_SensorQueryList[i].whoAmIAddr, 1, &reg);</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  <span class="keywordflow">if</span> ((ARM_DRIVER_OK != status) ||</div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  ((ADS_SensorQueryList[i].whoAmIValue & ADS_SensorQueryList[i].whoAmIMask) !=</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  (reg & ADS_SensorQueryList[i].whoAmIMask)))</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  {</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  }</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  {</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[i] = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  }</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  }</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  }</div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span> </div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <span class="comment">/* I2C Sensor verified, disable I2C buses. */</span></div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  <a class="code" href="a04823.html#a08a3bcfdd7fe68d68f5e0f85baf05c40">ADS_DeInitI2CBuses</a>();</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span> </div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  <span class="comment">// Analyze the responses and return the Sensor Shield or Reference name.</span></div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="keywordflow">for</span> (uint32_t board = 0; board < <a class="code" href="a04823.html#a2da3e0551054e080d46d0ff54cef3438">ADS_NUM_BOARDS</a>; board++)</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  {</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  match = <span class="keyword">true</span>;</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <span class="keywordflow">for</span> (uint32_t sensor = 0; sensor < <a class="code" href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527">ADS_QUERY_NUM</a>; sensor++)</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  {</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  <span class="keywordflow">if</span> (<a class="code" href="a04823.html#ad5bacae294b85a89e915c30eac2af230">gADS_QueryMap</a>[board][sensor] == <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a25428052ffebaf10761a8428c59357cc">ADS_NULL</a>)</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  {</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  }</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  <span class="keywordflow">if</span> (<a class="code" href="a04823.html#ad5bacae294b85a89e915c30eac2af230">gADS_QueryMap</a>[board][sensor] != <a class="code" href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a>[sensor])</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  {</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  match = <span class="keyword">false</span>;</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span>  }</div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  }</div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  <span class="keywordflow">if</span> (match)</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  {</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  boardFound = board;</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  }</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  }</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span> </div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  <span class="comment">// If a board was found, then put the proper string into the response.</span></div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  <span class="keywordflow">if</span> (boardFound != <a class="code" href="a04832.html#aa7215baf25a91359928e20b0b75e66b3">ADS_NO_SHIELD_DETECTED</a>)</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  {</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  strncpy(pShieldString, <a class="code" href="a04823.html#aa3ac6c86ab178cc95ac00e42c6fe0f6e">ADS_ShieldList</a>[boardFound], bufferLength);</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  status = ARM_DRIVER_OK;</div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  }</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  {</div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  status = ARM_DRIVER_ERROR;</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  }</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span> </div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span> }</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span> </div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span> <span class="comment">// Private function to detect the MCU.</span></div><div class="line"><a name="l00802"></a><span class="lineno"><a class="line" href="a04823.html#aa31f9674d05e903bd620ccd286af1e6f"> 802</a></span> <span class="keywordtype">int</span> <a class="code" href="a04823.html#aa31f9674d05e903bd620ccd286af1e6f">ADS_DetectLPC</a>(<span class="keywordtype">char</span> *pBoardString, <span class="keywordtype">size_t</span> bufferLength)</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span> {</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  <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="l00805"></a><span class="lineno"> 805</span> </div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  <span class="comment">// Declare the DEVID Query structure</span></div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  <a class="code" href="a03951.html">mcuDEVID_t</a> MCUInfo = {.<a class="code" href="a03951.html#a39c3ceb8c5f2a9cf281266ab19b6dee4">mcuDeviceId</a> = 0, .board = <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6a897e499b2ada67d3633c1c7614595890">ADS_NO_BOARD_DETECTED</a>};</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span> </div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  <span class="keywordflow">if</span> (pBoardString == NULL)</div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  {</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  <span class="keywordflow">return</span> ARM_DRIVER_ERROR_PARAMETER;</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  }</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span> </div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  uint32_t command[5] = {0}, result[4] = {0};</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span> </div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  command[0] = kIapCmd_FLASHIAP_ReadPartId;</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  iap_entry(command, result);</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span> </div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  MCUInfo.<a class="code" href="a03951.html#a39c3ceb8c5f2a9cf281266ab19b6dee4">mcuDeviceId</a> = result[1];</div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  <span class="comment">// Compare the values extracted to the static table and return detected board.</span></div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  <span class="keywordflow">for</span> (uint8_t i = 0; i < (<span class="keyword">sizeof</span>(<a class="code" href="a04823.html#a441a9a07c1140fb2ce8d35782bae67fc">ADS_ValidDEVIDValues</a>) / <span class="keyword">sizeof</span>(<a class="code" href="a03951.html">mcuDEVID_t</a>)); i++)</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  {</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  <span class="keywordflow">if</span> (MCUInfo.<a class="code" href="a03951.html#a39c3ceb8c5f2a9cf281266ab19b6dee4">mcuDeviceId</a> == ADS_ValidDEVIDValues[i].<a class="code" href="a03951.html#a39c3ceb8c5f2a9cf281266ab19b6dee4">mcuDeviceId</a>)</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span>  {</div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  MCUInfo.<a class="code" href="a03951.html#a76bce333125ddc938445c7b8d96f7c6f">board</a> = ADS_ValidDEVIDValues[i].<a class="code" href="a03951.html#a76bce333125ddc938445c7b8d96f7c6f">board</a>;</div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  }</div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  }</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span> </div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  status = ARM_DRIVER_OK;</div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <span class="comment">// Translate the result into the string.</span></div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  <span class="keywordflow">switch</span> (MCUInfo.<a class="code" href="a03951.html#a76bce333125ddc938445c7b8d96f7c6f">board</a>)</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  {</div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <span class="keywordflow">case</span> <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6afbfd4fc11881a603ae0d7a0a6e901070">ADS_LPC_54113J128</a>:</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  strncpy(pBoardString, <span class="stringliteral">"LPCXPRESSO54113J128"</span>, bufferLength);</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  <span class="keywordflow">case</span> <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6a85aa2dbaf42913c8d65e1c99e0763c12">ADS_LPC_54113J256</a>:</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  strncpy(pBoardString, <span class="stringliteral">"LPCXPRESSO54113J256"</span>, bufferLength);</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="keywordflow">case</span> <a class="code" href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6ac298d628e5ab26c7766325c1011a7701">ADS_LPC_54114J256</a>:</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  strncpy(pBoardString, <span class="stringliteral">"LPCXPRESSO54114J256"</span>, bufferLength);</div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  status = ARM_DRIVER_ERROR;</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  }</div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span> </div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span> }</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span> </div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span> <span class="comment">// Private function to compare flash contents.</span></div><div class="line"><a name="l00852"></a><span class="lineno"><a class="line" href="a04823.html#a183ae73ebe136fd547ba788842509b4d"> 852</a></span> <a class="code" href="a04832.html#adaec1e484d49136a42df93bcd3960216">ADS_FlashStatus_t</a> <a class="code" href="a04823.html#a183ae73ebe136fd547ba788842509b4d">ADS_FlashCompare</a>(<span class="keywordtype">char</span> *pResultString)</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span> {</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  <a class="code" href="a03959.html">ADSFlashRecord_t</a> flashRecord = {0};</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  uint32_t <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span> </div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  flashRecord.<a class="code" href="a03959.html#af9c930e4206148386b1d991e325a132d">cookie</a> = <a class="code" href="a04832.html#ad7f5142597543ad9c2f49c1d177c5dab">ADS_COOKIE_VALUE</a>;</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  status = FLASHIAP_Compare(<a class="code" href="a00578.html#a7942e95f728b7b26020a50c56b233027">ADS_NVM_ADDR</a>, (uint32_t *)&flashRecord.<a class="code" href="a03959.html#af9c930e4206148386b1d991e325a132d">cookie</a>, <span class="keyword">sizeof</span>(flashRecord.<a class="code" href="a03959.html#af9c930e4206148386b1d991e325a132d">cookie</a>));</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  <span class="comment">// Check that the ADS_COOKIE is as expected.</span></div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  <span class="keywordflow">if</span> (kStatus_FLASHIAP_Success != status)</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  {</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#adaec1e484d49136a42df93bcd3960216a5fb92bc1f537dd295522ae906db54792">ADS_NO_FLASH_RECORD</a>; <span class="comment">// Flash record is not valid.</span></div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  }</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  { <span class="comment">// Compare the result string with the ADS stored results in Flash.</span></div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  flashRecord.<a class="code" href="a03959.html#aebb70c2aab3407a9f05334c47131a43b">length</a> = strlen(pResultString);</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  strcpy(flashRecord.<a class="code" href="a03959.html#a6b2337442a5d7345977ee88a2b5da5b4">ADSString</a>, pResultString);</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  status = FLASHIAP_Compare(<a class="code" href="a00578.html#a7942e95f728b7b26020a50c56b233027">ADS_NVM_ADDR</a>, (uint32_t *)&flashRecord, <span class="keyword">sizeof</span>(flashRecord));</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <span class="keywordflow">if</span> (kStatus_FLASHIAP_Success != status)</div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  {</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#adaec1e484d49136a42df93bcd3960216afffa12e62be1f4ca70a3d766ce33a239">ADS_FLASH_RECORD_CHANGE</a>;</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  }</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  {</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  <span class="keywordflow">return</span> <a class="code" href="a04832.html#adaec1e484d49136a42df93bcd3960216aac42e0e061bfc1aa34ce9bb38cb4c6c9">ADS_FLASH_RECORD_NO_CHANGE</a>;</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  }</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span>  }</div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span> }</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span> </div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span> <span class="comment">// Private function to update flash contents.</span></div><div class="line"><a name="l00881"></a><span class="lineno"><a class="line" href="a04823.html#a7166b41888dc22e6a6090e081f072fe7"> 881</a></span> <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> <a class="code" href="a04823.html#a7166b41888dc22e6a6090e081f072fe7">ADS_FlashUpdate</a>(<span class="keywordtype">char</span> *pResultString)</div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span> {</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  status_t result;</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  <a class="code" href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a> retVal = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  <a class="code" href="a03959.html">ADSFlashRecord_t</a> flashRecord = {0};</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span> </div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  <span class="comment">// Create the ADS Flash Record.</span></div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  flashRecord.<a class="code" href="a03959.html#af9c930e4206148386b1d991e325a132d">cookie</a> = <a class="code" href="a04832.html#ad7f5142597543ad9c2f49c1d177c5dab">ADS_COOKIE_VALUE</a>;</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  flashRecord.<a class="code" href="a03959.html#aebb70c2aab3407a9f05334c47131a43b">length</a> = strlen(pResultString);</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  strcpy(flashRecord.<a class="code" href="a03959.html#a6b2337442a5d7345977ee88a2b5da5b4">ADSString</a>, pResultString);</div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span> </div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  <span class="comment">// Setup flash for write.</span></div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  result = FLASHIAP_PrepareSectorForWrite(<a class="code" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a>, <a class="code" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a>);</div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span>  <span class="keywordflow">if</span> (kStatus_FLASHIAP_Success == result)</div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  { <span class="comment">// Erase the target sector.</span></div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  result = FLASHIAP_EraseSector(<a class="code" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a>, <a class="code" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a>, <a class="code" href="a04223.html#aa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a>);</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  <span class="keywordflow">if</span> (kStatus_FLASHIAP_Success == result)</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  { <span class="comment">// Setup flash for write.</span></div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  result = FLASHIAP_PrepareSectorForWrite(<a class="code" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a>, <a class="code" href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a>);</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  <span class="keywordflow">if</span> (kStatus_FLASHIAP_Success == result)</div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  { <span class="comment">/* Write the ADS Record to the Flash.</span></div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span> <span class="comment"> * Note: Flash write needs to be 32-bit word aligned in length and in multiples of page size. */</span></div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  result = FLASHIAP_CopyRamToFlash(<a class="code" href="a00578.html#a7942e95f728b7b26020a50c56b233027">ADS_NVM_ADDR</a>, (uint32_t *)&flashRecord,</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  FSL_FEATURE_SYSCON_FLASH_PAGE_SIZE_BYTES, <a class="code" href="a04223.html#aa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a>);</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  <span class="keywordflow">if</span> (kStatus_FLASHIAP_Success == result)</div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  {</div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  retVal = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  }</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  }</div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  }</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  }</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span> </div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <span class="keywordflow">return</span> retVal;</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span> }</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span> </div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span> <span class="comment">// API to register Application Name and trigger Board Shield detection.</span></div><div class="line"><a name="l00917"></a><span class="lineno"><a class="line" href="a04838.html#a95285f14f6707e326e523c82d926c900"> 917</a></span> <span class="keywordtype">void</span> <a class="code" href="a04823.html#a95285f14f6707e326e523c82d926c900">BOARD_RunADS</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *appName, <span class="keywordtype">char</span> *<a class="code" href="a00401.html#a44681c771b24906b93d52a830b4ec968">boardString</a>, <span class="keywordtype">char</span> *<a class="code" href="a00401.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a>, <span class="keywordtype">size_t</span> bufferLength)</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span> {</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> position, <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a> = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a>;</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  <span class="keywordtype">char</span> finalString[<a class="code" href="a04832.html#a83e860489a7818c3b1006c1186492c6c">ADS_FLASH_STRING_LENGTH</a>] = {0};</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span> </div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  status = <a class="code" href="a04823.html#aa31f9674d05e903bd620ccd286af1e6f">ADS_DetectLPC</a>(boardString, bufferLength);</div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  <span class="keywordflow">if</span> (ARM_DRIVER_ERROR == status)</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  {</div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  strncpy(boardString, <span class="stringliteral">"NotDetected"</span>, bufferLength);</div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  status = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>  }</div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span> </div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span>  status = <a class="code" href="a04823.html#a01f30c94c49eadb65cc176f79209e84c">ADS_DetectShield</a>(shieldString, bufferLength);</div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  <span class="keywordflow">if</span> (ARM_DRIVER_ERROR == status)</div><div class="line"><a name="l00931"></a><span class="lineno"> 931</span>  {</div><div class="line"><a name="l00932"></a><span class="lineno"> 932</span>  strncpy(shieldString, <span class="stringliteral">"NotDetected"</span>, bufferLength);</div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span>  status = <a class="code" href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a>;</div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span>  }</div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span> </div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span>  <span class="comment">// Build the string with App Name and Shield Name to write to flash.</span></div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span>  strncpy(finalString, appName, <a class="code" href="a04832.html#a83e860489a7818c3b1006c1186492c6c">ADS_FLASH_STRING_LENGTH</a>);</div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  position = strlen(appName);</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span> </div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span>  finalString[position++] = <span class="charliteral">':'</span>;</div><div class="line"><a name="l00941"></a><span class="lineno"> 941</span> </div><div class="line"><a name="l00942"></a><span class="lineno"> 942</span>  strncpy(&finalString[position], shieldString, <a class="code" href="a04832.html#a83e860489a7818c3b1006c1186492c6c">ADS_FLASH_STRING_LENGTH</a> - position);</div><div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  position += strlen(shieldString);</div><div class="line"><a name="l00944"></a><span class="lineno"> 944</span> </div><div class="line"><a name="l00945"></a><span class="lineno"> 945</span>  <span class="comment">/* Fill the remaining string with 0. */</span></div><div class="line"><a name="l00946"></a><span class="lineno"> 946</span>  memset(&finalString[position], 0, <a class="code" href="a04832.html#a83e860489a7818c3b1006c1186492c6c">ADS_FLASH_STRING_LENGTH</a> - position);</div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span> </div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  status = <a class="code" href="a04823.html#a183ae73ebe136fd547ba788842509b4d">ADS_FlashCompare</a>(finalString);</div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  <span class="keywordflow">if</span> (<a class="code" href="a04832.html#adaec1e484d49136a42df93bcd3960216aac42e0e061bfc1aa34ce9bb38cb4c6c9">ADS_FLASH_RECORD_NO_CHANGE</a> != status)</div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span>  {</div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  <a class="code" href="a04823.html#a7166b41888dc22e6a6090e081f072fe7">ADS_FlashUpdate</a>(finalString);</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</span>  strcpy(finalString, shieldString);</div><div class="line"><a name="l00953"></a><span class="lineno"> 953</span>  snprintf(shieldString, bufferLength, <span class="stringliteral">"Changed:%s"</span>, finalString);</div><div class="line"><a name="l00954"></a><span class="lineno"> 954</span>  }</div><div class="line"><a name="l00955"></a><span class="lineno"> 955</span> }</div><div class="ttc" id="a00149_html_a2be9fbb738bd1481bdf9ff746ea0742c"><div class="ttname"><a href="a00149.html#a2be9fbb738bd1481bdf9ff746ea0742c">MMA9553_HDR_SIZE</a></div><div class="ttdeci">#define MMA9553_HDR_SIZE</div><div class="ttdoc">Size of fixed header bytes in sensor commands. </div><div class="ttdef"><b>Definition:</b> <a href="a00149_source.html#l00014">mma9553.h:14</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="a04823_html_aa096c321182964b06e5981c5099ef676"><div class="ttname"><a href="a04823.html#aa096c321182964b06e5981c5099ef676">gADS_QueryResults</a></div><div class="ttdeci">ADS_Status_t gADS_QueryResults[ADS_QUERY_NUM]</div><div class="ttdoc">This global contains the results from the sensor query. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00289">auto_detection_service.c:289</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="a00026_html_adaac462191d7b9b2b0e1555f58e3a2c6"><div class="ttname"><a href="a00026.html#adaac462191d7b9b2b0e1555f58e3a2c6">FXAS21002_WHO_AM_I_WHOAMI_PROD_VALUE</a></div><div class="ttdeci">#define FXAS21002_WHO_AM_I_WHOAMI_PROD_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00402">fxas21002.h:402</a></div></div> 56<div class="ttc" id="a03959_html_a6b2337442a5d7345977ee88a2b5da5b4"><div class="ttname"><a href="a03959.html#a6b2337442a5d7345977ee88a2b5da5b4">ADSFlashRecord_t::ADSString</a></div><div class="ttdeci">char ADSString[ADS_FLASH_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00119">auto_detection_service.h:119</a></div></div> 57<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> 58<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> 59<div class="ttc" id="a00545_html_a861d7de6a2676b357171a80cd624f07f"><div class="ttname"><a href="a00545.html#a861d7de6a2676b357171a80cd624f07f">DIFF_P_SPI_CS</a></div><div class="ttdeci">#define DIFF_P_SPI_CS</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00084">auto_detection_shield.h:84</a></div></div> 60<div class="ttc" id="a04823_html_aa31f9674d05e903bd620ccd286af1e6f"><div class="ttname"><a href="a04823.html#aa31f9674d05e903bd620ccd286af1e6f">ADS_DetectLPC</a></div><div class="ttdeci">int ADS_DetectLPC(char *pBoardString, size_t bufferLength)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00802">auto_detection_service.c:802</a></div></div> 61<div class="ttc" id="a00545_html_a796dd9723d74e61165234f822e9699fb"><div class="ttname"><a href="a00545.html#a796dd9723d74e61165234f822e9699fb">FXLS8471_SPI_CS</a></div><div class="ttdeci">#define FXLS8471_SPI_CS</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00063">auto_detection_shield.h:63</a></div></div> 62<div class="ttc" id="a00158_html_a5e7fba63eebd783231b18f414e8a138fabed78897e96609e9cfe9511e93fcc376"><div class="ttname"><a href="a00158.html#a5e7fba63eebd783231b18f414e8a138fabed78897e96609e9cfe9511e93fcc376">MPL3115_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00158_source.html#l00028">mpl3115.h:28</a></div></div> 63<div class="ttc" id="a04832_html_aa7215baf25a91359928e20b0b75e66b3"><div class="ttname"><a href="a04832.html#aa7215baf25a91359928e20b0b75e66b3">ADS_NO_SHIELD_DETECTED</a></div><div class="ttdeci">#define ADS_NO_SHIELD_DETECTED</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00026">auto_detection_service.h:26</a></div></div> 64<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> 65<div class="ttc" id="a04832_html_a8a2947c074f77c3df57dad8b6851a804a6ee88a36eec5b41f4c4a25dd6e8ac4b5"><div class="ttname"><a href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a6ee88a36eec5b41f4c4a25dd6e8ac4b5">FXLC95000</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00055">auto_detection_service.h:55</a></div></div> 66<div class="ttc" id="a04832_html_ada0ef9e6812e1a9ff9714ef7f1dd22c6ac298d628e5ab26c7766325c1011a7701"><div class="ttname"><a href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6ac298d628e5ab26c7766325c1011a7701">ADS_LPC_54114J256</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00076">auto_detection_service.h:76</a></div></div> 67<div class="ttc" id="a04823_html_a40f3748963d34f995ac43c047e53952d"><div class="ttname"><a href="a04823.html#a40f3748963d34f995ac43c047e53952d">DIFF_P_SPI_CMD_LEN</a></div><div class="ttdeci">#define DIFF_P_SPI_CMD_LEN</div><div class="ttdoc">These variables are specific to SPI access to the DIFF_P for ADS. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00058">auto_detection_service.c:58</a></div></div> 68<div class="ttc" id="a04823_html_ac41379288f66100cc71fa923e43d514f"><div class="ttname"><a href="a04823.html#ac41379288f66100cc71fa923e43d514f">ADS_FXLS8471Q_SPI_ReadPreprocess</a></div><div class="ttdeci">void ADS_FXLS8471Q_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00314">auto_detection_service.c:314</a></div></div> 69<div class="ttc" id="a04823_html_a441a9a07c1140fb2ce8d35782bae67fc"><div class="ttname"><a href="a04823.html#a441a9a07c1140fb2ce8d35782bae67fc">ADS_ValidDEVIDValues</a></div><div class="ttdeci">const mcuDEVID_t ADS_ValidDEVIDValues[]</div><div class="ttdoc">This constant data structure contains the expected valid MCU Device ID combinations. Refer : LPC5411x User manual - UM10914, Section: 33.5.12. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00076">auto_detection_service.c:76</a></div></div> 70<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> 71<div class="ttc" id="a00044_html"><div class="ttname"><a href="a00044.html">fxls8471q.h</a></div><div class="ttdoc">The fxls8471q.h file contains the register definitions for fxls8471q sensor driver. </div></div> 72<div class="ttc" id="a04832_html_adaec1e484d49136a42df93bcd3960216aac42e0e061bfc1aa34ce9bb38cb4c6c9"><div class="ttname"><a href="a04832.html#adaec1e484d49136a42df93bcd3960216aac42e0e061bfc1aa34ce9bb38cb4c6c9">ADS_FLASH_RECORD_NO_CHANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00087">auto_detection_service.h:87</a></div></div> 73<div class="ttc" id="a04832_html_ada0ef9e6812e1a9ff9714ef7f1dd22c6a85aa2dbaf42913c8d65e1c99e0763c12"><div class="ttname"><a href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6a85aa2dbaf42913c8d65e1c99e0763c12">ADS_LPC_54113J256</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00075">auto_detection_service.h:75</a></div></div> 74<div class="ttc" id="a04823_html_aa3ac6c86ab178cc95ac00e42c6fe0f6e"><div class="ttname"><a href="a04823.html#aa3ac6c86ab178cc95ac00e42c6fe0f6e">ADS_ShieldList</a></div><div class="ttdeci">char ADS_ShieldList[][ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00291">auto_detection_service.c:291</a></div></div> 75<div class="ttc" id="a04823_html_a8366c105b3fa0f74ec723060829f2001"><div class="ttname"><a href="a04823.html#a8366c105b3fa0f74ec723060829f2001">FXLS8962_SPI_CMD_LEN</a></div><div class="ttdeci">#define FXLS8962_SPI_CMD_LEN</div><div class="ttdoc">These variables are specific to SPI access to the FXLS8962 for ADS. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00052">auto_detection_service.c:52</a></div></div> 76<div class="ttc" id="a04823_html_ad5bacae294b85a89e915c30eac2af230"><div class="ttname"><a href="a04823.html#ad5bacae294b85a89e915c30eac2af230">gADS_QueryMap</a></div><div class="ttdeci">const ADS_Status_t gADS_QueryMap[][ADS_QUERY_NUM]</div><div class="ttdoc">These are the expected query signatures for the shield boards. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00104">auto_detection_service.c:104</a></div></div> 77<div class="ttc" id="a00578_html_a443b7fa870a185d189dcc6b8ec5b6747"><div class="ttname"><a href="a00578.html#a443b7fa870a185d189dcc6b8ec5b6747">I2C_S1_DEVICE_INDEX</a></div><div class="ttdeci">#define I2C_S1_DEVICE_INDEX</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00066">frdm_k64f.h:66</a></div></div> 78<div class="ttc" id="a04823_html_a99b11dd940990e967afd812ec64cbbd5"><div class="ttname"><a href="a04823.html#a99b11dd940990e967afd812ec64cbbd5">ADS_DIFF_P_SPI_WritePreprocess</a></div><div class="ttdeci">void ADS_DIFF_P_SPI_WritePreprocess(void *pCmdOut, uint32_t offset, uint32_t size, void *pWritebuffer)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00484">auto_detection_service.c:484</a></div></div> 79<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> 80<div class="ttc" id="a00545_html_a4860aad19aa4ea956e2ea937fb175847"><div class="ttname"><a href="a00545.html#a4860aad19aa4ea956e2ea937fb175847">MAG3110_I2C_ADDR</a></div><div class="ttdeci">#define MAG3110_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00039">auto_detection_shield.h:39</a></div></div> 81<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> 82<div class="ttc" id="a00053_html_ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f"><div class="ttname"><a href="a00053.html#ab39a415800ebd0d977c477376649649ba9096e7480199cfe2bede9ec07fbc6d1f">FXLS8962_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00046">fxls8962.h:46</a></div></div> 83<div class="ttc" id="a04823_html_af77b5405aba8f06230f838e4d50d0b8c"><div class="ttname"><a href="a04823.html#af77b5405aba8f06230f838e4d50d0b8c">FXLS8471Q_SS_ACTIVE_VALUE</a></div><div class="ttdeci">#define FXLS8471Q_SS_ACTIVE_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00047">auto_detection_service.c:47</a></div></div> 84<div class="ttc" id="a00080_html_abd3fc525439295db83a2fc98076c7ed7"><div class="ttname"><a href="a00080.html#abd3fc525439295db83a2fc98076c7ed7">FXOS8700_WHO_AM_I_PROD_VALUE</a></div><div class="ttdeci">#define FXOS8700_WHO_AM_I_PROD_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00146">fxos8700.h:146</a></div></div> 85<div class="ttc" id="a00401_html_a1c419755be00b2aebbd8d31da9b66142"><div class="ttname"><a href="a00401.html#a1c419755be00b2aebbd8d31da9b66142">shieldString</a></div><div class="ttdeci">char shieldString[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00401_source.html#l00121">data_logger_demo.c:121</a></div></div> 86<div class="ttc" id="a00176_html"><div class="ttname"><a href="a00176.html">register_io_spi.h</a></div><div class="ttdoc">The register_io_spi.h file declares low-level interface functions for reading and writing sensor regi...</div></div> 87<div class="ttc" id="a00089_html_af26f449e73437e60d22c20b4f2cb2aceabdd502b0786d5958e62e3000d98c6351"><div class="ttname"><a href="a00089.html#af26f449e73437e60d22c20b4f2cb2aceabdd502b0786d5958e62e3000d98c6351">FXPQ3115_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00089_source.html#l00028">fxpq3115.h:28</a></div></div> 88<div class="ttc" id="a03959_html_aebb70c2aab3407a9f05334c47131a43b"><div class="ttname"><a href="a03959.html#aebb70c2aab3407a9f05334c47131a43b">ADSFlashRecord_t::length</a></div><div class="ttdeci">uint32_t length</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00118">auto_detection_service.h:118</a></div></div> 89<div class="ttc" id="a00035_html"><div class="ttname"><a href="a00035.html">fxlc95000.h</a></div></div> 90<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> 91<div class="ttc" id="a04832_html_a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05"><div class="ttname"><a href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07a7887f65f6d999c679ad86e5c44fe2b05">ADS_I2C_EXT</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00045">auto_detection_service.h:45</a></div></div> 92<div class="ttc" id="a03803_html"><div class="ttname"><a href="a03803.html">spiSlaveSpecificParams_t</a></div><div class="ttdoc">This structure defines the spi slave command format. </div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00046">register_io_spi.h:46</a></div></div> 93<div class="ttc" id="a00035_html_a6cb69e7b3578f955a0f33089ab43112d"><div class="ttname"><a href="a00035.html#a6cb69e7b3578f955a0f33089ab43112d">FXLC95000_PART_NUMBER_OFFSET</a></div><div class="ttdeci">#define FXLC95000_PART_NUMBER_OFFSET</div><div class="ttdoc">Offset of 2-Byte SA95000 Part Number in Device Info Response. </div><div class="ttdef"><b>Definition:</b> <a href="a00035_source.html#l00030">fxlc95000.h:30</a></div></div> 94<div class="ttc" id="a04823_html_a2330121d8596da75f47cb2211228dff3"><div class="ttname"><a href="a04823.html#a2330121d8596da75f47cb2211228dff3">FXLS8962_SS_ACTIVE_VALUE</a></div><div class="ttdeci">#define FXLS8962_SS_ACTIVE_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00053">auto_detection_service.c:53</a></div></div> 95<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> 96<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> 97<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> 98<div class="ttc" id="a00545_html_ae74effce2cf3ebedf210277dc530d2df"><div class="ttname"><a href="a00545.html#ae74effce2cf3ebedf210277dc530d2df">FXLC95000_I2C_ADDR</a></div><div class="ttdeci">#define FXLC95000_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00070">auto_detection_shield.h:70</a></div></div> 99<div class="ttc" id="a00176_html_a67a2045f4f16d45f92fd22075416a7d6"><div class="ttname"><a href="a00176.html#a67a2045f4f16d45f92fd22075416a7d6">SPI_SS_ACTIVE_LOW</a></div><div class="ttdeci">#define SPI_SS_ACTIVE_LOW</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00021">register_io_spi.h:21</a></div></div> 100<div class="ttc" id="a03959_html"><div class="ttname"><a href="a03959.html">ADSFlashRecord_t</a></div><div class="ttdoc">This defines a record type to store ADS results string in Flash memory. </div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00115">auto_detection_service.h:115</a></div></div> 101<div class="ttc" id="a04832_html_a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc"><div class="ttname"><a href="a04832.html#a646ea6da9500d752612af698c350b9f6af1b49e4c220066d38b87a8fcb34ad5fc">ADS_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00034">auto_detection_service.h:34</a></div></div> 102<div class="ttc" id="a04832_html_ada0ef9e6812e1a9ff9714ef7f1dd22c6a897e499b2ada67d3633c1c7614595890"><div class="ttname"><a href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6a897e499b2ada67d3633c1c7614595890">ADS_NO_BOARD_DETECTED</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00077">auto_detection_service.h:77</a></div></div> 103<div class="ttc" id="a04823_html_a7381a2e1ee8e3fb264314c9c71216c98"><div class="ttname"><a href="a04823.html#a7381a2e1ee8e3fb264314c9c71216c98">ADS_FXLS8962Query</a></div><div class="ttdeci">ADS_Status_t ADS_FXLS8962Query(uint8_t whoAmiAddr, uint8_t whoAmi)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00448">auto_detection_service.c:448</a></div></div> 104<div class="ttc" id="a00044_html_a02cb2001941041d143b6ec575cbad1df"><div class="ttname"><a href="a00044.html#a02cb2001941041d143b6ec575cbad1df">FXLS8471Q_WHO_AM_I_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXLS8471Q_WHO_AM_I_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00044_source.html#l00512">fxls8471q.h:512</a></div></div> 105<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> 106<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> 107<div class="ttc" id="a04823_html_ae337a9a757a688707ce71b8e11d57ba4"><div class="ttname"><a href="a04823.html#ae337a9a757a688707ce71b8e11d57ba4">ADS_InitSPIBus</a></div><div class="ttdeci">int ADS_InitSPIBus()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00627">auto_detection_service.c:627</a></div></div> 108<div class="ttc" id="a04823_html_afcbead347b9ff2f7f171701c3b331f57"><div class="ttname"><a href="a04823.html#afcbead347b9ff2f7f171701c3b331f57">DIFF_P_SS_ACTIVE_VALUE</a></div><div class="ttdeci">#define DIFF_P_SS_ACTIVE_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00059">auto_detection_service.c:59</a></div></div> 109<div class="ttc" id="a00578_html_a822bbe5298894c23f6db8a34b5912ca3"><div class="ttname"><a href="a00578.html#a822bbe5298894c23f6db8a34b5912ca3">SPI_S_BAUDRATE</a></div><div class="ttdeci">#define SPI_S_BAUDRATE</div><div class="ttdoc">Transfer baudrate - 500k. </div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00088">frdm_k64f.h:88</a></div></div> 110<div class="ttc" id="a04823_html_ab1c2a0cebb07d7bbd5553cf40a643d56"><div class="ttname"><a href="a04823.html#ab1c2a0cebb07d7bbd5553cf40a643d56">I2CextDrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * I2CextDrv</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00301">auto_detection_service.c:301</a></div></div> 111<div class="ttc" id="a04832_html_ada0ef9e6812e1a9ff9714ef7f1dd22c6afbfd4fc11881a603ae0d7a0a6e901070"><div class="ttname"><a href="a04832.html#ada0ef9e6812e1a9ff9714ef7f1dd22c6afbfd4fc11881a603ae0d7a0a6e901070">ADS_LPC_54113J128</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00074">auto_detection_service.h:74</a></div></div> 112<div class="ttc" id="a04823_html_a7c1651eaeb6a77df59ef83a55c7ee40d"><div class="ttname"><a href="a04823.html#a7c1651eaeb6a77df59ef83a55c7ee40d">spiRead_DataBuffer</a></div><div class="ttdeci">uint8_t spiRead_DataBuffer[SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00308">auto_detection_service.c:308</a></div></div> 113<div class="ttc" id="a00113_html_ab79db5277fcbe695243c6d68332cbf4cabfe51d0aa19412fe06477494c4915254"><div class="ttname"><a href="a00113.html#ab79db5277fcbe695243c6d68332cbf4cabfe51d0aa19412fe06477494c4915254">MAG3110_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00113_source.html#l00023">mag3110.h:23</a></div></div> 114<div class="ttc" id="a00578_html_aa0c45bbc90cacf6048548850c9b48cb9"><div class="ttname"><a href="a00578.html#aa0c45bbc90cacf6048548850c9b48cb9">SPI_S_DEVICE_INDEX</a></div><div class="ttdeci">#define SPI_S_DEVICE_INDEX</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00089">frdm_k64f.h:89</a></div></div> 115<div class="ttc" id="a00170_html"><div class="ttname"><a href="a00170.html">register_io_i2c.h</a></div><div class="ttdoc">The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...</div></div> 116<div class="ttc" id="a04832_html_adaec1e484d49136a42df93bcd3960216a5fb92bc1f537dd295522ae906db54792"><div class="ttname"><a href="a04832.html#adaec1e484d49136a42df93bcd3960216a5fb92bc1f537dd295522ae906db54792">ADS_NO_FLASH_RECORD</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00085">auto_detection_service.h:85</a></div></div> 117<div class="ttc" id="a04832_html_a8a2947c074f77c3df57dad8b6851a804a2699840f652004b0e475823793a65462"><div class="ttname"><a href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a2699840f652004b0e475823793a65462">FXLS8471</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00056">auto_detection_service.h:56</a></div></div> 118<div class="ttc" id="a04823_html_a085e68fd2341901a3901ef721f8784d2"><div class="ttname"><a href="a04823.html#a085e68fd2341901a3901ef721f8784d2">FXLS8471Q_SPI_CMD_LEN</a></div><div class="ttdeci">#define FXLS8471Q_SPI_CMD_LEN</div><div class="ttdoc">These variables are specific to SPI access to the FXLS8471 for ADS. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00046">auto_detection_service.c:46</a></div></div> 119<div class="ttc" id="a03959_html_af9c930e4206148386b1d991e325a132d"><div class="ttname"><a href="a03959.html#af9c930e4206148386b1d991e325a132d">ADSFlashRecord_t::cookie</a></div><div class="ttdeci">uint32_t cookie</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00117">auto_detection_service.h:117</a></div></div> 120<div class="ttc" id="a04832_html_a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303"><div class="ttname"><a href="a04832.html#a646ea6da9500d752612af698c350b9f6a81547ba83f79f9001f395d2b1158a303">ADS_FAIL</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00035">auto_detection_service.h:35</a></div></div> 121<div class="ttc" id="a03955_html"><div class="ttname"><a href="a03955.html">sensorAccess_t</a></div><div class="ttdoc">This defines a record type to store the communication channel info and WHO_AM_I address/value for var...</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00103">auto_detection_service.h:103</a></div></div> 122<div class="ttc" id="a00545_html_aad15d3a5ef0b4d38efd527d188a8f0b8"><div class="ttname"><a href="a00545.html#aad15d3a5ef0b4d38efd527d188a8f0b8">MMA9553_I2C_ADDR</a></div><div class="ttdeci">#define MMA9553_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00073">auto_detection_shield.h:73</a></div></div> 123<div class="ttc" id="a04823_html_ad655793534d56b3d7fa931de6efbfc8a"><div class="ttname"><a href="a04823.html#ad655793534d56b3d7fa931de6efbfc8a">ADS_InitSPI_FXLS8471</a></div><div class="ttdeci">void ADS_InitSPI_FXLS8471()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00351">auto_detection_service.c:351</a></div></div> 124<div class="ttc" id="a04832_html_a8a2947c074f77c3df57dad8b6851a804a5f4142ec26f518e7f8ab9f758e5e7a91"><div class="ttname"><a href="a04832.html#a8a2947c074f77c3df57dad8b6851a804a5f4142ec26f518e7f8ab9f758e5e7a91">FXLS8962</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00057">auto_detection_service.h:57</a></div></div> 125<div class="ttc" id="a04832_html_adaec1e484d49136a42df93bcd3960216afffa12e62be1f4ca70a3d766ce33a239"><div class="ttname"><a href="a04832.html#adaec1e484d49136a42df93bcd3960216afffa12e62be1f4ca70a3d766ce33a239">ADS_FLASH_RECORD_CHANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00086">auto_detection_service.h:86</a></div></div> 126<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> 127<div class="ttc" id="a00026_html"><div class="ttname"><a href="a00026.html">fxas21002.h</a></div><div class="ttdoc">The fxas21002.h contains the fxas21002 sensor register definitions and its bit mask. </div></div> 128<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> 129<div class="ttc" id="a00545_html_a16a56b988ac0de778585d40fdada58f0"><div class="ttname"><a href="a00545.html#a16a56b988ac0de778585d40fdada58f0">FXAS21002_I2C_ADDR</a></div><div class="ttdeci">#define FXAS21002_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00032">auto_detection_shield.h:32</a></div></div> 130<div class="ttc" id="a04823_html_a9e2ed26195eaf78326777a51c8ac1f3a"><div class="ttname"><a href="a04823.html#a9e2ed26195eaf78326777a51c8ac1f3a">ADS_FXLS8471Query</a></div><div class="ttdeci">ADS_Status_t ADS_FXLS8471Query(uint8_t whoAmiAddr, uint8_t whoAmi)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00371">auto_detection_service.c:371</a></div></div> 131<div class="ttc" id="a04823_html_a95285f14f6707e326e523c82d926c900"><div class="ttname"><a href="a04823.html#a95285f14f6707e326e523c82d926c900">BOARD_RunADS</a></div><div class="ttdeci">void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)</div><div class="ttdoc">The function to register Application Name and initialte ADS. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00917">auto_detection_service.c:917</a></div></div> 132<div class="ttc" id="a00578_html_a7942e95f728b7b26020a50c56b233027"><div class="ttname"><a href="a00578.html#a7942e95f728b7b26020a50c56b233027">ADS_NVM_ADDR</a></div><div class="ttdeci">#define ADS_NVM_ADDR</div><div class="ttdoc">start of the next to last 4K (sector size) of the 1M flash </div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00148">frdm_k64f.h:148</a></div></div> 133<div class="ttc" id="a04832_html_a543b74063ebca712ad12ebdb4d6fbf07abe3b162d37e329ef4fa9ac334d1e2805"><div class="ttname"><a href="a04832.html#a543b74063ebca712ad12ebdb4d6fbf07abe3b162d37e329ef4fa9ac334d1e2805">ADS_SPI_DEV</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00046">auto_detection_service.h:46</a></div></div> 134<div class="ttc" id="a04823_html_a52a4dacfd7a467287186e9fdf89ce527"><div class="ttname"><a href="a04823.html#a52a4dacfd7a467287186e9fdf89ce527">ADS_QUERY_NUM</a></div><div class="ttdeci">#define ADS_QUERY_NUM</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00062">auto_detection_service.c:62</a></div></div> 135<div class="ttc" id="a00578_html_a2eca6eeb6669462eb49b726a107007d7"><div class="ttname"><a href="a00578.html#a2eca6eeb6669462eb49b726a107007d7">I2C_S1_DRIVER</a></div><div class="ttdeci">#define I2C_S1_DRIVER</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00065">frdm_k64f.h:65</a></div></div> 136<div class="ttc" id="a00158_html"><div class="ttname"><a href="a00158.html">mpl3115.h</a></div></div> 137<div class="ttc" id="a04832_html_a83e860489a7818c3b1006c1186492c6c"><div class="ttname"><a href="a04832.html#a83e860489a7818c3b1006c1186492c6c">ADS_FLASH_STRING_LENGTH</a></div><div class="ttdeci">#define ADS_FLASH_STRING_LENGTH</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00025">auto_detection_service.h:25</a></div></div> 138<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> 139<div class="ttc" id="a03951_html_a76bce333125ddc938445c7b8d96f7c6f"><div class="ttname"><a href="a03951.html#a76bce333125ddc938445c7b8d96f7c6f">mcuDEVID_t::board</a></div><div class="ttdeci">ADS_SupportedBoards_t board</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00096">auto_detection_service.h:96</a></div></div> 140<div class="ttc" id="a04823_html_a7166b41888dc22e6a6090e081f072fe7"><div class="ttname"><a href="a04823.html#a7166b41888dc22e6a6090e081f072fe7">ADS_FlashUpdate</a></div><div class="ttdeci">ADS_Status_t ADS_FlashUpdate(char *pResultString)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00881">auto_detection_service.c:881</a></div></div> 141<div class="ttc" id="a04832_html_a4296d0603c5898f7baef119cbfe42858"><div class="ttname"><a href="a04832.html#a4296d0603c5898f7baef119cbfe42858">ADS_MAX_STRING_LENGTH</a></div><div class="ttdeci">#define ADS_MAX_STRING_LENGTH</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00024">auto_detection_service.h:24</a></div></div> 142<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> 143<div class="ttc" id="a04823_html_a01f30c94c49eadb65cc176f79209e84c"><div class="ttname"><a href="a04823.html#a01f30c94c49eadb65cc176f79209e84c">ADS_DetectShield</a></div><div class="ttdeci">int ADS_DetectShield(char *pShieldString, size_t bufferLength)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00684">auto_detection_service.c:684</a></div></div> 144<div class="ttc" id="a04223_html_aa3cd3e43291e81e795d642b79b6088e6"><div class="ttname"><a href="a04223.html#aa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a></div><div class="ttdeci">uint32_t SystemCoreClock</div></div> 145<div class="ttc" id="a04823_html_a5944e5c7b4b0f736c786271998f677d2"><div class="ttname"><a href="a04823.html#a5944e5c7b4b0f736c786271998f677d2">SPIdrv</a></div><div class="ttdeci">ARM_DRIVER_SPI * SPIdrv</div><div class="ttdoc">These values hold the ARM CMSIS Driver interface pointers. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00300">auto_detection_service.c:300</a></div></div> 146<div class="ttc" id="a04823_html_a61f59d3254fb54c57b010f2f9f8a7499"><div class="ttname"><a href="a04823.html#a61f59d3254fb54c57b010f2f9f8a7499">ADS_MMA9553Query</a></div><div class="ttdeci">ADS_Status_t ADS_MMA9553Query()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00572">auto_detection_service.c:572</a></div></div> 147<div class="ttc" id="a00149_html"><div class="ttname"><a href="a00149.html">mma9553.h</a></div></div> 148<div class="ttc" id="a00545_html_a65f7da1c5270916e80ccfadee9da966c"><div class="ttname"><a href="a00545.html#a65f7da1c5270916e80ccfadee9da966c">DIFF_P_I2C_ADDR</a></div><div class="ttdeci">#define DIFF_P_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00083">auto_detection_shield.h:83</a></div></div> 149<div class="ttc" id="a04823_html_a5d4770d4af06a802589bca4df1ab44c1"><div class="ttname"><a href="a04823.html#a5d4770d4af06a802589bca4df1ab44c1">ADS_SensorQueryList</a></div><div class="ttdeci">const sensorAccess_t ADS_SensorQueryList[]</div><div class="ttdoc">This constant data structure contains the expected valid comm/sensor/who_am_i combinations. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00085">auto_detection_service.c:85</a></div></div> 150<div class="ttc" id="a04823_html_a6d9b04701a351186ec774dffa225a6e5"><div class="ttname"><a href="a04823.html#a6d9b04701a351186ec774dffa225a6e5">SPI_MAX_MSG_SIZE</a></div><div class="ttdeci">#define SPI_MAX_MSG_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00064">auto_detection_service.c:64</a></div></div> 151<div class="ttc" id="a04823_html_a183ae73ebe136fd547ba788842509b4d"><div class="ttname"><a href="a04823.html#a183ae73ebe136fd547ba788842509b4d">ADS_FlashCompare</a></div><div class="ttdeci">ADS_FlashStatus_t ADS_FlashCompare(char *pResultString)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00852">auto_detection_service.c:852</a></div></div> 152<div class="ttc" id="a00578_html_af2fbfb76ce822d073231ed1693143df2"><div class="ttname"><a href="a00578.html#af2fbfb76ce822d073231ed1693143df2">I2C_S1_SIGNAL_EVENT</a></div><div class="ttdeci">#define I2C_S1_SIGNAL_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00067">frdm_k64f.h:67</a></div></div> 153<div class="ttc" id="a04823_html_ad1db6927af79c26ca7b6447a93b42131"><div class="ttname"><a href="a04823.html#ad1db6927af79c26ca7b6447a93b42131">ADS_FXLC95000Query</a></div><div class="ttdeci">ADS_Status_t ADS_FXLC95000Query()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00543">auto_detection_service.c:543</a></div></div> 154<div class="ttc" id="a00026_html_af9bdc3014f3d54c426b6d2df10de4960a9c66d687be93ad245ccc01f865760180"><div class="ttname"><a href="a00026.html#af9bdc3014f3d54c426b6d2df10de4960a9c66d687be93ad245ccc01f865760180">FXAS21002_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00039">fxas21002.h:39</a></div></div> 155<div class="ttc" id="a04823_html_a9112c08af09a669260e8cb583d5aa17d"><div class="ttname"><a href="a04823.html#a9112c08af09a669260e8cb583d5aa17d">ADS_InitI2CBuses</a></div><div class="ttdeci">int ADS_InitI2CBuses()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00599">auto_detection_service.c:599</a></div></div> 156<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1daeff4a72b3fb41ee3d221f5e901f0f8ce"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daeff4a72b3fb41ee3d221f5e901f0f8ce">FXOS8700_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00031">fxos8700.h:31</a></div></div> 157<div class="ttc" id="a04823_html_a33a83e87996ed0bbf228d1a3793cab85"><div class="ttname"><a href="a04823.html#a33a83e87996ed0bbf228d1a3793cab85">ADS_DIFF_P_SPI_ReadPreprocess</a></div><div class="ttdeci">void ADS_DIFF_P_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00468">auto_detection_service.c:468</a></div></div> 158<div class="ttc" id="a04832_html_a1015ab17c7effd394e93b703bcd6c13e"><div class="ttname"><a href="a04832.html#a1015ab17c7effd394e93b703bcd6c13e">ADS_NO_WHO_AM_I</a></div><div class="ttdeci">#define ADS_NO_WHO_AM_I</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00023">auto_detection_service.h:23</a></div></div> 159<div class="ttc" id="a00113_html"><div class="ttname"><a href="a00113.html">mag3110.h</a></div></div> 160<div class="ttc" id="a04832_html"><div class="ttname"><a href="a04832.html">auto_detection_service.h</a></div></div> 161<div class="ttc" id="a04823_html_a745f716148252846838c653f885734dc"><div class="ttname"><a href="a04823.html#a745f716148252846838c653f885734dc">ADS_FXLS8962_SPI_WritePreprocess</a></div><div class="ttdeci">void ADS_FXLS8962_SPI_WritePreprocess(void *pCmdOut, uint32_t offset, uint32_t size, void *pWritebuffer)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00408">auto_detection_service.c:408</a></div></div> 162<div class="ttc" id="a04823_html_aa2c51cea1e2993cbd2206ee7b026f7a8"><div class="ttname"><a href="a04823.html#aa2c51cea1e2993cbd2206ee7b026f7a8">spiRead_CmdBuffer</a></div><div class="ttdeci">uint8_t spiRead_CmdBuffer[SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00307">auto_detection_service.c:307</a></div></div> 163<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> 164<div class="ttc" id="a00140_html"><div class="ttname"><a href="a00140.html">mma865x.h</a></div></div> 165<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> 166<div class="ttc" id="a00089_html_a47e12e22b7a7675f1990f3de8c6e295e"><div class="ttname"><a href="a00089.html#a47e12e22b7a7675f1990f3de8c6e295e">FXPQ3115_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXPQ3115_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00089_source.html#l00065">fxpq3115.h:65</a></div></div> 167<div class="ttc" id="a04823_html_a08a3bcfdd7fe68d68f5e0f85baf05c40"><div class="ttname"><a href="a04823.html#a08a3bcfdd7fe68d68f5e0f85baf05c40">ADS_DeInitI2CBuses</a></div><div class="ttdeci">int ADS_DeInitI2CBuses()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00655">auto_detection_service.c:655</a></div></div> 168<div class="ttc" id="a00044_html_a4caf8d8f829279fba122163d961608a4a1e84a6f8313228c80a24d25587ea0c8e"><div class="ttname"><a href="a00044.html#a4caf8d8f829279fba122163d961608a4a1e84a6f8313228c80a24d25587ea0c8e">FXLS8471Q_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00044_source.html#l00042">fxls8471q.h:42</a></div></div> 169<div class="ttc" id="a00158_html_a80b62e22babfe63712df92c8d48bbbcd"><div class="ttname"><a href="a00158.html#a80b62e22babfe63712df92c8d48bbbcd">MPL3115_WHOAMI_VALUE</a></div><div class="ttdeci">#define MPL3115_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00158_source.html#l00065">mpl3115.h:65</a></div></div> 170<div class="ttc" id="a00401_html_a44681c771b24906b93d52a830b4ec968"><div class="ttname"><a href="a00401.html#a44681c771b24906b93d52a830b4ec968">boardString</a></div><div class="ttdeci">char boardString[ADS_MAX_STRING_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="a00401_source.html#l00121">data_logger_demo.c:121</a></div></div> 171<div class="ttc" id="a04823_html_a17862b8056833d5e8af5c71d925d2f3b"><div class="ttname"><a href="a04823.html#a17862b8056833d5e8af5c71d925d2f3b">spiParams_diff_p</a></div><div class="ttdeci">spiSlaveSpecificParams_t spiParams_diff_p</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00306">auto_detection_service.c:306</a></div></div> 172<div class="ttc" id="a04823_html_a6c4324c31bf1b9f5553db003e202f125"><div class="ttname"><a href="a04823.html#a6c4324c31bf1b9f5553db003e202f125">ADS_NVM_SECTOR_NUM</a></div><div class="ttdeci">#define ADS_NVM_SECTOR_NUM</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00060">auto_detection_service.c:60</a></div></div> 173<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> 174<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> 175<div class="ttc" id="a00545_html"><div class="ttname"><a href="a00545.html">auto_detection_shield.h</a></div><div class="ttdoc">The auto_detection_shield.h file describes the definitions for Sensor I2C and SPI parameters required...</div></div> 176<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> 177<div class="ttc" id="a04823_html_ab988a4b5e272952ab30c4dbf27c15148"><div class="ttname"><a href="a04823.html#ab988a4b5e272952ab30c4dbf27c15148">ADS_DeInitSPIBus</a></div><div class="ttdeci">int ADS_DeInitSPIBus()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00669">auto_detection_service.c:669</a></div></div> 178<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> 179<div class="ttc" id="a04823_html_ae3d648f7414fad5a7cce5161b3592c92"><div class="ttname"><a href="a04823.html#ae3d648f7414fad5a7cce5161b3592c92">ADS_DIFF_PQuery</a></div><div class="ttdeci">ADS_Status_t ADS_DIFF_PQuery(uint8_t whoAmiAddr, uint8_t whoAmi)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00523">auto_detection_service.c:523</a></div></div> 180<div class="ttc" id="a00545_html_a8988e99259e07194918336da18dd35e9"><div class="ttname"><a href="a00545.html#a8988e99259e07194918336da18dd35e9">MMA8652_I2C_ADDR</a></div><div class="ttdeci">#define MMA8652_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00056">auto_detection_shield.h:56</a></div></div> 181<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> 182<div class="ttc" id="a00113_html_a6aa1b826321660c8b3307c289422a841"><div class="ttname"><a href="a00113.html#a6aa1b826321660c8b3307c289422a841">MAG3110_WHOAMI_VALUE</a></div><div class="ttdeci">#define MAG3110_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00113_source.html#l00037">mag3110.h:37</a></div></div> 183<div class="ttc" id="a00545_html_a424ab280dcc5a1d632d3a94885a4b7af"><div class="ttname"><a href="a00545.html#a424ab280dcc5a1d632d3a94885a4b7af">FXPQ3115_I2C_ADDR</a></div><div class="ttdeci">#define FXPQ3115_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00049">auto_detection_shield.h:49</a></div></div> 184<div class="ttc" id="a00578_html_a45b4f44a5ae6a42b8999f0051b421c7d"><div class="ttname"><a href="a00578.html#a45b4f44a5ae6a42b8999f0051b421c7d">SPI_S_DRIVER</a></div><div class="ttdeci">#define SPI_S_DRIVER</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00087">frdm_k64f.h:87</a></div></div> 185<div class="ttc" id="a04823_html_a700a2d30b8d440e08032549f1508c730"><div class="ttname"><a href="a04823.html#a700a2d30b8d440e08032549f1508c730">ADS_InitSPI_FXLS8962</a></div><div class="ttdeci">void ADS_InitSPI_FXLS8962()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00428">auto_detection_service.c:428</a></div></div> 186<div class="ttc" id="a00089_html"><div class="ttname"><a href="a00089.html">fxpq3115.h</a></div></div> 187<div class="ttc" id="a04823_html_afac3107a36ecdc3822366691c7e69f8d"><div class="ttname"><a href="a04823.html#afac3107a36ecdc3822366691c7e69f8d">ReadVersionInfo_MMA9553</a></div><div class="ttdeci">const uint8_t ReadVersionInfo_MMA9553[4]</div><div class="ttdoc">The Read Version Info Command for FXLC95000. </div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00070">auto_detection_service.c:70</a></div></div> 188<div class="ttc" id="a04823_html_a2da3e0551054e080d46d0ff54cef3438"><div class="ttname"><a href="a04823.html#a2da3e0551054e080d46d0ff54cef3438">ADS_NUM_BOARDS</a></div><div class="ttdeci">#define ADS_NUM_BOARDS</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00063">auto_detection_service.c:63</a></div></div> 189<div class="ttc" id="a00578_html_a17302dfb42d8f2146a423d18b38afa13"><div class="ttname"><a href="a00578.html#a17302dfb42d8f2146a423d18b38afa13">SPI_S_SIGNAL_EVENT</a></div><div class="ttdeci">#define SPI_S_SIGNAL_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00578_source.html#l00090">frdm_k64f.h:90</a></div></div> 190<div class="ttc" id="a00545_html_adec31513f28aceda1b78b1dba2f161fb"><div class="ttname"><a href="a00545.html#adec31513f28aceda1b78b1dba2f161fb">MPL3115_I2C_ADDR</a></div><div class="ttdeci">#define MPL3115_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00046">auto_detection_shield.h:46</a></div></div> 191<div class="ttc" id="a04832_html_ad7f5142597543ad9c2f49c1d177c5dab"><div class="ttname"><a href="a04832.html#ad7f5142597543ad9c2f49c1d177c5dab">ADS_COOKIE_VALUE</a></div><div class="ttdeci">#define ADS_COOKIE_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00027">auto_detection_service.h:27</a></div></div> 192<div class="ttc" id="a00053_html"><div class="ttname"><a href="a00053.html">fxls8962.h</a></div><div class="ttdoc">This file contains the FXLS8962 Accelerometer register definitions, access macros, and device access functions. </div></div> 193<div class="ttc" id="a00140_html_a3ee4e9f70475f3c684c23241163781abaf81b085731966d679dd38ae64123a94c"><div class="ttname"><a href="a00140.html#a3ee4e9f70475f3c684c23241163781abaf81b085731966d679dd38ae64123a94c">MMA865x_WHO_AM_I</a></div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00028">mma865x.h:28</a></div></div> 194<div class="ttc" id="a04823_html_a2e804a9d1267b7078fe76f3d6048701a"><div class="ttname"><a href="a04823.html#a2e804a9d1267b7078fe76f3d6048701a">ADS_FXLS8962_SPI_ReadPreprocess</a></div><div class="ttdeci">void ADS_FXLS8962_SPI_ReadPreprocess(void *pCmdOut, uint32_t offset, uint32_t size)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00391">auto_detection_service.c:391</a></div></div> 195<div class="ttc" id="a04832_html_a8a2947c074f77c3df57dad8b6851a804ac69e304d93caa37bc64297815710c5b7"><div class="ttname"><a href="a04832.html#a8a2947c074f77c3df57dad8b6851a804ac69e304d93caa37bc64297815710c5b7">MMA9553</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00064">auto_detection_service.h:64</a></div></div> 196<div class="ttc" id="a00545_html_a229f68d0d94ff8e21733702990dda68b"><div class="ttname"><a href="a00545.html#a229f68d0d94ff8e21733702990dda68b">FXLS8962_I2C_ADDR</a></div><div class="ttdeci">#define FXLS8962_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00066">auto_detection_shield.h:66</a></div></div> 197<div class="ttc" id="a00080_html"><div class="ttname"><a href="a00080.html">fxos8700.h</a></div><div class="ttdoc">The fxos8700.h file contains the register definitions for FXOS8700 sensor driver. ...</div></div> 198<div class="ttc" id="a00053_html_a827f1c265a5d5c1bb4b037f9c5d0b8ca"><div class="ttname"><a href="a00053.html#a827f1c265a5d5c1bb4b037f9c5d0b8ca">FXLS8962_WHOAMI_VALUE</a></div><div class="ttdeci">#define FXLS8962_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l00087">fxls8962.h:87</a></div></div> 199<div class="ttc" id="a00140_html_a073411344592aee73bcd637972375e00"><div class="ttname"><a href="a00140.html#a073411344592aee73bcd637972375e00">MMA8652_WHOAMI_VALUE</a></div><div class="ttdeci">#define MMA8652_WHOAMI_VALUE</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l00065">mma865x.h:65</a></div></div> 200<div class="ttc" id="a00545_html_abcc89d3851988f5c616dd70623a2fc76"><div class="ttname"><a href="a00545.html#abcc89d3851988f5c616dd70623a2fc76">FXLS8962_CS</a></div><div class="ttdeci">#define FXLS8962_CS</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00067">auto_detection_shield.h:67</a></div></div> 201<div class="ttc" id="a00545_html_a88d604d4e5776dfa8f16848425223cbb"><div class="ttname"><a href="a00545.html#a88d604d4e5776dfa8f16848425223cbb">FXOS8700_I2C_ADDR</a></div><div class="ttdeci">#define FXOS8700_I2C_ADDR</div><div class="ttdef"><b>Definition:</b> <a href="a00545_source.html#l00025">auto_detection_shield.h:25</a></div></div> 202<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> 203<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> 204<div class="ttc" id="a04823_html_ad1e0d7572bdcaf2a34ab099f568d98e3"><div class="ttname"><a href="a04823.html#ad1e0d7572bdcaf2a34ab099f568d98e3">ADS_FXLS8471Q_SPI_WritePreprocess</a></div><div class="ttdeci">void ADS_FXLS8471Q_SPI_WritePreprocess(void *pCmdOut, uint32_t offset, uint32_t size, void *pWritebuffer)</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00331">auto_detection_service.c:331</a></div></div> 205<div class="ttc" id="a04832_html_a8a2947c074f77c3df57dad8b6851a804aa010c84e426eec66a075b92041c55121"><div class="ttname"><a href="a04832.html#a8a2947c074f77c3df57dad8b6851a804aa010c84e426eec66a075b92041c55121">DIFF_P</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00066">auto_detection_service.h:66</a></div></div> 206<div class="ttc" id="a04832_html_a9dfbb4105fb22fac38b9a9eaa2740789"><div class="ttname"><a href="a04832.html#a9dfbb4105fb22fac38b9a9eaa2740789">ADS_Status_t</a></div><div class="ttdeci">enum ADS_Status ADS_Status_t</div><div class="ttdoc">This defines the return status. </div></div> 207<div class="ttc" id="a03951_html_a39c3ceb8c5f2a9cf281266ab19b6dee4"><div class="ttname"><a href="a03951.html#a39c3ceb8c5f2a9cf281266ab19b6dee4">mcuDEVID_t::mcuDeviceId</a></div><div class="ttdeci">uint32_t mcuDeviceId</div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00095">auto_detection_service.h:95</a></div></div> 208<div class="ttc" id="a04832_html_a646ea6da9500d752612af698c350b9f6a25428052ffebaf10761a8428c59357cc"><div class="ttname"><a href="a04832.html#a646ea6da9500d752612af698c350b9f6a25428052ffebaf10761a8428c59357cc">ADS_NULL</a></div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00036">auto_detection_service.h:36</a></div></div> 209<div class="ttc" id="a04823_html_ad62f3052de3e4b8bf43fde88bfdea1c9"><div class="ttname"><a href="a04823.html#ad62f3052de3e4b8bf43fde88bfdea1c9">ADS_InitSPI_DIFF_P</a></div><div class="ttdeci">void ADS_InitSPI_DIFF_P()</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00503">auto_detection_service.c:503</a></div></div> 210<div class="ttc" id="a04823_html_a6db1d6df12e6d4c08716be7c0ef9b83e"><div class="ttname"><a href="a04823.html#a6db1d6df12e6d4c08716be7c0ef9b83e">spiParams_8471</a></div><div class="ttdeci">spiSlaveSpecificParams_t spiParams_8471</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00304">auto_detection_service.c:304</a></div></div> 211<div class="ttc" id="a04823_html_a8b0551a8399a847d0034d2f28d615fe5"><div class="ttname"><a href="a04823.html#a8b0551a8399a847d0034d2f28d615fe5">spiParams_8962</a></div><div class="ttdeci">spiSlaveSpecificParams_t spiParams_8962</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00305">auto_detection_service.c:305</a></div></div> 212<div class="ttc" id="a04832_html_adaec1e484d49136a42df93bcd3960216"><div class="ttname"><a href="a04832.html#adaec1e484d49136a42df93bcd3960216">ADS_FlashStatus_t</a></div><div class="ttdeci">ADS_FlashStatus_t</div><div class="ttdoc">This enumeration defines the ADS Flash storage status. </div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00083">auto_detection_service.h:83</a></div></div> 213<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> 214<div class="ttc" id="a04823_html_ad8311d0493370059b241e19e1a911fb5"><div class="ttname"><a href="a04823.html#ad8311d0493370059b241e19e1a911fb5">spiWrite_CmdDataBuffer</a></div><div class="ttdeci">uint8_t spiWrite_CmdDataBuffer[SPI_MAX_MSG_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="a04823_source.html#l00309">auto_detection_service.c:309</a></div></div> 215<div class="ttc" id="a03951_html"><div class="ttname"><a href="a03951.html">mcuDEVID_t</a></div><div class="ttdoc">This defines a record type to store the expected field values of the LPC device ID. </div><div class="ttdef"><b>Definition:</b> <a href="a04832_source.html#l00093">auto_detection_service.h:93</a></div></div> 216</div><!-- fragment --></div><!-- contents --> 217 218<hr class="footer"/><address class="footer"><small> 219© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 220</small></address> 221</body> 222</html> 223