1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<meta http-equiv="X-UA-Compatible" content="IE=9"/> 6<meta name="generator" content="Doxygen 1.8.13"/> 7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>ISSDK: driverexamples/fxos8700/fxos8700_freemaster_demo.c Source File</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 10<script type="text/javascript" src="jquery.js"></script> 11<script type="text/javascript" src="dynsections.js"></script> 12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" /> 13</head> 14<body> 15<div id="top"><!-- do not remove this div, it is closed by doxygen! --> 16<div id="titlearea"> 17<table cellspacing="0" cellpadding="0"> 18 <tbody> 19 <tr style="height: 56px;"> 20 <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td> 21 <td id="projectalign" style="padding-left: 0.5em;"> 22 <div id="projectname">ISSDK 23  <span id="projectnumber">1.8</span> 24 </div> 25 <div id="projectbrief">IoT Sensing Software Development Kit</div> 26 </td> 27 </tr> 28 </tbody> 29</table> 30</div> 31<!-- end header part --> 32<!-- Generated by Doxygen 1.8.13 --> 33<script type="text/javascript" src="menudata.js"></script> 34<script type="text/javascript" src="menu.js"></script> 35<script type="text/javascript"> 36$(function() { 37 initMenu('',false,false,'search.php','Search'); 38}); 39</script> 40<div id="main-nav"></div> 41<div id="nav-path" class="navpath"> 42 <ul> 43<li class="navelem"><a class="el" href="dir_63958a0a083234c4c5a126855d7f4594.html">driverexamples</a></li><li class="navelem"><a class="el" href="dir_b11f246d628b311363ff01e884dab34d.html">fxos8700</a></li> </ul> 44</div> 45</div><!-- top --> 46<div class="header"> 47 <div class="headertitle"> 48<div class="title">fxos8700_freemaster_demo.c</div> </div> 49</div><!--header--> 50<div class="contents"> 51<a href="a00227.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 2019-2021 NXP</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> */</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"> * @file fxos8700_freemaster_demo.c</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * @brief The fxos8700_freemaster.c file implements FreeMASTER demo using the ISSDK</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * FXOS8700 sensor driver example demonstration with interrupt mode.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> */</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">/* SDK Includes */</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "pin_mux.h"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "clock_config.h"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "board.h"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "fsl_debug_console.h"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "math.h"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "fsl_uart.h"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "fsl_common.h"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "freemaster.h"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "freemaster_serial_uart.h"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">/* CMSIS Includes */</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "Driver_I2C.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">/* ISSDK Includes */</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "issdk_hal.h"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "gpio_driver.h"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="a00086.html">fxos8700_drv.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> * Macro Definitions</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> ******************************************************************************/</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc"> 37</a></span> <span class="preprocessor">#define FXOS8700_NUM_REGISTERS (FXOS8700_A_FFMT_THS_Z_LSB + 1)</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00227.html#ae08826b534e6815fb0b4066c6ffa79b6"> 38</a></span> <span class="preprocessor">#define FF_A_FFMT_THS (0x08) </span><span class="comment">/* FreeFall Threshold Value. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="a00227.html#a1c611e397ac2c8e1772b5c60e7659bd1"> 39</a></span> <span class="preprocessor">#define A_FFMT_COUNT (0x18) </span><span class="comment">/* Freefall/motion debounce count value. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="a00227.html#a058094e0bab74ee0f65e6a81f9ba95c9"> 40</a></span> <span class="preprocessor">#define PL_COUNT (0x15) </span><span class="comment">/* Pulse debounce count value. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="a00227.html#ac1de58f19be26d0d484cf2fa338c9eb5"> 41</a></span> <span class="preprocessor">#define ASLP_COUNTER (0x07) </span><span class="comment">/* Auto Sleep after ~5s. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="a00227.html#a655f856881e2748838614d8ebe75b9b3"> 42</a></span> <span class="preprocessor">#define ACCEL_2G_SENS (0.000244) </span><span class="comment">/* Sensitivity factor for 2G FS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="a00227.html#a08e287e51783ab8f90158352e6fc3af8"> 43</a></span> <span class="preprocessor">#define ACCEL_4G_SENS (0.000488) </span><span class="comment">/* Sensitivity factor for 4G FS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="a00227.html#a05b1ee83bf8f0e4f3d8ddcd5b6bdcf89"> 44</a></span> <span class="preprocessor">#define ACCEL_8G_SENS (0.000976) </span><span class="comment">/* Sensitivity factor for 8G FS */</span><span class="preprocessor"></span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="a00227.html#a0240ac851181b84ac374872dc5434ee4"> 45</a></span> <span class="preprocessor">#define N (500U) </span><span class="comment">/* Number of samples used to measure offset/noise */</span><span class="preprocessor"></span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="a00227.html#af7060aa7574a59dee97d81d9e3e75932"> 46</a></span> <span class="preprocessor">#define RAW_ACCELMAG_DATA_SIZE (12U) </span><span class="comment">/* Accel + Mag Data Size */</span><span class="preprocessor"></span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="a00227.html#a1ea66d33b5f8e9fda77f8dd865ef0408"> 47</a></span> <span class="preprocessor">#define MAX8BITSTORAGE (255U)</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</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"> * Constants</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment"> ******************************************************************************/</span><span class="comment"></span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">/*!</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> * @brief Defines the register write list to configure FXOS8700 in Hybrid mode.</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"><a class="line" href="a00227.html#a843458dbaa821012bab17d0e98ed192e"> 55</a></span> <span class="keyword">const</span> <a class="code" href="a03807.html">registerwritelist_t</a> <a class="code" href="a00227.html#a843458dbaa821012bab17d0e98ed192e">fxos8700_Config_Hybrid</a>[] = {<span class="comment"></span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> /*! Clear F_SETUP. */</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da346cb29b2789fad8b609bf25718bcb5a">FXOS8700_F_SETUP</a>, 0x00, 0x00},<span class="comment"></span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> /*! Set FS 2G Mode. */</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2">FXOS8700_XYZ_DATA_CFG</a>, <a class="code" href="a00080.html#aba788dd94f755ff1cf18ebd00f27afbb">FXOS8700_XYZ_DATA_CFG_FS_2G_0P244</a>, <a class="code" href="a00080.html#a9fa602b49525ada9ed3d0358cb2b909b">FXOS8700_XYZ_DATA_CFG_FS_MASK</a>},<span class="comment"></span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> /*! Configure the FXOS8700 to 100Hz sampling rate. */</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dab871a4ff4bb96c042507d1142bf1bb6d">FXOS8700_CTRL_REG1</a>, <a class="code" href="a00080.html#a6a83f4285d3804fa9d3995566e6186b8">FXOS8700_CTRL_REG1_DR_HYBRID_100_HZ</a>, <a class="code" href="a00080.html#a5ba8c0c0813375f895bc2312d44f30b7">FXOS8700_CTRL_REG1_DR_MASK</a>},<span class="comment"></span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> /*! Configure the FXOS8700 to Set High Resolution Mode. */</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a>, <a class="code" href="a00080.html#a167dc0c73cc0fe17de9736ac734e58d4">FXOS8700_CTRL_REG2_MODS_HIGH_RES</a>, <a class="code" href="a00080.html#a78432980ed93690f4de5e88202005b1e">FXOS8700_CTRL_REG2_MODS_MASK</a>}, </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabbf450dd8289876d3736d975ae12e782">FXOS8700_CTRL_REG3</a>, <a class="code" href="a00080.html#aa143b37000a4849deacb75476cd62c65">FXOS8700_CTRL_REG3_IPOL_ACTIVE_HIGH</a> | <a class="code" href="a00080.html#ab990c279c21f891fbc0222fbbf5e366c">FXOS8700_CTRL_REG3_PP_OD_PUSH_PULL</a>,</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="a00080.html#a65e7ea06e97099fdfafcaeb88b6924dd">FXOS8700_CTRL_REG3_IPOL_MASK</a> | <a class="code" href="a00080.html#afb4115590ea0c3fd56c2d07364b49dea">FXOS8700_CTRL_REG3_PP_OD_MASK</a>}, <span class="comment">/*! Active High, Push-Pull */</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a>, <a class="code" href="a00080.html#a064466e42f6f5da5d6f70521f6abe430">FXOS8700_CTRL_REG4_INT_EN_DRDY_EN</a>,<a class="code" href="a00080.html#a82dedea7c01e02db3c02b93eddac62c6">FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</a>}, <span class="comment">/*! Data Ready Event. */</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a>, <a class="code" href="a00080.html#a6dae90e14399f15106c8aea5a73344b3">FXOS8700_CTRL_REG5_INT_CFG_DRDY_INT2</a>, <a class="code" href="a00080.html#a35219e0a108fb9ccf4e7921bd3605cc6">FXOS8700_CTRL_REG5_INT_CFG_DRDY_MASK</a>}, <span class="comment">/*! INT2 Pin */</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6abb5ce7016e6812b2b26345b9e8633b">FXOS8700_M_CTRL_REG1</a>, <a class="code" href="a00080.html#a167df93bdb3585e3a280b1a9df7d7752">FXOS8700_M_CTRL_REG1_M_ACAL_DISABLE</a> | <a class="code" href="a00080.html#a546d30d71894319b5d80e6d6be4134ec">FXOS8700_M_CTRL_REG1_M_HMS_HYBRID_MODE</a> | <a class="code" href="a00080.html#ad533d11aeba6f307df55aedc5ef664e0">FXOS8700_M_CTRL_REG1_M_OS_OSR0</a>,</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="a00080.html#a6bf900c7c50e30c75e0ef180998c579d">FXOS8700_M_CTRL_REG1_M_ACAL_MASK</a> | <a class="code" href="a00080.html#a25f9a595de3ea9bd91ddd18edee4772f">FXOS8700_M_CTRL_REG1_M_HMS_MASK</a> | <a class="code" href="a00080.html#ae487bee36a16320599ec6ee7ec0d084c">FXOS8700_M_CTRL_REG1_M_OS_MASK</a>}, <span class="comment">/*! Enable the Hybrid Mode. */</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dad68ab453311e27577e484c5ecc4ccad2">FXOS8700_M_CTRL_REG2</a>, <a class="code" href="a00080.html#a1a72c517a353d858cf5fd6bb05a35b12">FXOS8700_M_CTRL_REG2_M_AUTOINC_HYBRID_MODE</a>, <a class="code" href="a00080.html#a4e4cbcde9752b23ac4ed33f47c0d979f">FXOS8700_M_CTRL_REG2_M_AUTOINC_MASK</a>}, <span class="comment">/*! Enable the Data read with Hybrid Mode. */</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a>,0x7E,0x00},</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a>,255,0x00},</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"></span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> /*! Landscape-Portrait registers configurations */</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da74183b0d30ca406ec3582987c2aaeab1">FXOS8700_PL_CFG</a>,<a class="code" href="a00080.html#ac1312afdc6bae61b04dda1b96a003012">FXOS8700_PL_CFG_DBCNTM_CLEAR_MODE</a> ,<a class="code" href="a00080.html#aca72634957b5cf6c32cec64aa5369093">FXOS8700_PL_CFG_DBCNTM_MASK</a>},</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da74183b0d30ca406ec3582987c2aaeab1">FXOS8700_PL_CFG</a>,<a class="code" href="a00080.html#a5926f767e2267c71d53c4e648d801157">FXOS8700_PL_CFG_PL_EN_ENABLE</a> ,<a class="code" href="a00080.html#a94733a422f988a615c9026d62f3a0251">FXOS8700_PL_CFG_PL_EN_MASK</a> },<span class="comment"></span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> /*! PL count set to (64 * 2.5ms) = 160ms */</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da70ec756be1105c19b43a8d872bf4813e">FXOS8700_PL_COUNT</a>, 0x40, 0x00},<span class="comment"></span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> /*! Z-lock angle threshold set to ~28deg */</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4f013a8a31ea0ab6e1d3d54f2d069084">FXOS8700_PL_BF_ZCOMP</a>,4 ,<a class="code" href="a00080.html#afd97faa7cda438848420f2b997713757">FXOS8700_PL_BF_ZCOMP_ZLOCK_MASK</a>},<span class="comment"></span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"> /*! Back/front trip angle threshold set to ~44deg */</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4f013a8a31ea0ab6e1d3d54f2d069084">FXOS8700_PL_BF_ZCOMP</a>,2 ,<a class="code" href="a00080.html#ac9b73e9a1c60dcc25ebd51a507e558a5">FXOS8700_PL_BF_ZCOMP_BKFR_MASK</a>},<span class="comment"></span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"> /*! PL_THS set to 0x10=> 45deg threshold angle, HYS set to 0b100=> LtoP trip angle 59deg and PtoL trip angle 31deg*/</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da54038464c87e86ad55841b2c5cafa68e">FXOS8700_PL_THS_REG</a>,132,0x00},</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"></span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> /*! Freefall detection registers configurations */</span><span class="comment"></span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> /*! Configure FreeFall debounce counter to 60msec */</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da42573a4c4bafb1b2158a714e6e8b8f0e">FXOS8700_A_FFMT_COUNT</a>, <a class="code" href="a00227.html#a1c611e397ac2c8e1772b5c60e7659bd1">A_FFMT_COUNT</a>, 0}, <span class="comment">/* Debounce Counter */</span><span class="comment"></span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> /*! Configure FreeFall detection threshold to 0.5g */</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabe02277bed750f9b3062eddcb056d116">FXOS8700_A_FFMT_THS</a>, <a class="code" href="a00227.html#ae08826b534e6815fb0b4066c6ffa79b6">FF_A_FFMT_THS</a> | <a class="code" href="a00080.html#ada37da1fea36568118756213341b02fc">FXOS8700_A_FFMT_THS_DBCNTM_MASK</a>,</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="a00080.html#a359e9025b66d1dc8be94098285e6cc4f">FXOS8700_A_FFMT_THS_THS_MASK</a> | <a class="code" href="a00080.html#ada37da1fea36568118756213341b02fc">FXOS8700_A_FFMT_THS_DBCNTM_MASK</a>}, <span class="comment">/* Threshold */</span><span class="comment"></span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> /*! Configure sensor to detect freefall, raise event on X, Y, Z axes */</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da47d310708d19fb1bac84942ead51427d">FXOS8700_A_FFMT_CFG</a>,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="a00080.html#a6d615cbf80d537eb46ac4bd7588458d4">FXOS8700_A_FFMT_CFG_OAE_FREEFALL</a> | <a class="code" href="a00080.html#a0e4711bb3723261f1d41b2b9ac100796">FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT</a> |</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="a00080.html#a3083726008f66866d39ce47ef2407c11">FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT</a> | <a class="code" href="a00080.html#ac0b2a2750f3ae87c19b54e21a347cd03">FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT</a>,</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="a00080.html#a4cbf59a396799828f6790f8ce1b7b6b0">FXOS8700_A_FFMT_CFG_OAE_MASK</a> | <a class="code" href="a00080.html#a2e9348f883ca462834be1da82a5f0297">FXOS8700_A_FFMT_CFG_ZEFE_MASK</a> |</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="a00080.html#a11dc5e0d310818490addf314f7f35dfc">FXOS8700_A_FFMT_CFG_YEFE_MASK</a> | <a class="code" href="a00080.html#a28456d1cd33970595c08601b8e743fe5">FXOS8700_A_FFMT_CFG_XEFE_MASK</a>},</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a>, <a class="code" href="a00080.html#a789eda6a40a31f6f1b57537279c745ed">FXOS8700_CTRL_REG4_INT_EN_FFMT_EN</a>, <a class="code" href="a00080.html#ab428e85d93ab5d14bd2fac89d95ae4a0">FXOS8700_CTRL_REG4_INT_EN_FFMT_MASK</a>},</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"></span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"> /*! Pulse detection registers configurations */</span><span class="comment"></span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> /*! Configure to raise event flag on detection of single-pulse event (spefe) on X, Y & Z axes*/</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da2923eb196a8a5d6b80288c7938dbd5d6">FXOS8700_PULSE_CFG</a>,21,0x00},<span class="comment"></span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> /*! Configure Pulse Time Limit to 50msec */</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da043eb7ebb11eefa98ef6dad29452c395">FXOS8700_PULSE_TMLT</a>,80,0x00},<span class="comment"></span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> /*! Configure pulse latency to 300msec */</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da49d25c56d018c9408ed16510a8b52806">FXOS8700_PULSE_LTCY</a>,240,0x00},<span class="comment"></span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> /*! Configure Pulse detection threshold for X, Y, Z axes */</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daa32a639f764f1f3f0568509901c979db">FXOS8700_PULSE_THSX</a>,55,0x00},</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dae15d3220778357c7e5923ac6fa2b2a00">FXOS8700_PULSE_THSY</a>,55,0x00},</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4b4bdc373df2c834f2fa9291d35ddcbe">FXOS8700_PULSE_THSZ</a>,82,0x00},</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"></span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"> /*! VECM change detection configurations */</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  { <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5d4d46c13fbb93a2225a010adef7356a">FXOS8700_A_VECM_CNT</a>,15,0x00},<span class="comment"></span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> /*! Configure VECM to enable VECM ELE (0x40) and VECM EN (0x08)*/</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  { <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6065128c30cf2049395a33727bad836a">FXOS8700_A_VECM_CFG</a>,72,0x00},<span class="comment"></span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> /*! Set VECM THS to ~0.5g; THS = 0x788=>1928 (=0.47g in 2g mode) */</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  { <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da7aa02f568c0ec73a140d9ff8f20642e2">FXOS8700_A_VECM_THS_LSB</a>,88,0x00},</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  { <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daec11def31d5bdc79eacbfcaeb33ba462">FXOS8700_A_VECM_THS_MSB</a>,1, <a class="code" href="a00080.html#aa64beb94e4fee231baa79be68646e6b3">FXOS8700_A_VECM_THS_MSB_A_VBECM_DBCNTM_MASK</a> },</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  { <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daec11def31d5bdc79eacbfcaeb33ba462">FXOS8700_A_VECM_THS_MSB</a>,27, <a class="code" href="a00080.html#a7a2181d84196d13828719d0517d299f1">FXOS8700_A_VECM_THS_MSB_A_VBECM_THS_MASK</a> },</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>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"></span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment">/*!</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"> * @brief Defines the register read list to read the Data Ready Status.</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"> */</span></div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="a00227.html#aa5b71c0ab8cc97df0989925e699ed572"> 126</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00227.html#aa5b71c0ab8cc97df0989925e699ed572">cFXOS8700_whoami</a>[] = {</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daeff4a72b3fb41ee3d221f5e901f0f8ce">FXOS8700_WHO_AM_I</a>, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};<span class="comment"></span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment">/*!</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"> * @brief Defines the register read list to read the Interrupt Source.</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"> */</span></div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="a00227.html#a8e7f25e3e23d20e4610984a75d433e67"> 131</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00227.html#a8e7f25e3e23d20e4610984a75d433e67">cFXOS8700_int_src</a>[] = {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dad423501ecdc60c836cc4126556886a78">FXOS8700_INT_SOURCE</a>, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};<span class="comment"></span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment">/*!</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> * @brief Defines the register read list to read the FullScale range.</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> */</span></div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="a00227.html#a26b1b57fd9e2ad995d913e41313703a8"> 136</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00227.html#a26b1b57fd9e2ad995d913e41313703a8">cFXOS8700_fs_src</a>[] = {</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2">FXOS8700_XYZ_DATA_CFG</a>, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"></span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment">/*!</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> * @brief Defines the register read list to read all-registers.</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> */</span></div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="a00227.html#af3ce67e40594c7841d59fdd7d98c6230"> 142</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00227.html#af3ce67e40594c7841d59fdd7d98c6230">FXOS8700_ALL_REG_READ</a>[] = {{.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da17330073edbdd7b0bef5c42408c03271">FXOS8700_STATUS</a>, .numBytes = <a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>},</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};<span class="comment"></span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">/*!</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> * @brief Defines the register read list to read FFMT Source.</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> */</span></div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="a00227.html#ad8547e62aa9be0385ce2266a4978ac66"> 147</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00227.html#ad8547e62aa9be0385ce2266a4978ac66">cFXOS8700_ffmt_src</a>[] = {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da423dbb0266f16ab488a304c3d7a33327">FXOS8700_A_FFMT_SRC</a> , .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};<span class="comment"></span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment">/*!</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"> * @brief Defines the register read list to read the PL Status.</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> */</span></div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="a00227.html#aa363fd413aff26f23603006d0b129c4d"> 152</a></span> <span class="keyword">const</span> <a class="code" href="a03811.html">registerreadlist_t</a> <a class="code" href="a00227.html#aa363fd413aff26f23603006d0b129c4d">cFXOS8700_pl_status</a>[] = {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da2b9bf41cfebedaf14e0c7653f800a536">FXOS8700_PL_STATUS</a>, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"></span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">/*!</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"> * @brief This structure defines the fxos8700 all registers metadata.</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"> */</span></div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="a03823.html"> 158</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> {</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="a03823.html#aa9fff43968831437a312428836cab362"> 160</a></span>  uint8_t <a class="code" href="a03823.html#aa9fff43968831437a312428836cab362">offset</a>;</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="a03823.html#a638e4503e0ae6ce655b7ad2e17e8f0ad"> 161</a></span>  uint8_t <a class="code" href="a03823.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">value</a>;</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="a03823.html#ad47e9b879c95a25ce124bd5611ff9497"> 162</a></span>  uint8_t <a class="code" href="a03823.html#ad47e9b879c95a25ce124bd5611ff9497">trigger</a>;</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="a03823.html#ab65acde67dc46f1d163e2ee468420b48"> 163</a></span>  uint8_t <a class="code" href="a03823.html#ab65acde67dc46f1d163e2ee468420b48">read_offset</a>;</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="a03823.html#a96995c8df2aa66256c07ed09638a251c"> 164</a></span>  uint8_t <a class="code" href="a03823.html#a96995c8df2aa66256c07ed09638a251c">read_value</a>;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="a03823.html#a016f00fd424d6219ccb402eea3f598df"> 165</a></span>  uint8_t <a class="code" href="a03823.html#a016f00fd424d6219ccb402eea3f598df">read_trigger</a>;</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="a03823.html#aeb2f1fc5efedab3e71d21ed85b714be2"> 166</a></span>  uint8_t readall_value[<a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>];</div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="a03823.html#a68fea111a9a0540bf8e4a50113a0fc66"> 167</a></span>  uint8_t <a class="code" href="a03823.html#a68fea111a9a0540bf8e4a50113a0fc66">readall_size</a>;</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="a03823.html#a2e521321a4d5d43daa4ae43891a0f553"> 168</a></span>  uint8_t <a class="code" href="a03823.html#a2e521321a4d5d43daa4ae43891a0f553">readall_trigger</a>;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="a03823.html#af53fbe055eb102357c08a01337cd7838"> 169</a></span>  uint8_t <a class="code" href="a03823.html#af53fbe055eb102357c08a01337cd7838">toggle</a>;</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="a03823.html#adb6a8af4ed350e0bd00bb086852d3f04"> 170</a></span>  uint8_t <a class="code" href="a03823.html#adb6a8af4ed350e0bd00bb086852d3f04">trigger_accel_offnoise</a>;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="a03823.html#ae682e23de52a05af6f694f8b2787ffb5"> 171</a></span>  uint8_t <a class="code" href="a03823.html#ae682e23de52a05af6f694f8b2787ffb5">trigger_mag_offnoise</a>;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="a03823.html#a485fad199cd9c5504f6d08eaed75e1d5"> 172</a></span>  uint8_t <a class="code" href="a03823.html#a485fad199cd9c5504f6d08eaed75e1d5">fs_value</a>;</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="a03823.html#aa5744614a78838192d7de403e29c3d0c"> 173</a></span>  uint8_t <a class="code" href="a03823.html#aa5744614a78838192d7de403e29c3d0c">mods_value</a>;</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="a03823.html#a302c32582636dde519482a4f4f5e89c6"> 174</a></span>  uint16_t <a class="code" href="a03823.html#a302c32582636dde519482a4f4f5e89c6">freefall_cntr</a>;</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="a03823.html#a7d446a6cedeedd092ede0fe151ecc080"> 175</a></span>  uint16_t <a class="code" href="a03823.html#a7d446a6cedeedd092ede0fe151ecc080">tapdetect_cntr</a>;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="a03823.html#a8589aa31de200854d9f070127749a272"> 176</a></span>  uint16_t <a class="code" href="a03823.html#a8589aa31de200854d9f070127749a272">orient_cntr</a>;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="a03823.html#a32efc3f89fae601ba0771878f636893c"> 177</a></span>  uint16_t <a class="code" href="a03823.html#a32efc3f89fae601ba0771878f636893c">vecmchange_cntr</a>;</div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659"> 178</a></span>  uint8_t reg_addr[<a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>];</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8"> 179</a></span>  uint8_t <a class="code" href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8">dataready_cntr</a>;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="a03823.html#a579c1a74d7de6ed4e97b8a29d6d826cd"> 180</a></span>  <span class="keywordtype">float</span> accel[3];</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="a03823.html#a8bfde20656d3b3e853ffd2bacd794bc5"> 181</a></span>  <span class="keywordtype">float</span> mag[3];</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> } <a class="code" href="a03823.html">fxos8700_allregs_t</a>;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"></span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment">/*!</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"> * @brief This structure defines the fxos8700 offset and noise calculation parameters.</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"> */</span></div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="a03827.html"> 187</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> {</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="a03827.html#a095cf332a6632b68d181f35bda318f5b"> 189</a></span>  <span class="keywordtype">float</span> <a class="code" href="a03827.html#a095cf332a6632b68d181f35bda318f5b">offx</a>;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="a03827.html#af01b0ac6ab1d631dd5da23e55a855bd5"> 190</a></span>  <span class="keywordtype">float</span> <a class="code" href="a03827.html#af01b0ac6ab1d631dd5da23e55a855bd5">offy</a>;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="a03827.html#a176534e2df647e63538839e08e2987ed"> 191</a></span>  <span class="keywordtype">float</span> <a class="code" href="a03827.html#a176534e2df647e63538839e08e2987ed">offz</a>;</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="a03827.html#a495a615081e1d215673d7c7f9a7f1b4d"> 192</a></span>  <span class="keywordtype">float</span> <a class="code" href="a03827.html#a495a615081e1d215673d7c7f9a7f1b4d">rmsx</a>;</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="a03827.html#a9cf6d0f93a0b3f226d25bc3e33ce4e66"> 193</a></span>  <span class="keywordtype">float</span> <a class="code" href="a03827.html#a9cf6d0f93a0b3f226d25bc3e33ce4e66">rmsy</a>;</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="a03827.html#a96b237aa78c72cadbbc09578d19e68e9"> 194</a></span>  <span class="keywordtype">float</span> <a class="code" href="a03827.html#a96b237aa78c72cadbbc09578d19e68e9">rmsz</a>;</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="a03827.html#ada22027b92c169dd88578f6861046e28"> 195</a></span>  <span class="keywordtype">float</span> mag_off[3];</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7"> 196</a></span>  <span class="keywordtype">float</span> mag_rms[3];</div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5"> 197</a></span>  uint8_t <a class="code" href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5">complete_accel_offnoise</a>;</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035"> 198</a></span>  uint8_t <a class="code" href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035">complete_mag_offnoise</a>;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> } <a class="code" href="a03827.html">fxos8700_offset_noise_t</a>;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"></span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment">/*!</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> * @brief Defines host operation types.</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"> */</span></div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="a00227.html#abedfdd1fc498fd83331960e1810107db"> 204</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107db">fxos8700_operation_type</a></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> {</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="a00227.html#abedfdd1fc498fd83331960e1810107dba757ac03fc22b261e34290476c755d784"> 206</a></span>  <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba757ac03fc22b261e34290476c755d784">FXOS8700_REG_WRITE</a> = 1U,</div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="a00227.html#abedfdd1fc498fd83331960e1810107dbac6a2b24a2231cb89ea3c26c1ac9ad217"> 207</a></span>  <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dbac6a2b24a2231cb89ea3c26c1ac9ad217">FXOS8700_REG_READ</a> = 2U,</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="a00227.html#abedfdd1fc498fd83331960e1810107dba8ecb8390410bf891c47603b34b6a14e4"> 208</a></span>  <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba8ecb8390410bf891c47603b34b6a14e4">FXOS8700_ALLREG_READ</a> = 3U,</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="a00227.html#abedfdd1fc498fd83331960e1810107dba2a1c6bdb4a159b7ee3249be4001be124"> 209</a></span>  <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba2a1c6bdb4a159b7ee3249be4001be124">FXOS8700_ACCEL_CONFIG_END</a></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> } <a class="code" href="a00227.html#abf6c21d708fbd20cb95a12d6ffd8b936">fxos8700_operation_type_t</a>;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> * Globals</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"> ******************************************************************************/</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"><a class="line" href="a00227.html#ad508addf55fd0c55016ce25fe85bbd3d"> 218</a></span> <a class="code" href="a02751.html">fxos8700_accelmagdata_t</a> <a class="code" href="a00227.html#ad508addf55fd0c55016ce25fe85bbd3d">rawData</a>;</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="a00227.html#ad73e0a7c8c5e35e29af853b0da753e5e"> 219</a></span> <a class="code" href="a03823.html">fxos8700_allregs_t</a> <a class="code" href="a00227.html#ad73e0a7c8c5e35e29af853b0da753e5e">registers</a>;</div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="a00227.html#ab4c4c9ebd0cbda1a1a39c48ae0c5221b"> 220</a></span> <a class="code" href="a03827.html">fxos8700_offset_noise_t</a> <a class="code" href="a00227.html#ab4c4c9ebd0cbda1a1a39c48ae0c5221b">offnoise_data</a>;</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="a00227.html#a6aa7a1a86aa031539466bf44d884ef39"> 221</a></span> uint8_t <a class="code" href="a00227.html#a6aa7a1a86aa031539466bf44d884ef39">prev_toggle</a> = 1;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="a00227.html#aef958fbc866cee6b181b68cb2d1d7341"> 222</a></span> <span class="keyword">volatile</span> <span class="keywordtype">bool</span> <a class="code" href="a00227.html#aef958fbc866cee6b181b68cb2d1d7341">bFxos8700DataReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="keyword">static</span> FMSTR_U8 recBuffer[1024*10];</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="a00227.html#ad162871b835f5bcb36700a35673419f0"> 225</a></span> FMSTR_REC_BUFF <a class="code" href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a>;</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="a00227.html#a02a7f812c6f2feab3aa25c1a34e3322b"> 226</a></span> FMSTR_REC_VAR <a class="code" href="a00227.html#a02a7f812c6f2feab3aa25c1a34e3322b">recVar</a>;</div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="a00227.html#a04985d175bb78cb94c9b193af34402fd"> 227</a></span> FMSTR_REC_CFG <a class="code" href="a00227.html#a04985d175bb78cb94c9b193af34402fd">recCfg</a>;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"> * Local functions</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> ******************************************************************************/</span><span class="comment"></span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment">/*! @brief Function to initialize target communication to FreeMASTER host.</span></div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> * @details This function initializes FreeMASTER UART communication.</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> * @param[in] void.</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"> * @return void.</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> */</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">static</span> <span class="keywordtype">void</span> init_freemaster_uart(<span class="keywordtype">void</span>);<span class="comment"></span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="comment">/*! @brief ISR for FXOS8700 data ready event.</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="comment"> * @details This function implements ISR for FXOS8700 DRDY event.</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"> * @param[in] void *.</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment"> * @return void.</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> */</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a461c227ab3069288f501cf13ad219a58">fxos8700_isr_callback</a>(<span class="keywordtype">void</span> *pUserData);<span class="comment"></span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment">/*! @brief Function to apply FXOS8700 register write operation.</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> * @details This function apply FXOS8700 register write based on write trigger from host.</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> * @param[in] fxos8700_i2c_sensorhandle_t FXOS8700drv, FXOS8700 sensor I2C handle.</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"> * @param[in] uint8_t offset, the address of the register to start writing from.</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"> * @param[in] uint8_t value, value to write on register offset.</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"> * @return returns the status of the operation.</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment"> */</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#ad9e8a6cd2292d849361bd69d8e2f5ffb">apply_register_write</a>(<a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv, uint8_t offset, uint8_t value);<span class="comment"></span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment">/*! @brief Function to apply FXOS8700 register read operation.</span></div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment"> * @details This function apply FXOS8700 register read based on read trigger from host.</span></div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment"> * @param[in] fxos8700_i2c_sensorhandle_t FXOS8700drv, FXOS8700 sensor I2C handle.</span></div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"> * @param[in] uint8_t offset, the address of the register to read from.</span></div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment"> * @param[in/out] uint8_t *value, pointer to output buffer.</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> * @return returns the status of the operation.</span></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="comment"> */</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#ab25bdb65b1da36293681315a4ee38775">apply_register_read</a>(<a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv, uint8_t offset, uint8_t *value);<span class="comment"></span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment">/*! @brief Function to apply FXOS8700 register read-all operation.</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment"> * @details This function apply FXOS8700 all-registers read based on read-all trigger from host.</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment"> * @param[in] fxos8700_i2c_sensorhandle_t FXOS8700drv, FXOS8700 sensor I2C handle.</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"> * @return returns the status of the operation.</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment"> */</span></div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#ab58f4b8e72da1820ea391f00a71535b0">apply_register_readall</a>(<a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv);<span class="comment"></span></div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="comment">/*! @brief Function to update dropdown selection.</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="comment"> * @details This function updates the dropdown selection values in real-time based on read/write/read-all triggers.</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="comment"> * @param[in/out] fxos8700_allregs_t *registers, pointer to FXOS8700 all-registers metadata.</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="comment"> * @param[in] uint8_t caller, called from which operation type.</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="comment"> * @return returns the status of the operation.</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="comment"> */</span></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9">update_dropdown_selection</a>( <a class="code" href="a03823.html">fxos8700_allregs_t</a> *registers, uint8_t caller);<span class="comment"></span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="comment">/*! @brief Function to initialize offset noise measurement.</span></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="comment"> * @details This function initializes offset noise measurement metadata.</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="comment"> * @param[in/out] fxos8700_offset_noise_t *offnoiseptr, pointer to FXOS8700 offset noise metadata.</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="comment"> * @return void.</span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment"> */</span></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a2d8f7e0edacd46196e724081a276948a">offset_noise_init</a>(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a> *offnoiseptr);<span class="comment"></span></div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment">/*! @brief Function to measure accelerometer offset noise.</span></div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="comment"> * @details This function measures accelerometer offset noise.</span></div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="comment"> * @param[in] fxos8700_accelmagdata_t *rawData, pointer to FXOS8700 rawdata metadata.</span></div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="comment"> * @param[in/out] fxos8700_offset_noise_t *offnoiseptr, pointer to FXOS8700 offset noise metadata.</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="comment"> * @param[in] float sens, FXOS8700 sensitivity based on FS configuration.</span></div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment"> * @return void.</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment"> */</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a31dc23c8d49a4ba48dc0989d2cfedbc5">accel_off_noise</a>(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>* rawData,<a class="code" href="a03827.html">fxos8700_offset_noise_t</a> *offnoiseptr, <span class="keywordtype">float</span> sens);<span class="comment"></span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment">/*! @brief Function to measure magnetometer offset noise.</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"> * @details This function measures magnetometer offset noise.</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment"> * @param[in] fxos8700_accelmagdata_t *rawData, pointer to FXOS8700 rawdata metadata.</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment"> * @param[in/out] fxos8700_offset_noise_t *offnoiseptr, pointer to FXOS8700 offset noise metadata.</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment"> * @return void.</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment"> */</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a01c7149f3cf2d3756df3262ede904c37">mag_off_noise</a>(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>* rawData,<a class="code" href="a03827.html">fxos8700_offset_noise_t</a> *offnoiseptr);</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#ac0ede279731ef03a63e646ed3cc7ae29">FRM_Recorder_Init</a>();</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"> * Code</span></div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment"> ******************************************************************************/</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"> 300</span> <span class="comment">/*! This is the Sensor Data Ready ISR implementation.*/</span></div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="a00227.html#a461c227ab3069288f501cf13ad219a58"> 301</a></span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a461c227ab3069288f501cf13ad219a58">fxos8700_isr_callback</a>(<span class="keywordtype">void</span> *pUserData)</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> { <span class="comment">/*! @brief Set flag to indicate Sensor has signalled data ready. */</span></div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="a00227.html#aef958fbc866cee6b181b68cb2d1d7341">bFxos8700DataReady</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> }</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="comment">/* Create TSA table and add output variables. */</span><span class="comment"></span></div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment">/*!</span></div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="comment"> * @brief Target Side Addressable (TSA) table created for this application.</span></div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="comment"> */</span></div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="a00227.html#a6766a0733476b67067b84a70ba78e214"> 310</a></span> <a class="code" href="a00227.html#a6766a0733476b67067b84a70ba78e214">FMSTR_TSA_TABLE_BEGIN</a>(main_table)</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  FMSTR_TSA_STRUCT(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>)</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  FMSTR_TSA_MEMBER(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>, mag, FMSTR_TSA_SINT16)</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  FMSTR_TSA_STRUCT(<a class="code" href="a03823.html">fxos8700_allregs_t</a>)</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, offset, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, value, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, trigger, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, read_offset, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, read_value, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, read_trigger, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, readall_value, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, readall_size, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, readall_trigger, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, trigger_accel_offnoise, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, trigger_mag_offnoise, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, fs_value, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, mods_value, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, toggle, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, freefall_cntr, FMSTR_TSA_UINT16)</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, tapdetect_cntr, FMSTR_TSA_UINT16)</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, orient_cntr, FMSTR_TSA_UINT16)</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, vecmchange_cntr, FMSTR_TSA_UINT16)</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, reg_addr, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, accel, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03823.html">fxos8700_allregs_t</a>, dataready_cntr, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> </div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  FMSTR_TSA_STRUCT(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>)</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, offx, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, offy, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, offz, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, rmsx, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, rmsy, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, rmsz, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, mag_rms, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, mag_off, FMSTR_TSA_FLOAT)</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, complete_accel_offnoise, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  FMSTR_TSA_MEMBER(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>, complete_mag_offnoise, FMSTR_TSA_UINT8)</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  FMSTR_TSA_RO_VAR(rawData, FMSTR_TSA_USERTYPE(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>))</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span> </div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  FMSTR_TSA_RW_VAR(registers, FMSTR_TSA_USERTYPE(<a class="code" href="a03823.html">fxos8700_allregs_t</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>  FMSTR_TSA_RO_VAR(offnoise_data, FMSTR_TSA_USERTYPE(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a>))</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> FMSTR_TSA_TABLE_END()</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> </div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span> FMSTR_TSA_TABLE_LIST_BEGIN()</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  FMSTR_TSA_TABLE(main_table)</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> FMSTR_TSA_TABLE_LIST_END()</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="comment"></span></div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <span class="comment">/*!</span></div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="comment"> * @brief FreeMASTER recorder initialization</span></div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="comment"> */</span></div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#ac0ede279731ef03a63e646ed3cc7ae29">FRM_Recorder_Init</a>()</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> {</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="comment">/* Do local configuration of additional recorder */</span></div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="comment">/* Setup the additional recorder raw buffer */</span></div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <a class="code" href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a>.addr = recBuffer;</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <a class="code" href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a>.size = <span class="keyword">sizeof</span>(recBuffer);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <a class="code" href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a>.basePeriod_ns = 0; <span class="comment">/* Unknown period */</span></div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a>.name = <span class="stringliteral">"FXOS8700 3-Axis Accelerometer Data"</span>;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  FMSTR_RecorderCreate(1, &<a class="code" href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a>);</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> }</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment"></span></div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment">/*!</span></div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment"> * @brief Main function</span></div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="comment"> */</span></div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span> </div><div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="a00227.html#a840291bc02cba5474a4cb46a9b9566fe"> 381</a></span> <span class="keywordtype">int</span> <a class="code" href="a00227.html#a840291bc02cba5474a4cb46a9b9566fe">main</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span> {</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</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="l00384"></a><span class="lineno"> 384</span>  uint16_t ffmt_incr = 0;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  uint16_t pulse_incr = 0;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  uint16_t orient_incr = 0;</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  uint16_t vecm_incr = 0;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  uint8_t regdata;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordtype">float</span> sensitivity = <a class="code" href="a00227.html#a655f856881e2748838614d8ebe75b9b3">ACCEL_2G_SENS</a>;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  ARM_DRIVER_I2C *<a class="code" href="a00368.html#a3c22bed16a7c769894081222aa6107d8">I2Cdrv</a> = &<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>; <span class="comment">// Now using the shield.h value!!!</span></div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <a class="code" href="a03903.html">GENERIC_DRIVER_GPIO</a> *<a class="code" href="a00281.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a> = &<a class="code" href="a04841.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a>;</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv;</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="comment"></span></div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="comment"> /*! Initialize the MCU hardware. */</span></div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <a class="code" href="a00959.html#ga2c9fe54b6b84723fbaa590a6f4576966">BOARD_InitPins</a>();</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <a class="code" href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a>();</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="a04109.html#a4c84ccb952cb083367d7040cf9de3db8">BOARD_InitDebugConsole</a>();</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="comment"></span></div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment"> /*! Initialize FXOS8700_INT2 pin used by FRDM board */</span></div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  pGpioDriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a04337.html#a60005578d4c221a07d4eba159c4592fa">FXOS8700_INT2</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a>, NULL, &<a class="code" href="a00227.html#a461c227ab3069288f501cf13ad219a58">fxos8700_isr_callback</a>, NULL);</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment"></span></div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment"> /*! Initialize RGB LED pin used by FRDM board */</span></div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  pGpioDriver-><a class="code" href="a03903.html#a0c1e5657ab29e57116a57c7b22f4c630">pin_init</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>, <a class="code" href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5a869f710c2bafc06d7ef192861b8358ab">GPIO_DIRECTION_OUT</a>, NULL, NULL, NULL);</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"></span></div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"> /*! FreeMASTER communication layer initialization */</span></div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  init_freemaster_uart();</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span> <span class="comment"></span></div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="comment"> /*! Initialize the I2C driver. */</span></div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  status = I2Cdrv->Initialize(<a class="code" href="a04343.html#a60ac2e3bb32ae33e2fd542f607a58ac4">I2C_S_SIGNAL_EVENT</a>);</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  {</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</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"></span></div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span> <span class="comment"> /*! Set the I2C Power mode. */</span></div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  status = I2Cdrv->PowerControl(ARM_POWER_FULL);</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  {</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</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"></span></div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="comment"> /*! Set the I2C bus speed. */</span></div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  status = I2Cdrv->Control(ARM_I2C_BUS_SPEED, ARM_I2C_BUS_SPEED_FAST);</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keywordflow">if</span> (ARM_DRIVER_OK != status)</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>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  }</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="comment"></span></div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="comment"> /*! Initialize the FXOS8700 sensor driver. */</span></div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  status = <a class="code" href="a00083.html#a17953ccee62fbd698318197b109b9e9f">FXOS8700_I2C_Initialize</a>(&FXOS8700drv, &<a class="code" href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a>, <a class="code" href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a>, <a class="code" href="a00545.html#a88d604d4e5776dfa8f16848425223cbb">FXOS8700_I2C_ADDR</a>,</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <a class="code" href="a00080.html#abd3fc525439295db83a2fc98076c7ed7">FXOS8700_WHO_AM_I_PROD_VALUE</a>);</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  {</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  }</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="comment"></span></div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> <span class="comment"> /*! Set the task to be executed while waiting for I2C transactions to complete. */</span></div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <a class="code" href="a00083.html#af4efbd044b09aea215f120856f443caf">FXOS8700_I2C_SetIdleTask</a>(&FXOS8700drv, (<a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a>)<a class="code" href="a00638.html#a82cb114bb9a5ea2f235a0216709d70f8">SMC_SetPowerModeVlpr</a>, <a class="code" href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a>);</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment"></span></div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="comment"> /*! Configure the fxos8700 sensor driver. */</span></div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  status = <a class="code" href="a00083.html#adcb4dbaa31a6b4ccd6031ee6cc97bb66">FXOS8700_I2C_Configure</a>(&FXOS8700drv, fxos8700_Config_Hybrid);</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  {</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  }</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="comment"></span></div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span> <span class="comment"> /*! FreeMASTER Driver Initialization */</span></div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  FMSTR_Init();</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span> <span class="comment"></span></div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span> <span class="comment"> /*! FreeMASTER Recorder Initialization */</span></div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <a class="code" href="a00227.html#ac0ede279731ef03a63e646ed3cc7ae29">FRM_Recorder_Init</a>();</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span> <span class="comment"></span></div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span> <span class="comment"> /*! Initialize trigger flags */</span></div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  registers.<a class="code" href="a03823.html#af53fbe055eb102357c08a01337cd7838">toggle</a> = 1;</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  registers.<a class="code" href="a03823.html#ad47e9b879c95a25ce124bd5611ff9497">trigger</a> = 0;</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  registers.<a class="code" href="a03823.html#a016f00fd424d6219ccb402eea3f598df">read_trigger</a> = 0;</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  registers.<a class="code" href="a03823.html#a96995c8df2aa66256c07ed09638a251c">read_value</a> = 0;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  registers.<a class="code" href="a03823.html#a2e521321a4d5d43daa4ae43891a0f553">readall_trigger</a> = 0;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  registers.<a class="code" href="a03823.html#adb6a8af4ed350e0bd00bb086852d3f04">trigger_accel_offnoise</a>=0;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  registers.<a class="code" href="a03823.html#ae682e23de52a05af6f694f8b2787ffb5">trigger_mag_offnoise</a>=0;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  registers.<a class="code" href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8">dataready_cntr</a> = 0;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="comment"></span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="comment"> /*! Initialize read all values */</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < <a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>; i++)</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  {</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  registers.<a class="code" href="a03823.html#aeb2f1fc5efedab3e71d21ed85b714be2">readall_value</a>[i] = 0;</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  }</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>  <span class="keywordflow">for</span> (;;) <span class="comment">/* Forever loop */</span></div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  {</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span> <span class="comment"></span></div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span> <span class="comment"> /*! Call Recorder#0 in execution loop for generic high-speed variables sampling. */</span></div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  FMSTR_Recorder(0);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <span class="comment"></span></div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span> <span class="comment"> /*! Call FreeMASTER host in polling mode */</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  FMSTR_Poll();</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="comment"></span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment"> /*! Check for any write register trigger from Host */</span></div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keywordflow">if</span> (registers.<a class="code" href="a03823.html#ad47e9b879c95a25ce124bd5611ff9497">trigger</a> == 1)</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  {<span class="comment"></span></div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> <span class="comment"> /*! Apply Register Write */</span></div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  status = <a class="code" href="a00227.html#ad9e8a6cd2292d849361bd69d8e2f5ffb">apply_register_write</a>(FXOS8700drv, registers.<a class="code" href="a03823.html#aa9fff43968831437a312428836cab362">offset</a>, registers.<a class="code" href="a03823.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">value</a>);</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</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>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</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>  registers.<a class="code" href="a03823.html#ad47e9b879c95a25ce124bd5611ff9497">trigger</a> = 0;<span class="comment"></span></div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span> <span class="comment"> /*! Update drop down menu selection based on updated register write */</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9">update_dropdown_selection</a>(&registers, <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba757ac03fc22b261e34290476c755d784">FXOS8700_REG_WRITE</a>);</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  }</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="comment"></span></div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="comment"> /*! Check for any read register trigger from Host */</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keywordflow">if</span> (registers.<a class="code" href="a03823.html#a016f00fd424d6219ccb402eea3f598df">read_trigger</a> == 1)</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  {<span class="comment"></span></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <span class="comment"> /*! Apply Register Write */</span></div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  status = <a class="code" href="a00227.html#ab25bdb65b1da36293681315a4ee38775">apply_register_read</a>(FXOS8700drv, registers.<a class="code" href="a03823.html#ab65acde67dc46f1d163e2ee468420b48">read_offset</a>, &(registers.<a class="code" href="a03823.html#a96995c8df2aa66256c07ed09638a251c">read_value</a>));</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  {</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</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>  registers.<a class="code" href="a03823.html#a016f00fd424d6219ccb402eea3f598df">read_trigger</a> = 0;<span class="comment"></span></div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <span class="comment"> /*! Update drop down menu selection based on updated register read */</span></div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <a class="code" href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9">update_dropdown_selection</a>(&registers, <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dbac6a2b24a2231cb89ea3c26c1ac9ad217">FXOS8700_REG_READ</a>);</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  }</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="comment"></span></div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <span class="comment"> /*! Check for any read all register trigger from Host */</span></div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordflow">if</span> (registers.<a class="code" href="a03823.html#a2e521321a4d5d43daa4ae43891a0f553">readall_trigger</a> == 1)</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  {<span class="comment"></span></div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> <span class="comment"> /*! Apply Register Write */</span></div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  status = <a class="code" href="a00227.html#ab58f4b8e72da1820ea391f00a71535b0">apply_register_readall</a>(FXOS8700drv);</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  {</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  }</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  registers.<a class="code" href="a03823.html#a2e521321a4d5d43daa4ae43891a0f553">readall_trigger</a> = 0;</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  registers.<a class="code" href="a03823.html#a68fea111a9a0540bf8e4a50113a0fc66">readall_size</a> = <a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>;<span class="comment"></span></div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <span class="comment"> /*! Update drop down menu selection based on updated all-register read */</span></div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <a class="code" href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9">update_dropdown_selection</a>(&registers, <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba8ecb8390410bf891c47603b34b6a14e4">FXOS8700_ALLREG_READ</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> <span class="comment"></span></div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <span class="comment"> /*! Wait for data ready interrupt from the FXOS8700. */</span></div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <span class="keywordflow">if</span> (<span class="keyword">false</span> == <a class="code" href="a00227.html#aef958fbc866cee6b181b68cb2d1d7341">bFxos8700DataReady</a>)</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="a00638.html#a5423cac017d1d1a8ac8bba8e91e80e29">SMC_SetPowerModeWait</a>(<a class="code" href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a>); <span class="comment">/* Power save, wait if nothing to do. */</span></div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  }</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  { <span class="comment">/*! Clear the data ready flag, it will be set again by the ISR. */</span></div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <a class="code" href="a00227.html#aef958fbc866cee6b181b68cb2d1d7341">bFxos8700DataReady</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  <span class="comment">//pGpioDriver->toggle_pin(&GREEN_LED);</span></div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  }</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span> <span class="comment"></span></div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="comment"> /*! Calling Recorder#1 for sampling sensor data when we get sensor data ready interrupt based on ODR. */</span></div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  FMSTR_Recorder(1);</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span> <span class="comment"></span></div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> <span class="comment"> /*! Read all FXOS8700 registers */</span></div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, FXOS8700_ALL_REG_READ, registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>);</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordflow">if</span> (0 == (registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[0] & <a class="code" href="a00080.html#a5eab814f03699644832bc656c6162bf4">FXOS8700_DR_STATUS_ZYXDR_MASK</a>))</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  { <span class="comment">/* Loop, if new sample is not available. */</span></div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  }</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="comment"></span></div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="comment"> /*! Convert the raw sensor data to signed 16-bit container for display to the debug port. */</span></div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[0] = ((int16_t)registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[1] << 8) | registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[2];</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[0] /= 4;</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[1] = ((int16_t)registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[3] << 8) | registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[4];</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[1] /= 4;</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[2] = ((int16_t)registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[5] << 8) | registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[6];</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[2] /= 4;</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  rawData.<a class="code" href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">mag</a>[0] = ((int16_t)registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[7] << 8) | registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[8];</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  rawData.<a class="code" href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">mag</a>[1] = ((int16_t)registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[9] << 8) | registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[10];</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  rawData.<a class="code" href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">mag</a>[2] = ((int16_t)registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[11] << 8) | registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[12];</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span> </div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, cFXOS8700_whoami, (uint8_t *)&registers.<a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[13]);</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> <span class="comment"></span></div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="comment"> /*! Check the FS and apply sensitivity */</span></div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, cFXOS8700_fs_src, &regdata);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <span class="keywordflow">if</span> (regdata == 1)</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  {</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  sensitivity = <a class="code" href="a00227.html#a08e287e51783ab8f90158352e6fc3af8">ACCEL_4G_SENS</a>;</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  }</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (regdata == 2)</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  {</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  sensitivity = <a class="code" href="a00227.html#a05b1ee83bf8f0e4f3d8ddcd5b6bdcf89">ACCEL_8G_SENS</a>;</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  }</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <span class="keywordflow">else</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>  sensitivity = <a class="code" href="a00227.html#a655f856881e2748838614d8ebe75b9b3">ACCEL_2G_SENS</a>;</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</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"> 572</span> <span class="comment"> /*! Convert raw values to Gs */</span></div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  registers.<a class="code" href="a03823.html#a579c1a74d7de6ed4e97b8a29d6d826cd">accel</a>[0] = (float) (rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[0] * sensitivity);</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  registers.<a class="code" href="a03823.html#a579c1a74d7de6ed4e97b8a29d6d826cd">accel</a>[1] = (float) (rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[1] * sensitivity);</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  registers.<a class="code" href="a03823.html#a579c1a74d7de6ed4e97b8a29d6d826cd">accel</a>[2] = (float) (rawData.<a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[2] * sensitivity);</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span> <span class="comment"></span></div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="comment"> /*! Increment data ready counter and check for rollover */</span></div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  registers.<a class="code" href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8">dataready_cntr</a>++;</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keywordflow">if</span>(<a class="code" href="a00227.html#a1ea66d33b5f8e9fda77f8dd865ef0408">MAX8BITSTORAGE</a> == registers.<a class="code" href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8">dataready_cntr</a>)</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  {</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  registers.<a class="code" href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8">dataready_cntr</a> = 0;</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  }</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span> </div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <span class="keywordflow">if</span> (<a class="code" href="a00227.html#a6aa7a1a86aa031539466bf44d884ef39">prev_toggle</a> != registers.<a class="code" href="a03823.html#af53fbe055eb102357c08a01337cd7838">toggle</a>)</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  {</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  pGpioDriver-><a class="code" href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">toggle_pin</a>(&<a class="code" href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a>);</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <a class="code" href="a00227.html#a6aa7a1a86aa031539466bf44d884ef39">prev_toggle</a> = registers.<a class="code" href="a03823.html#af53fbe055eb102357c08a01337cd7838">toggle</a>;</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  }</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span> <span class="comment"></span></div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span> <span class="comment"> /*! Call offset and noise calculation function for FXOS8700 accelerometer */</span></div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="keywordflow">if</span> (registers.<a class="code" href="a03823.html#adb6a8af4ed350e0bd00bb086852d3f04">trigger_accel_offnoise</a> == 1)</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>  <a class="code" href="a00227.html#a31dc23c8d49a4ba48dc0989d2cfedbc5">accel_off_noise</a>(&(rawData), &(offnoise_data), sensitivity);</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  <span class="keywordflow">if</span> (offnoise_data.<a class="code" href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5">complete_accel_offnoise</a> == 1)</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>  registers.<a class="code" href="a03823.html#adb6a8af4ed350e0bd00bb086852d3f04">trigger_accel_offnoise</a> = 0;</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <span class="comment">//offnoise_data.complete_accel_offnoise = 0;</span></div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  }</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  }</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="comment"></span></div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span> <span class="comment"> /*! Call offset and noise calculation function for FXOS8700 magnetometer */</span></div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <span class="keywordflow">if</span> (registers.<a class="code" href="a03823.html#ae682e23de52a05af6f694f8b2787ffb5">trigger_mag_offnoise</a> == 1)</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  {</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  <a class="code" href="a00227.html#a01c7149f3cf2d3756df3262ede904c37">mag_off_noise</a>(&(rawData), &(offnoise_data));</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  <span class="keywordflow">if</span> (offnoise_data.<a class="code" href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035">complete_mag_offnoise</a> == 1)</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>  registers.<a class="code" href="a03823.html#ae682e23de52a05af6f694f8b2787ffb5">trigger_mag_offnoise</a> = 0;</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  PRINTF(<span class="stringliteral">"\r\n Mag offset X = %f Y = %f Z = %f\r\n"</span>, offnoise_data.<a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[0], offnoise_data.<a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[1], offnoise_data.<a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[2]);</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  }</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  }</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span> </div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, cFXOS8700_int_src, &regdata);</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span> <span class="comment"></span></div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span> <span class="comment"> /*! The following condition checks for multiple interrupts occurring at the same time */</span></div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <span class="keywordflow">if</span>((regdata & <a class="code" href="a00080.html#a3bb929489ef728691daeadafde1b743a">FXOS8700_INT_SOURCE_SRC_FFMT_MASK</a>) == 0x04)</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  {</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  ffmt_incr++;</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  <span class="keywordflow">if</span> (ffmt_incr == 1)</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  {</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  registers.<a class="code" href="a03823.html#a302c32582636dde519482a4f4f5e89c6">freefall_cntr</a>++;</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  }</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  }<span class="comment"></span></div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span> <span class="comment"> /*! Check for single-tap detection interrupt */</span></div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>((regdata & <a class="code" href="a00080.html#a79ec1aa1c1c6ae036cda31bdaa644402">FXOS8700_INT_SOURCE_SRC_PULSE_MASK</a>) == 0x08)</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>  pulse_incr++;</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <span class="keywordflow">if</span> (pulse_incr == 1)</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>  registers.<a class="code" href="a03823.html#a7d446a6cedeedd092ede0fe151ecc080">tapdetect_cntr</a>++;</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  }</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  }<span class="comment"></span></div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span> <span class="comment"> /*! Check for Vector Magnitude change interrupt */</span></div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>((regdata & <a class="code" href="a00080.html#af2c7c587f7f2efa17fc20d1214827ed8">FXOS8700_INT_SOURCE_SRC_A_VECM_MASK</a>) == 0x02)</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>  vecm_incr++;</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  <span class="keywordflow">if</span> (vecm_incr == 1)</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  {</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  registers.<a class="code" href="a03823.html#a32efc3f89fae601ba0771878f636893c">vecmchange_cntr</a>++;</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  }</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  }<span class="comment"></span></div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span> <span class="comment"> /*! Check for Vector Magnitude change interrupt */</span></div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>((regdata & <a class="code" href="a00080.html#a8a1d2e8c3760c129a0dbabdeceff3ac1">FXOS8700_INT_SOURCE_SRC_LNDPRT_MASK</a>) == 0x10)</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>  orient_incr++;</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  <span class="keywordflow">if</span> (orient_incr == 1)</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  {</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  registers.<a class="code" href="a03823.html#a8589aa31de200854d9f070127749a272">orient_cntr</a>++;</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>  }</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  <span class="comment">/* Else send other interrupts, clear counters */</span></div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  {</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <span class="comment">/* Reset all event counters */</span></div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  ffmt_incr = 0;</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  pulse_incr = 0;</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  orient_incr = 0;</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  vecm_incr = 0;</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  }</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span> <span class="comment"></span></div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="comment"> /*! Read FFMT interrupt source register to clear flags */</span></div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, cFXOS8700_int_src, &regdata);</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, cFXOS8700_ffmt_src, &regdata);</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, cFXOS8700_pl_status, &regdata);</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> }</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> <span class="comment"></span></div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span> <span class="comment">/*!</span></div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> <span class="comment"> * @brief Service register write trigger from Host</span></div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span> <span class="comment"> */</span></div><div class="line"><a name="l00672"></a><span class="lineno"><a class="line" href="a00227.html#ad9e8a6cd2292d849361bd69d8e2f5ffb"> 672</a></span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#ad9e8a6cd2292d849361bd69d8e2f5ffb">apply_register_write</a>(<a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv, uint8_t offset, uint8_t value)</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span> {</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</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="l00675"></a><span class="lineno"> 675</span> </div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <span class="keywordflow">if</span> (offset > <a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>)</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  {</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</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> </div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  <a class="code" href="a03807.html">registerwritelist_t</a> register_write[] = {<span class="comment"></span></div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span> <span class="comment"> /*! Set register offset with provided value */</span></div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  {offset, value, 0},</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  <a class="code" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a>};</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>  status = <a class="code" href="a00083.html#adcb4dbaa31a6b4ccd6031ee6cc97bb66">FXOS8700_I2C_Configure</a>(&FXOS8700drv, register_write);</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  {</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  }</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="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span> }</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="comment"></span></div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span> <span class="comment">/*!</span></div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span> <span class="comment"> * @brief Service register read trigger from Host</span></div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span> <span class="comment"> */</span></div><div class="line"><a name="l00698"></a><span class="lineno"><a class="line" href="a00227.html#ab25bdb65b1da36293681315a4ee38775"> 698</a></span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#ab25bdb65b1da36293681315a4ee38775">apply_register_read</a>(<a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv, uint8_t read_offset, uint8_t *read_value)</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="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a>;</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span> </div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="keywordflow">if</span> (read_offset > <a class="code" href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a>)</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  {</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  }</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span> </div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  <a class="code" href="a03811.html">registerreadlist_t</a> register_read[] = {<span class="comment"></span></div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span> <span class="comment"> /*! Set register offset with provided value */</span></div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = read_offset, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span> </div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, register_read, read_value);</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  {</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>;</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  }</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>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span> }</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span> <span class="comment"></span></div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span> <span class="comment">/*!</span></div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span> <span class="comment"> * @brief Service register read all trigger from Host</span></div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span> <span class="comment"> */</span></div><div class="line"><a name="l00723"></a><span class="lineno"><a class="line" href="a00227.html#ab58f4b8e72da1820ea391f00a71535b0"> 723</a></span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#ab58f4b8e72da1820ea391f00a71535b0">apply_register_readall</a>(<a class="code" href="a02747.html">fxos8700_i2c_sensorhandle_t</a> FXOS8700drv)</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>  <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="l00726"></a><span class="lineno"> 726</span> </div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> reg_offset = <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da17330073edbdd7b0bef5c42408c03271">FXOS8700_STATUS</a>; reg_offset <= <a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daefda3c15bb68686f894f89e1d6a1036d">FXOS8700_A_FFMT_THS_Z_LSB</a>; reg_offset++)</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>  <a class="code" href="a03811.html">registerreadlist_t</a> register_readall[] = {<span class="comment"></span></div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span> <span class="comment"> /*! Set register offset with provided value */</span></div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  {.<a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a> = reg_offset, .numBytes = 1}, <a class="code" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a>};</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span> </div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  status = <a class="code" href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a>(&FXOS8700drv, register_readall, &(registers.<a class="code" href="a03823.html#aeb2f1fc5efedab3e71d21ed85b714be2">readall_value</a>[reg_offset]));</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <span class="keywordflow">if</span> (<a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> != status)</div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  {</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a>;</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>  }</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span> </div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  <span class="keywordflow">return</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span> }</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span> <span class="comment"></span></div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span> <span class="comment">/*!</span></div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span> <span class="comment"> * @brief Update drop down selection values based on register write, read or readall.</span></div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span> <span class="comment"> */</span></div><div class="line"><a name="l00746"></a><span class="lineno"><a class="line" href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9"> 746</a></span> <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9">update_dropdown_selection</a>( <a class="code" href="a03823.html">fxos8700_allregs_t</a> *registers, uint8_t caller)</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span> {</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span> </div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  <a class="code" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</a> = <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a>;</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span> </div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <span class="keywordflow">switch</span> (caller)</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  {</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  <span class="keywordflow">case</span> <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba757ac03fc22b261e34290476c755d784">FXOS8700_REG_WRITE</a>:</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span> <span class="comment"></span></div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span> <span class="comment"> /*! Update drop down option based on updated read value */</span></div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <span class="keywordflow">if</span>(<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2">FXOS8700_XYZ_DATA_CFG</a> == registers-><a class="code" href="a03823.html#aa9fff43968831437a312428836cab362">offset</a>) <span class="comment">//FS Selection</span></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>  registers-><a class="code" href="a03823.html#a485fad199cd9c5504f6d08eaed75e1d5">fs_value</a> = registers-><a class="code" href="a03823.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">value</a>;</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>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a> == registers-><a class="code" href="a03823.html#aa9fff43968831437a312428836cab362">offset</a>)</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  {</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  registers-><a class="code" href="a03823.html#aa5744614a78838192d7de403e29c3d0c">mods_value</a> = registers-><a class="code" href="a03823.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">value</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="keywordflow">break</span>;</div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="keywordflow">case</span> <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dbac6a2b24a2231cb89ea3c26c1ac9ad217">FXOS8700_REG_READ</a>: <span class="comment">//Called from Register Read</span></div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span> <span class="comment"></span></div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span> <span class="comment"> /*! Update drop down option based on updated read value */</span></div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <span class="keywordflow">if</span>(<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2">FXOS8700_XYZ_DATA_CFG</a> == registers-><a class="code" href="a03823.html#ab65acde67dc46f1d163e2ee468420b48">read_offset</a>) <span class="comment">//FS Selection</span></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>  registers-><a class="code" href="a03823.html#a485fad199cd9c5504f6d08eaed75e1d5">fs_value</a> = registers-><a class="code" href="a03823.html#a96995c8df2aa66256c07ed09638a251c">read_value</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">else</span> <span class="keywordflow">if</span> (<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a> == registers-><a class="code" href="a03823.html#aa9fff43968831437a312428836cab362">offset</a>)</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>  registers-><a class="code" href="a03823.html#aa5744614a78838192d7de403e29c3d0c">mods_value</a> = registers-><a class="code" href="a03823.html#a96995c8df2aa66256c07ed09638a251c">read_value</a>;</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>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keywordflow">case</span> <a class="code" href="a00227.html#abedfdd1fc498fd83331960e1810107dba8ecb8390410bf891c47603b34b6a14e4">FXOS8700_ALLREG_READ</a>: <span class="comment">//Called from Register ReadAll</span></div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> <span class="comment"></span></div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span> <span class="comment"> /*! Update drop down option based on updated read values */</span></div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  registers-><a class="code" href="a03823.html#a485fad199cd9c5504f6d08eaed75e1d5">fs_value</a> = registers-><a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2">FXOS8700_XYZ_DATA_CFG</a>];</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  registers-><a class="code" href="a03823.html#aa5744614a78838192d7de403e29c3d0c">mods_value</a> = registers-><a class="code" href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">reg_addr</a>[<a class="code" href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a>];</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  status = <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>;</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  <span class="keywordflow">break</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> </div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  <span class="keywordflow">return</span> <a class="code" href="a00359.html#a369536ebfe385731562c0b55dd6f3a7c">status</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> }</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span> </div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span> <span class="comment"> * OFFSET NOISE CALCULATION</span></div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span> <span class="comment"> ******************************************************************************/</span></div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span> <span class="comment"></span></div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span> <span class="comment">/*!</span></div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span> <span class="comment"> * @brief Initialize Offset-Noise Variables</span></div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span> <span class="comment"> */</span></div><div class="line"><a name="l00799"></a><span class="lineno"><a class="line" href="a00227.html#a2d8f7e0edacd46196e724081a276948a"> 799</a></span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a2d8f7e0edacd46196e724081a276948a">offset_noise_init</a>(<a class="code" href="a03827.html">fxos8700_offset_noise_t</a> *offnoiseptr)</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>  offnoiseptr-><a class="code" href="a03827.html#a095cf332a6632b68d181f35bda318f5b">offx</a> = 0.0;</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  offnoiseptr-><a class="code" href="a03827.html#af01b0ac6ab1d631dd5da23e55a855bd5">offy</a> = 0.0;</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  offnoiseptr-><a class="code" href="a03827.html#a176534e2df647e63538839e08e2987ed">offz</a> = 0.0;</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  offnoiseptr-><a class="code" href="a03827.html#a495a615081e1d215673d7c7f9a7f1b4d">rmsx</a> = 0.0;</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  offnoiseptr-><a class="code" href="a03827.html#a9cf6d0f93a0b3f226d25bc3e33ce4e66">rmsy</a> = 0.0;</div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  offnoiseptr-><a class="code" href="a03827.html#a96b237aa78c72cadbbc09578d19e68e9">rmsz</a> = 0.0;</div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  offnoiseptr-><a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[0] = 0.0;</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span>  offnoiseptr-><a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[1] = 0.0;</div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  offnoiseptr-><a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[2] = 0.0;</div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  offnoiseptr-><a class="code" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">mag_rms</a>[0] = 0.0;</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  offnoiseptr-><a class="code" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">mag_rms</a>[1] = 0.0;</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  offnoiseptr-><a class="code" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">mag_rms</a>[2] = 0.0;</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  offnoiseptr-><a class="code" href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5">complete_accel_offnoise</a> = 0;</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  offnoiseptr-><a class="code" href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035">complete_mag_offnoise</a> = 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> </div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span> </div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span> <span class="comment">/* Calculate Offset & Noise for ACCELEROMETER */</span></div><div class="line"><a name="l00819"></a><span class="lineno"><a class="line" href="a00227.html#a31dc23c8d49a4ba48dc0989d2cfedbc5"> 819</a></span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a31dc23c8d49a4ba48dc0989d2cfedbc5">accel_off_noise</a>(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>* rawData,<a class="code" href="a03827.html">fxos8700_offset_noise_t</a> *offnoiseptr, <span class="keywordtype">float</span> sens)</div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span> {</div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  uint16_t j;</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  <span class="keyword">static</span> uint16_t k=0;</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  <span class="keyword">static</span> uint16_t cntr=0;</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> stdx=0;</div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> stdy=0;</div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> stdz=0;</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> xx[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], yy[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], zz[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>];</div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> xm[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], ym[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], zm[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>];</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> xsq[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], ysq[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], zsq[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>];</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  <span class="keywordtype">float</span> am[3];</div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> sumx=0.0;</div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> sumy=0.0;</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> sumz=0.0;</div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span> </div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  <span class="comment">/* Init offset noise variables */</span></div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  <a class="code" href="a00227.html#a2d8f7e0edacd46196e724081a276948a">offset_noise_init</a>(offnoiseptr);</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span> </div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  cntr++;</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span> </div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="comment">/* Store Accel samples and calculate sum for configured N */</span></div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  <span class="keywordflow">if</span>(cntr < <a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>)</div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  {</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  am[0]=rawData-><a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[0]*sens;</div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  am[1]=rawData-><a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[1]*sens;</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  am[2]=rawData-><a class="code" href="a02751.html#a661660001effc417fb684db96e973688">accel</a>[2]*sens;</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  xx[k]=am[0];</div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  yy[k]=am[1];</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  zz[k]=am[2];</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  sumx+=am[0];</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  sumy+=am[1];</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  sumz+=am[2];</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  k+=1;</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  offnoiseptr-><a class="code" href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5">complete_accel_offnoise</a> = 0;</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  }</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span> </div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  <span class="comment">/* Measure offset and RMS */</span></div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  <span class="keywordflow">if</span>(cntr == <a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>)</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  {</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  <span class="comment">/* Measure average */</span></div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  sumx=sumx/(<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1);</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  sumy=sumy/(<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1);</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  sumz=sumz/(<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1);</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="comment">/* Measure offset */</span></div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  offnoiseptr-><a class="code" href="a03827.html#a095cf332a6632b68d181f35bda318f5b">offx</a>=0-sumx;</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  offnoiseptr-><a class="code" href="a03827.html#af01b0ac6ab1d631dd5da23e55a855bd5">offy</a>=0-sumy;</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  offnoiseptr-><a class="code" href="a03827.html#a176534e2df647e63538839e08e2987ed">offz</a>=1-sumz;</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span> </div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <span class="comment">/* Measure standard deviation */</span></div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="keywordflow">for</span>(j=0; j<<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1; j++)</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  {</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  xm[j]=xx[j]-sumx;</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  ym[j]=yy[j]-sumy;</div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  zm[j]=zz[j]-sumz;</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span> </div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  xsq[j]=pow(xm[j],2);</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span>  ysq[j]=pow(ym[j],2);</div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  zsq[j]=pow(zm[j],2);</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  stdx+=xsq[j];</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  stdy+=ysq[j];</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  stdz+=zsq[j];</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>  stdx=stdx/(N-2);</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  stdy=stdy/(N-2);</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  stdz=stdz/(N-2);</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">/* Measure RMS */</span></div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  offnoiseptr-><a class="code" href="a03827.html#a495a615081e1d215673d7c7f9a7f1b4d">rmsx</a>=pow(stdx,0.5);</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  offnoiseptr-><a class="code" href="a03827.html#a9cf6d0f93a0b3f226d25bc3e33ce4e66">rmsy</a>=pow(stdy,0.5);</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  offnoiseptr-><a class="code" href="a03827.html#a96b237aa78c72cadbbc09578d19e68e9">rmsz</a>=pow(stdz,0.5);</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">/* Set the completion flag */</span></div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  offnoiseptr-><a class="code" href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5">complete_accel_offnoise</a> = 1;</div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span> </div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  <span class="comment">/* Reset local storage */</span></div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  cntr = k = 0;</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  sumx = sumy = sumz = 0;</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  stdx = stdy = stdz = 0;</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  }</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span> }</div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span> </div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span> <span class="comment">/* Calculate Offset & Noise for MAGNETOMETER */</span></div><div class="line"><a name="l00903"></a><span class="lineno"><a class="line" href="a00227.html#a01c7149f3cf2d3756df3262ede904c37"> 903</a></span> <span class="keywordtype">void</span> <a class="code" href="a00227.html#a01c7149f3cf2d3756df3262ede904c37">mag_off_noise</a>(<a class="code" href="a02751.html">fxos8700_accelmagdata_t</a>* rawData,<a class="code" href="a03827.html">fxos8700_offset_noise_t</a> *offnoiseptr)</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span> {</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  <span class="comment">//local variables</span></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>  uint16_t j;</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  <span class="keyword">static</span> uint16_t k;</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  <span class="keyword">static</span> uint16_t cntr=0;</div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> stdx=0;</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> stdy=0;</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> stdz=0;</div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> xx[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], yy[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], zz[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>];</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> xm[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], ym[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], zm[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>];</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> xsq[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], ysq[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>], zsq[<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>];</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span>  <span class="keywordtype">float</span> mm[3];</div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  <span class="keywordtype">float</span> Bx[2] = {0,0};</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  <span class="keywordtype">float</span> By[2] = {0,0};</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  <span class="keywordtype">float</span> Bz[2] = {0,0};</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  <span class="keywordtype">float</span> sens=0.1; <span class="comment">//uT</span></div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> sumx=0.0;</div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> sumy=0.0;</div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  <span class="keyword">static</span> <span class="keywordtype">float</span> sumz=0.0;</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  <span class="comment">//float refx, refy, refz;</span></div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span> </div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  <span class="comment">/* Init offset noise variables */</span></div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>  <a class="code" href="a00227.html#a2d8f7e0edacd46196e724081a276948a">offset_noise_init</a>(offnoiseptr);</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>  cntr++;</div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  <span class="keywordflow">if</span>(cntr < <a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>)</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>  <span class="comment">/* if (cntr == 1)</span></div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span> <span class="comment"> {</span></div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span> <span class="comment"> refx = rawData->mag[0]*sens;</span></div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span> <span class="comment"> refy = rawData->mag[1]*sens;</span></div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span> <span class="comment"> refz = rawData->mag[2]*sens;</span></div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span> <span class="comment"> }*/</span></div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  mm[0]=rawData-><a class="code" href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">mag</a>[0]*sens;</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span>  mm[1]=rawData-><a class="code" href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">mag</a>[1]*sens;</div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span>  mm[2]=rawData-><a class="code" href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">mag</a>[2]*sens;</div><div class="line"><a name="l00941"></a><span class="lineno"> 941</span>  xx[k]=mm[0];</div><div class="line"><a name="l00942"></a><span class="lineno"> 942</span>  yy[k]=mm[1];</div><div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  zz[k]=mm[2];</div><div class="line"><a name="l00944"></a><span class="lineno"> 944</span>  Bx[0]=xx[0];</div><div class="line"><a name="l00945"></a><span class="lineno"> 945</span>  Bx[1]=xx[0];</div><div class="line"><a name="l00946"></a><span class="lineno"> 946</span>  By[0]=yy[0];</div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>  By[1]=yy[0];</div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  Bz[0]=zz[0];</div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  Bz[1]=zz[0];</div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span>  sumx+=mm[0];</div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  sumy+=mm[1];</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</span>  sumz+=mm[2];</div><div class="line"><a name="l00953"></a><span class="lineno"> 953</span>  <span class="comment">//Bx[0]=</span></div><div class="line"><a name="l00954"></a><span class="lineno"> 954</span>  k+=1;</div><div class="line"><a name="l00955"></a><span class="lineno"> 955</span>  offnoiseptr-><a class="code" href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035">complete_mag_offnoise</a> = 0;</div><div class="line"><a name="l00956"></a><span class="lineno"> 956</span>  }</div><div class="line"><a name="l00957"></a><span class="lineno"> 957</span>  <span class="keywordflow">if</span>(cntr == <a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>)</div><div class="line"><a name="l00958"></a><span class="lineno"> 958</span>  {</div><div class="line"><a name="l00959"></a><span class="lineno"> 959</span>  sumx=sumx/(<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1);</div><div class="line"><a name="l00960"></a><span class="lineno"> 960</span>  sumy=sumy/(<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1);</div><div class="line"><a name="l00961"></a><span class="lineno"> 961</span>  sumz=sumz/(<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>-1);</div><div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  <span class="keywordflow">for</span> (j=0; j<<a class="code" href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a>; j++)</div><div class="line"><a name="l00963"></a><span class="lineno"> 963</span>  {</div><div class="line"><a name="l00964"></a><span class="lineno"> 964</span>  <span class="comment">/*if (!(xx[i]>=Bx[0]))</span></div><div class="line"><a name="l00965"></a><span class="lineno"> 965</span> <span class="comment"> {</span></div><div class="line"><a name="l00966"></a><span class="lineno"> 966</span> <span class="comment"> Bx[0]=xx[i];</span></div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span> <span class="comment"> }</span></div><div class="line"><a name="l00968"></a><span class="lineno"> 968</span> <span class="comment"> if(!(xx[i] <= Bx[1]))</span></div><div class="line"><a name="l00969"></a><span class="lineno"> 969</span> <span class="comment"> {</span></div><div class="line"><a name="l00970"></a><span class="lineno"> 970</span> <span class="comment"> Bx[1]=xx[i];</span></div><div class="line"><a name="l00971"></a><span class="lineno"> 971</span> <span class="comment"> } */</span></div><div class="line"><a name="l00972"></a><span class="lineno"> 972</span>  <span class="keywordflow">if</span>(Bx[0] > xx[j]) Bx[0]=xx[j]; <span class="comment">//minimum value</span></div><div class="line"><a name="l00973"></a><span class="lineno"> 973</span>  <span class="keywordflow">if</span>(Bx[1] < xx[j]) Bx[1]=xx[j]; <span class="comment">//maximum value</span></div><div class="line"><a name="l00974"></a><span class="lineno"> 974</span>  <span class="keywordflow">if</span>(By[0] > yy[j]) By[0]=yy[j];</div><div class="line"><a name="l00975"></a><span class="lineno"> 975</span>  <span class="keywordflow">if</span>(By[1] < yy[j]) By[1]=yy[j];</div><div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  <span class="keywordflow">if</span>(Bz[0] > zz[j]) Bz[0]=zz[j];</div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span>  <span class="keywordflow">if</span>(Bz[1] < zz[j]) Bz[1]=zz[j];</div><div class="line"><a name="l00978"></a><span class="lineno"> 978</span> </div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span>  }</div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span>  offnoiseptr-><a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[0]=0.5*(Bx[0]+Bx[1]);</div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  offnoiseptr-><a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[1]=0.5*(By[0]+By[1]);</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>  offnoiseptr-><a class="code" href="a03827.html#ada22027b92c169dd88578f6861046e28">mag_off</a>[2]=0.5*(Bz[0]+Bz[1]);</div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  <span class="keywordflow">for</span>(j=0; j<N-1; j++)</div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span>  {</div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span>  xm[j]=xx[j]-sumx;</div><div class="line"><a name="l00986"></a><span class="lineno"> 986</span>  ym[j]=yy[j]-sumy;</div><div class="line"><a name="l00987"></a><span class="lineno"> 987</span>  zm[j]=zz[j]-sumz;</div><div class="line"><a name="l00988"></a><span class="lineno"> 988</span>  <span class="comment">//PRINTF("\r\n Before X = %f Y = %f Z = %f\r\n", xx[j], yy[j], zz[j]);</span></div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  xsq[j]=pow(xm[j],2);</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</span>  ysq[j]=pow(ym[j],2);</div><div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  zsq[j]=pow(zm[j],2);</div><div class="line"><a name="l00992"></a><span class="lineno"> 992</span>  stdx+=xsq[j];</div><div class="line"><a name="l00993"></a><span class="lineno"> 993</span>  stdy+=ysq[j];</div><div class="line"><a name="l00994"></a><span class="lineno"> 994</span>  stdz+=zsq[j];</div><div class="line"><a name="l00995"></a><span class="lineno"> 995</span>  }</div><div class="line"><a name="l00996"></a><span class="lineno"> 996</span>  stdx=stdx/(N-2);</div><div class="line"><a name="l00997"></a><span class="lineno"> 997</span>  stdy=stdy/(N-2);</div><div class="line"><a name="l00998"></a><span class="lineno"> 998</span>  stdz=stdz/(N-2);</div><div class="line"><a name="l00999"></a><span class="lineno"> 999</span>  <span class="comment">//PRINTF("\r\n Accel StdX = %f StdY = %f StdZ = %f\r\n", stdx, stdy, stdz);</span></div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>  offnoiseptr-><a class="code" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">mag_rms</a>[0]=pow(stdx,0.5);</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>  offnoiseptr-><a class="code" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">mag_rms</a>[1]=pow(stdy,0.5);</div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>  offnoiseptr-><a class="code" href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">mag_rms</a>[2]=pow(stdz,0.5);</div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> </div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>  offnoiseptr-><a class="code" href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035">complete_mag_offnoise</a> = 1;</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  cntr = k = 0;</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>  sumx = sumy = sumz = 0;</div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>  stdx = stdy = stdz = 0;</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  <span class="comment">//refx = refy = refz = 0;</span></div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>  }</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> }</div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="comment"></span></div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="comment">/*!</span></div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="comment"> * @brief UART Module initialization (UART is a the standard block included e.g. in K22F)</span></div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> <span class="comment"> */</span></div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="keyword">static</span> <span class="keywordtype">void</span> init_freemaster_uart(<span class="keywordtype">void</span>)</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> {</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>  uart_config_t config;</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> </div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>  <span class="comment">/*</span></div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> <span class="comment"> * config.baudRate_Bps = 115200U;</span></div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span> <span class="comment"> * config.parityMode = kUART_ParityDisabled;</span></div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> <span class="comment"> * config.stopBitCount = kUART_OneStopBit;</span></div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span> <span class="comment"> * config.txFifoWatermark = 0;</span></div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span> <span class="comment"> * config.rxFifoWatermark = 1;</span></div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> <span class="comment"> * config.enableTx = false;</span></div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span> <span class="comment"> * config.enableRx = false;</span></div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span> <span class="comment"> */</span></div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>  UART_GetDefaultConfig(&config);</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>  config.baudRate_Bps = 115200U;</div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  config.enableTx = <span class="keyword">false</span>;</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  config.enableRx = <span class="keyword">false</span>;</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> </div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>  UART_Init((UART_Type*)<a class="code" href="a04166.html#aa57459420fa9e4f0a5f3fc5f57f1b9e8">BOARD_DEBUG_UART_BASEADDR</a>, &config, <a class="code" href="a04166.html#a1edec5fed9dc97a37f9ddf9c8409f6b2">BOARD_DEBUG_UART_CLK_FREQ</a>);</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>  <span class="comment">/* Register communication module used by FreeMASTER driver. */</span></div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>  FMSTR_SerialSetBaseAddress((UART_Type*)BOARD_DEBUG_UART_BASEADDR);</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> </div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> <span class="preprocessor">#if FMSTR_SHORT_INTR || FMSTR_LONG_INTR</span></div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  <span class="comment">/* Enable UART interrupts. */</span></div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>  EnableIRQ(<a class="code" href="a04166.html#a66aae8dca2a3ed9516953924c8d10021">BOARD_UART_IRQ</a>);</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  EnableGlobalIRQ(0);</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> }</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> </div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="preprocessor">#if FMSTR_SHORT_INTR || FMSTR_LONG_INTR</span></div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> <span class="comment">/*</span></div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span> <span class="comment">* Application interrupt handler of communication peripheral used in interrupt modes</span></div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> <span class="comment">* of FreeMASTER communication.</span></div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> <span class="comment">*</span></div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="comment">* NXP MCUXpresso SDK framework defines interrupt vector table as a part of "startup_XXXXXX.x"</span></div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> <span class="comment">* assembler/C file. The table points to weakly defined symbols, which may be overwritten by the</span></div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <span class="comment">* application specific implementation. FreeMASTER overrides the original weak definition and</span></div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> <span class="comment">* redirects the call to its own handler.</span></div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="comment">*</span></div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="comment">*/</span></div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> <span class="keywordtype">void</span> <a class="code" href="a04166.html#ab18f02e5df161de4fb61d2d6a735fd62">BOARD_UART_IRQ_HANDLER</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> {</div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  <span class="comment">/* Call FreeMASTER Interrupt routine handler */</span></div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>  FMSTR_SerialIsr();</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>  <span class="comment">/* Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F Store immediate overlapping</span></div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span> <span class="comment"> exception return operation might vector to incorrect interrupt */</span></div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> <span class="preprocessor">#if defined __CORTEX_M && (__CORTEX_M == 4U)</span></div><div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>  __DSB();</div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> }</div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> </div><div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00037">sensor_drv.h:37</a></div></div> 52<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dad423501ecdc60c836cc4126556886a78"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dad423501ecdc60c836cc4126556886a78">FXOS8700_INT_SOURCE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00030">fxos8700.h:30</a></div></div> 53<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da423dbb0266f16ab488a304c3d7a33327"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da423dbb0266f16ab488a304c3d7a33327">FXOS8700_A_FFMT_SRC</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00040">fxos8700.h:40</a></div></div> 54<div class="ttc" id="a00227_html_a6766a0733476b67067b84a70ba78e214"><div class="ttname"><a href="a00227.html#a6766a0733476b67067b84a70ba78e214">FMSTR_TSA_TABLE_BEGIN</a></div><div class="ttdeci">FMSTR_TSA_TABLE_BEGIN(main_table)</div><div class="ttdoc">Target Side Addressable (TSA) table created for this application. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00310">fxos8700_freemaster_demo.c:310</a></div></div> 55<div class="ttc" id="a03823_html_adb6a8af4ed350e0bd00bb086852d3f04"><div class="ttname"><a href="a03823.html#adb6a8af4ed350e0bd00bb086852d3f04">fxos8700_allregs_t::trigger_accel_offnoise</a></div><div class="ttdeci">uint8_t trigger_accel_offnoise</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00170">fxos8700_freemaster_demo.c:170</a></div></div> 56<div class="ttc" id="a00083_html_a17953ccee62fbd698318197b109b9e9f"><div class="ttname"><a href="a00083.html#a17953ccee62fbd698318197b109b9e9f">FXOS8700_I2C_Initialize</a></div><div class="ttdeci">int32_t FXOS8700_I2C_Initialize(fxos8700_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)</div><div class="ttdoc">The interface function to initialize the sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00083_source.html#l00222">fxos8700_drv.c:222</a></div></div> 57<div class="ttc" id="a03823_html_ab65acde67dc46f1d163e2ee468420b48"><div class="ttname"><a href="a03823.html#ab65acde67dc46f1d163e2ee468420b48">fxos8700_allregs_t::read_offset</a></div><div class="ttdeci">uint8_t read_offset</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00163">fxos8700_freemaster_demo.c:163</a></div></div> 58<div class="ttc" id="a00080_html_ac1312afdc6bae61b04dda1b96a003012"><div class="ttname"><a href="a00080.html#ac1312afdc6bae61b04dda1b96a003012">FXOS8700_PL_CFG_DBCNTM_CLEAR_MODE</a></div><div class="ttdeci">#define FXOS8700_PL_CFG_DBCNTM_CLEAR_MODE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00779">fxos8700.h:779</a></div></div> 59<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da49d25c56d018c9408ed16510a8b52806"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da49d25c56d018c9408ed16510a8b52806">FXOS8700_PULSE_LTCY</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00053">fxos8700.h:53</a></div></div> 60<div class="ttc" id="a00080_html_a3083726008f66866d39ce47ef2407c11"><div class="ttname"><a href="a00080.html#a3083726008f66866d39ce47ef2407c11">FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_YEFE_RAISE_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00956">fxos8700.h:956</a></div></div> 61<div class="ttc" id="a03823_html_a32efc3f89fae601ba0771878f636893c"><div class="ttname"><a href="a03823.html#a32efc3f89fae601ba0771878f636893c">fxos8700_allregs_t::vecmchange_cntr</a></div><div class="ttdeci">uint16_t vecmchange_cntr</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00177">fxos8700_freemaster_demo.c:177</a></div></div> 62<div class="ttc" id="a00227_html_abedfdd1fc498fd83331960e1810107dba2a1c6bdb4a159b7ee3249be4001be124"><div class="ttname"><a href="a00227.html#abedfdd1fc498fd83331960e1810107dba2a1c6bdb4a159b7ee3249be4001be124">FXOS8700_ACCEL_CONFIG_END</a></div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00209">fxos8700_freemaster_demo.c:209</a></div></div> 63<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1daec11def31d5bdc79eacbfcaeb33ba462"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daec11def31d5bdc79eacbfcaeb33ba462">FXOS8700_A_VECM_THS_MSB</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00110">fxos8700.h:110</a></div></div> 64<div class="ttc" id="a02751_html"><div class="ttname"><a href="a02751.html">fxos8700_accelmagdata_t</a></div><div class="ttdoc">This structure defines the fxos8700 raw data buffer. </div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00053">fxos8700_drv.h:53</a></div></div> 65<div class="ttc" id="a02751_html_a661660001effc417fb684db96e973688"><div class="ttname"><a href="a02751.html#a661660001effc417fb684db96e973688">fxos8700_accelmagdata_t::accel</a></div><div class="ttdeci">int16_t accel[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00056">fxos8700_drv.h:56</a></div></div> 66<div class="ttc" id="a00227_html_a24a9f7c5b33e08b1c2a45690fcf384cc"><div class="ttname"><a href="a00227.html#a24a9f7c5b33e08b1c2a45690fcf384cc">FXOS8700_NUM_REGISTERS</a></div><div class="ttdeci">#define FXOS8700_NUM_REGISTERS</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00037">fxos8700_freemaster_demo.c:37</a></div></div> 67<div class="ttc" id="a00227_html_a01c7149f3cf2d3756df3262ede904c37"><div class="ttname"><a href="a00227.html#a01c7149f3cf2d3756df3262ede904c37">mag_off_noise</a></div><div class="ttdeci">void mag_off_noise(fxos8700_accelmagdata_t *rawData, fxos8700_offset_noise_t *offnoiseptr)</div><div class="ttdoc">Function to measure magnetometer offset noise. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00903">fxos8700_freemaster_demo.c:903</a></div></div> 68<div class="ttc" id="a03827_html_a3abe6aca4b8e2d4c7f39e39c75b00035"><div class="ttname"><a href="a03827.html#a3abe6aca4b8e2d4c7f39e39c75b00035">fxos8700_offset_noise_t::complete_mag_offnoise</a></div><div class="ttdeci">uint8_t complete_mag_offnoise</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00198">fxos8700_freemaster_demo.c:198</a></div></div> 69<div class="ttc" id="a03807_html"><div class="ttname"><a href="a03807.html">registerwritelist_t</a></div><div class="ttdoc">This structure defines the Write command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00068">sensor_drv.h:68</a></div></div> 70<div class="ttc" id="a03827_html_a095cf332a6632b68d181f35bda318f5b"><div class="ttname"><a href="a03827.html#a095cf332a6632b68d181f35bda318f5b">fxos8700_offset_noise_t::offx</a></div><div class="ttdeci">float offx</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00189">fxos8700_freemaster_demo.c:189</a></div></div> 71<div class="ttc" id="a03823_html_a2e521321a4d5d43daa4ae43891a0f553"><div class="ttname"><a href="a03823.html#a2e521321a4d5d43daa4ae43891a0f553">fxos8700_allregs_t::readall_trigger</a></div><div class="ttdeci">uint8_t readall_trigger</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00168">fxos8700_freemaster_demo.c:168</a></div></div> 72<div class="ttc" id="a00080_html_a4e4cbcde9752b23ac4ed33f47c0d979f"><div class="ttname"><a href="a00080.html#a4e4cbcde9752b23ac4ed33f47c0d979f">FXOS8700_M_CTRL_REG2_M_AUTOINC_MASK</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG2_M_AUTOINC_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02634">fxos8700.h:2634</a></div></div> 73<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> 74<div class="ttc" id="a00080_html_a35219e0a108fb9ccf4e7921bd3605cc6"><div class="ttname"><a href="a00080.html#a35219e0a108fb9ccf4e7921bd3605cc6">FXOS8700_CTRL_REG5_INT_CFG_DRDY_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_DRDY_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01784">fxos8700.h:1784</a></div></div> 75<div class="ttc" id="a00080_html_a064466e42f6f5da5d6f70521f6abe430"><div class="ttname"><a href="a00080.html#a064466e42f6f5da5d6f70521f6abe430">FXOS8700_CTRL_REG4_INT_EN_DRDY_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_DRDY_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01755">fxos8700.h:1755</a></div></div> 76<div class="ttc" id="a03827_html_a96b237aa78c72cadbbc09578d19e68e9"><div class="ttname"><a href="a03827.html#a96b237aa78c72cadbbc09578d19e68e9">fxos8700_offset_noise_t::rmsz</a></div><div class="ttdeci">float rmsz</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00194">fxos8700_freemaster_demo.c:194</a></div></div> 77<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5fd16571bdc06c0528c421acd0329c51">FXOS8700_CTRL_REG4</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00059">fxos8700.h:59</a></div></div> 78<div class="ttc" id="a04337_html_a60005578d4c221a07d4eba159c4592fa"><div class="ttname"><a href="a04337.html#a60005578d4c221a07d4eba159c4592fa">FXOS8700_INT2</a></div><div class="ttdeci">#define FXOS8700_INT2</div><div class="ttdef"><b>Definition:</b> <a href="a04337_source.html#l00030">frdm_fxs_mult2b_shield.h:30</a></div></div> 79<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00033">sensor_drv.h:33</a></div></div> 80<div class="ttc" id="a04343_html_a60ac2e3bb32ae33e2fd542f607a58ac4"><div class="ttname"><a href="a04343.html#a60ac2e3bb32ae33e2fd542f607a58ac4">I2C_S_SIGNAL_EVENT</a></div><div class="ttdeci">#define I2C_S_SIGNAL_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a04343_source.html#l00034">issdk_hal.h:34</a></div></div> 81<div class="ttc" id="a00080_html_a28456d1cd33970595c08601b8e743fe5"><div class="ttname"><a href="a00080.html#a28456d1cd33970595c08601b8e743fe5">FXOS8700_A_FFMT_CFG_XEFE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_XEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00929">fxos8700.h:929</a></div></div> 82<div class="ttc" id="a00227_html_ab4c4c9ebd0cbda1a1a39c48ae0c5221b"><div class="ttname"><a href="a00227.html#ab4c4c9ebd0cbda1a1a39c48ae0c5221b">offnoise_data</a></div><div class="ttdeci">fxos8700_offset_noise_t offnoise_data</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00220">fxos8700_freemaster_demo.c:220</a></div></div> 83<div class="ttc" id="a00227_html_abedfdd1fc498fd83331960e1810107dba757ac03fc22b261e34290476c755d784"><div class="ttname"><a href="a00227.html#abedfdd1fc498fd83331960e1810107dba757ac03fc22b261e34290476c755d784">FXOS8700_REG_WRITE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00206">fxos8700_freemaster_demo.c:206</a></div></div> 84<div class="ttc" id="a00227_html_af3ce67e40594c7841d59fdd7d98c6230"><div class="ttname"><a href="a00227.html#af3ce67e40594c7841d59fdd7d98c6230">FXOS8700_ALL_REG_READ</a></div><div class="ttdeci">const registerreadlist_t FXOS8700_ALL_REG_READ[]</div><div class="ttdoc">Defines the register read list to read all-registers. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00142">fxos8700_freemaster_demo.c:142</a></div></div> 85<div class="ttc" id="a00638_html_a82cb114bb9a5ea2f235a0216709d70f8"><div class="ttname"><a href="a00638.html#a82cb114bb9a5ea2f235a0216709d70f8">SMC_SetPowerModeVlpr</a></div><div class="ttdeci">status_t SMC_SetPowerModeVlpr(void *arg)</div><div class="ttdoc">Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...</div><div class="ttdef"><b>Definition:</b> <a href="a00638_source.html#l00169">lpc54114.c:169</a></div></div> 86<div class="ttc" id="a03823_html_a485fad199cd9c5504f6d08eaed75e1d5"><div class="ttname"><a href="a03823.html#a485fad199cd9c5504f6d08eaed75e1d5">fxos8700_allregs_t::fs_value</a></div><div class="ttdeci">uint8_t fs_value</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00172">fxos8700_freemaster_demo.c:172</a></div></div> 87<div class="ttc" id="a00080_html_ae487bee36a16320599ec6ee7ec0d084c"><div class="ttname"><a href="a00080.html#ae487bee36a16320599ec6ee7ec0d084c">FXOS8700_M_CTRL_REG1_M_OS_MASK</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG1_M_OS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02550">fxos8700.h:2550</a></div></div> 88<div class="ttc" id="a00227_html_ab25bdb65b1da36293681315a4ee38775"><div class="ttname"><a href="a00227.html#ab25bdb65b1da36293681315a4ee38775">apply_register_read</a></div><div class="ttdeci">int32_t apply_register_read(fxos8700_i2c_sensorhandle_t FXOS8700drv, uint8_t offset, uint8_t *value)</div><div class="ttdoc">Function to apply FXOS8700 register read operation. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00698">fxos8700_freemaster_demo.c:698</a></div></div> 89<div class="ttc" id="a00080_html_a25f9a595de3ea9bd91ddd18edee4772f"><div class="ttname"><a href="a00080.html#a25f9a595de3ea9bd91ddd18edee4772f">FXOS8700_M_CTRL_REG1_M_HMS_MASK</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG1_M_HMS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02547">fxos8700.h:2547</a></div></div> 90<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4042c1d2ba5a488da5d3701500c6474f">FXOS8700_CTRL_REG5</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00060">fxos8700.h:60</a></div></div> 91<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da42573a4c4bafb1b2158a714e6e8b8f0e"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da42573a4c4bafb1b2158a714e6e8b8f0e">FXOS8700_A_FFMT_COUNT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00042">fxos8700.h:42</a></div></div> 92<div class="ttc" id="a03827_html_a9cf6d0f93a0b3f226d25bc3e33ce4e66"><div class="ttname"><a href="a03827.html#a9cf6d0f93a0b3f226d25bc3e33ce4e66">fxos8700_offset_noise_t::rmsy</a></div><div class="ttdeci">float rmsy</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00193">fxos8700_freemaster_demo.c:193</a></div></div> 93<div class="ttc" id="a03827_html"><div class="ttname"><a href="a03827.html">fxos8700_offset_noise_t</a></div><div class="ttdoc">This structure defines the fxos8700 offset and noise calculation parameters. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00187">fxos8700_freemaster_demo.c:187</a></div></div> 94<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> 95<div class="ttc" id="a00227_html_ad8547e62aa9be0385ce2266a4978ac66"><div class="ttname"><a href="a00227.html#ad8547e62aa9be0385ce2266a4978ac66">cFXOS8700_ffmt_src</a></div><div class="ttdeci">const registerreadlist_t cFXOS8700_ffmt_src[]</div><div class="ttdoc">Defines the register read list to read FFMT Source. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00147">fxos8700_freemaster_demo.c:147</a></div></div> 96<div class="ttc" id="a00080_html_a5ba8c0c0813375f895bc2312d44f30b7"><div class="ttname"><a href="a00080.html#a5ba8c0c0813375f895bc2312d44f30b7">FXOS8700_CTRL_REG1_DR_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG1_DR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01504">fxos8700.h:1504</a></div></div> 97<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dad68ab453311e27577e484c5ecc4ccad2"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dad68ab453311e27577e484c5ecc4ccad2">FXOS8700_M_CTRL_REG2</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00106">fxos8700.h:106</a></div></div> 98<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da043eb7ebb11eefa98ef6dad29452c395"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da043eb7ebb11eefa98ef6dad29452c395">FXOS8700_PULSE_TMLT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00052">fxos8700.h:52</a></div></div> 99<div class="ttc" id="a00227_html_a840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="a00227.html#a840291bc02cba5474a4cb46a9b9566fe">main</a></div><div class="ttdeci">int main(void)</div><div class="ttdoc">Main function. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00381">fxos8700_freemaster_demo.c:381</a></div></div> 100<div class="ttc" id="a04292_html_a8d81431cbbc4b01da56afbff0f766379"><div class="ttname"><a href="a04292.html#a8d81431cbbc4b01da56afbff0f766379">BOARD_BootClockRUN</a></div><div class="ttdeci">#define BOARD_BootClockRUN</div><div class="ttdef"><b>Definition:</b> <a href="a04292_source.html#l00019">clock_config.h:19</a></div></div> 101<div class="ttc" id="a03823_html_ad47e9b879c95a25ce124bd5611ff9497"><div class="ttname"><a href="a03823.html#ad47e9b879c95a25ce124bd5611ff9497">fxos8700_allregs_t::trigger</a></div><div class="ttdeci">uint8_t trigger</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00162">fxos8700_freemaster_demo.c:162</a></div></div> 102<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> 103<div class="ttc" id="a00227_html_ac0ede279731ef03a63e646ed3cc7ae29"><div class="ttname"><a href="a00227.html#ac0ede279731ef03a63e646ed3cc7ae29">FRM_Recorder_Init</a></div><div class="ttdeci">void FRM_Recorder_Init()</div></div> 104<div class="ttc" id="a00080_html_a546d30d71894319b5d80e6d6be4134ec"><div class="ttname"><a href="a00080.html#a546d30d71894319b5d80e6d6be4134ec">FXOS8700_M_CTRL_REG1_M_HMS_HYBRID_MODE</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG1_M_HMS_HYBRID_MODE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02595">fxos8700.h:2595</a></div></div> 105<div class="ttc" id="a00641_html_a6667e81e5b32250febd3d46511d9309d"><div class="ttname"><a href="a00641.html#a6667e81e5b32250febd3d46511d9309d">SMC</a></div><div class="ttdeci">#define SMC</div><div class="ttdef"><b>Definition:</b> <a href="a00641_source.html#l00118">lpc54114.h:118</a></div></div> 106<div class="ttc" id="a00227_html_ad9e8a6cd2292d849361bd69d8e2f5ffb"><div class="ttname"><a href="a00227.html#ad9e8a6cd2292d849361bd69d8e2f5ffb">apply_register_write</a></div><div class="ttdeci">int32_t apply_register_write(fxos8700_i2c_sensorhandle_t FXOS8700drv, uint8_t offset, uint8_t value)</div><div class="ttdoc">Function to apply FXOS8700 register write operation. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00672">fxos8700_freemaster_demo.c:672</a></div></div> 107<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1daefda3c15bb68686f894f89e1d6a1036d"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daefda3c15bb68686f894f89e1d6a1036d">FXOS8700_A_FFMT_THS_Z_LSB</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00134">fxos8700.h:134</a></div></div> 108<div class="ttc" id="a00227_html_a6aa7a1a86aa031539466bf44d884ef39"><div class="ttname"><a href="a00227.html#a6aa7a1a86aa031539466bf44d884ef39">prev_toggle</a></div><div class="ttdeci">uint8_t prev_toggle</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00221">fxos8700_freemaster_demo.c:221</a></div></div> 109<div class="ttc" id="a00080_html_a6d615cbf80d537eb46ac4bd7588458d4"><div class="ttname"><a href="a00080.html#a6d615cbf80d537eb46ac4bd7588458d4">FXOS8700_A_FFMT_CFG_OAE_FREEFALL</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_OAE_FREEFALL</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00950">fxos8700.h:950</a></div></div> 110<div class="ttc" id="a00227_html_ad73e0a7c8c5e35e29af853b0da753e5e"><div class="ttname"><a href="a00227.html#ad73e0a7c8c5e35e29af853b0da753e5e">registers</a></div><div class="ttdeci">fxos8700_allregs_t registers</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00219">fxos8700_freemaster_demo.c:219</a></div></div> 111<div class="ttc" id="a00080_html_ab428e85d93ab5d14bd2fac89d95ae4a0"><div class="ttname"><a href="a00080.html#ab428e85d93ab5d14bd2fac89d95ae4a0">FXOS8700_CTRL_REG4_INT_EN_FFMT_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_FFMT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01717">fxos8700.h:1717</a></div></div> 112<div class="ttc" id="a00080_html_a3bb929489ef728691daeadafde1b743a"><div class="ttname"><a href="a00080.html#a3bb929489ef728691daeadafde1b743a">FXOS8700_INT_SOURCE_SRC_FFMT_MASK</a></div><div class="ttdeci">#define FXOS8700_INT_SOURCE_SRC_FFMT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00594">fxos8700.h:594</a></div></div> 113<div class="ttc" id="a03823_html_ae682e23de52a05af6f694f8b2787ffb5"><div class="ttname"><a href="a03823.html#ae682e23de52a05af6f694f8b2787ffb5">fxos8700_allregs_t::trigger_mag_offnoise</a></div><div class="ttdeci">uint8_t trigger_mag_offnoise</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00171">fxos8700_freemaster_demo.c:171</a></div></div> 114<div class="ttc" id="a00227_html_a655f856881e2748838614d8ebe75b9b3"><div class="ttname"><a href="a00227.html#a655f856881e2748838614d8ebe75b9b3">ACCEL_2G_SENS</a></div><div class="ttdeci">#define ACCEL_2G_SENS</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00042">fxos8700_freemaster_demo.c:42</a></div></div> 115<div class="ttc" id="a00179_html_a2cedde333a6373a3ee274bde6af145d0"><div class="ttname"><a href="a00179.html#a2cedde333a6373a3ee274bde6af145d0">__END_WRITE_DATA__</a></div><div class="ttdeci">#define __END_WRITE_DATA__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00045">sensor_drv.h:45</a></div></div> 116<div class="ttc" id="a00227_html_ad162871b835f5bcb36700a35673419f0"><div class="ttname"><a href="a00227.html#ad162871b835f5bcb36700a35673419f0">recBuffCfg</a></div><div class="ttdeci">FMSTR_REC_BUFF recBuffCfg</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00225">fxos8700_freemaster_demo.c:225</a></div></div> 117<div class="ttc" id="a00080_html_a1a72c517a353d858cf5fd6bb05a35b12"><div class="ttname"><a href="a00080.html#a1a72c517a353d858cf5fd6bb05a35b12">FXOS8700_M_CTRL_REG2_M_AUTOINC_HYBRID_MODE</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG2_M_AUTOINC_HYBRID_MODE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02641">fxos8700.h:2641</a></div></div> 118<div class="ttc" id="a04166_html_a1edec5fed9dc97a37f9ddf9c8409f6b2"><div class="ttname"><a href="a04166.html#a1edec5fed9dc97a37f9ddf9c8409f6b2">BOARD_DEBUG_UART_CLK_FREQ</a></div><div class="ttdeci">#define BOARD_DEBUG_UART_CLK_FREQ</div><div class="ttdef"><b>Definition:</b> <a href="a04166_source.html#l00026">board.h:26</a></div></div> 119<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> 120<div class="ttc" id="a00482_html_a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e"><div class="ttname"><a href="a00482.html#a631d09668ec8f40a64ff69613cdbbba5aea9c54895635603d054830602ba5fb4e">GPIO_DIRECTION_IN</a></div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00023">Driver_GPIO.h:23</a></div></div> 121<div class="ttc" id="a04109_html_a4c84ccb952cb083367d7040cf9de3db8"><div class="ttname"><a href="a04109.html#a4c84ccb952cb083367d7040cf9de3db8">BOARD_InitDebugConsole</a></div><div class="ttdeci">void BOARD_InitDebugConsole(void)</div><div class="ttdef"><b>Definition:</b> <a href="a04109_source.html#l00015">board.c:15</a></div></div> 122<div class="ttc" id="a03823_html"><div class="ttname"><a href="a03823.html">fxos8700_allregs_t</a></div><div class="ttdoc">This structure defines the fxos8700 all registers metadata. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00158">fxos8700_freemaster_demo.c:158</a></div></div> 123<div class="ttc" id="a03823_html_a579c1a74d7de6ed4e97b8a29d6d826cd"><div class="ttname"><a href="a03823.html#a579c1a74d7de6ed4e97b8a29d6d826cd">fxos8700_allregs_t::accel</a></div><div class="ttdeci">float accel[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00180">fxos8700_freemaster_demo.c:180</a></div></div> 124<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da6065128c30cf2049395a33727bad836a"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6065128c30cf2049395a33727bad836a">FXOS8700_A_VECM_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00109">fxos8700.h:109</a></div></div> 125<div class="ttc" id="a00080_html_a4cbf59a396799828f6790f8ce1b7b6b0"><div class="ttname"><a href="a00080.html#a4cbf59a396799828f6790f8ce1b7b6b0">FXOS8700_A_FFMT_CFG_OAE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_OAE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00938">fxos8700.h:938</a></div></div> 126<div class="ttc" id="a00080_html_afb4115590ea0c3fd56c2d07364b49dea"><div class="ttname"><a href="a00080.html#afb4115590ea0c3fd56c2d07364b49dea">FXOS8700_CTRL_REG3_PP_OD_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_PP_OD_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01629">fxos8700.h:1629</a></div></div> 127<div class="ttc" id="a00227_html_a0240ac851181b84ac374872dc5434ee4"><div class="ttname"><a href="a00227.html#a0240ac851181b84ac374872dc5434ee4">N</a></div><div class="ttdeci">#define N</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00045">fxos8700_freemaster_demo.c:45</a></div></div> 128<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da7aa02f568c0ec73a140d9ff8f20642e2"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da7aa02f568c0ec73a140d9ff8f20642e2">FXOS8700_A_VECM_THS_LSB</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00111">fxos8700.h:111</a></div></div> 129<div class="ttc" id="a00227_html_a05b1ee83bf8f0e4f3d8ddcd5b6bdcf89"><div class="ttname"><a href="a00227.html#a05b1ee83bf8f0e4f3d8ddcd5b6bdcf89">ACCEL_8G_SENS</a></div><div class="ttdeci">#define ACCEL_8G_SENS</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00044">fxos8700_freemaster_demo.c:44</a></div></div> 130<div class="ttc" id="a02747_html"><div class="ttname"><a href="a02747.html">fxos8700_i2c_sensorhandle_t</a></div><div class="ttdoc">This defines the sensor specific information for I2C. </div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00044">fxos8700_drv.h:44</a></div></div> 131<div class="ttc" id="a00083_html_adcb4dbaa31a6b4ccd6031ee6cc97bb66"><div class="ttname"><a href="a00083.html#adcb4dbaa31a6b4ccd6031ee6cc97bb66">FXOS8700_I2C_Configure</a></div><div class="ttdeci">int32_t FXOS8700_I2C_Configure(fxos8700_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)</div><div class="ttdoc">The interface function to configure he sensor. </div><div class="ttdef"><b>Definition:</b> <a href="a00083_source.html#l00260">fxos8700_drv.c:260</a></div></div> 132<div class="ttc" id="a00080_html_af2c7c587f7f2efa17fc20d1214827ed8"><div class="ttname"><a href="a00080.html#af2c7c587f7f2efa17fc20d1214827ed8">FXOS8700_INT_SOURCE_SRC_A_VECM_MASK</a></div><div class="ttdeci">#define FXOS8700_INT_SOURCE_SRC_A_VECM_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00591">fxos8700.h:591</a></div></div> 133<div class="ttc" id="a00083_html_a0528c7633050aa23e89a79106d804cc6"><div class="ttname"><a href="a00083.html#a0528c7633050aa23e89a79106d804cc6">FXOS8700_I2C_ReadData</a></div><div class="ttdeci">int32_t FXOS8700_I2C_ReadData(fxos8700_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)</div><div class="ttdoc">The interface function to read the sensor data. </div><div class="ttdef"><b>Definition:</b> <a href="a00083_source.html#l00305">fxos8700_drv.c:305</a></div></div> 134<div class="ttc" id="a03823_html_af53fbe055eb102357c08a01337cd7838"><div class="ttname"><a href="a03823.html#af53fbe055eb102357c08a01337cd7838">fxos8700_allregs_t::toggle</a></div><div class="ttdeci">uint8_t toggle</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00169">fxos8700_freemaster_demo.c:169</a></div></div> 135<div class="ttc" id="a00080_html_a82dedea7c01e02db3c02b93eddac62c6"><div class="ttname"><a href="a00080.html#a82dedea7c01e02db3c02b93eddac62c6">FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_DRDY_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01711">fxos8700.h:1711</a></div></div> 136<div class="ttc" id="a03823_html_aa9fff43968831437a312428836cab362"><div class="ttname"><a href="a03823.html#aa9fff43968831437a312428836cab362">fxos8700_allregs_t::offset</a></div><div class="ttdeci">uint8_t offset</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00160">fxos8700_freemaster_demo.c:160</a></div></div> 137<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da17330073edbdd7b0bef5c42408c03271"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da17330073edbdd7b0bef5c42408c03271">FXOS8700_STATUS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00020">fxos8700.h:20</a></div></div> 138<div class="ttc" id="a00080_html_aca72634957b5cf6c32cec64aa5369093"><div class="ttname"><a href="a00080.html#aca72634957b5cf6c32cec64aa5369093">FXOS8700_PL_CFG_DBCNTM_MASK</a></div><div class="ttdeci">#define FXOS8700_PL_CFG_DBCNTM_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00770">fxos8700.h:770</a></div></div> 139<div class="ttc" id="a00179_html_a5deff6bd688b60b97b84fc7e78d3ea63"><div class="ttname"><a href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a></div><div class="ttdeci">void(* registeridlefunction_t)(void *userParam)</div><div class="ttdoc">This is the register idle function type. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00097">sensor_drv.h:97</a></div></div> 140<div class="ttc" id="a00227_html_a04985d175bb78cb94c9b193af34402fd"><div class="ttname"><a href="a00227.html#a04985d175bb78cb94c9b193af34402fd">recCfg</a></div><div class="ttdeci">FMSTR_REC_CFG recCfg</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00227">fxos8700_freemaster_demo.c:227</a></div></div> 141<div class="ttc" id="a00080_html_a0e4711bb3723261f1d41b2b9ac100796"><div class="ttname"><a href="a00080.html#a0e4711bb3723261f1d41b2b9ac100796">FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_ZEFE_RAISE_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00953">fxos8700.h:953</a></div></div> 142<div class="ttc" id="a00281_html_ac61bf859f26cd2541c3958bff34e2bda"><div class="ttname"><a href="a00281.html#ac61bf859f26cd2541c3958bff34e2bda">pGpioDriver</a></div><div class="ttdeci">GENERIC_DRIVER_GPIO * pGpioDriver</div><div class="ttdef"><b>Definition:</b> <a href="a00281_source.html#l00067">mma8491q_example.c:67</a></div></div> 143<div class="ttc" id="a00080_html_a6bf900c7c50e30c75e0ef180998c579d"><div class="ttname"><a href="a00080.html#a6bf900c7c50e30c75e0ef180998c579d">FXOS8700_M_CTRL_REG1_M_ACAL_MASK</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG1_M_ACAL_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02559">fxos8700.h:2559</a></div></div> 144<div class="ttc" id="a00227_html_a1c611e397ac2c8e1772b5c60e7659bd1"><div class="ttname"><a href="a00227.html#a1c611e397ac2c8e1772b5c60e7659bd1">A_FFMT_COUNT</a></div><div class="ttdeci">#define A_FFMT_COUNT</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00039">fxos8700_freemaster_demo.c:39</a></div></div> 145<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00038">sensor_drv.h:38</a></div></div> 146<div class="ttc" id="a00227_html_a02a7f812c6f2feab3aa25c1a34e3322b"><div class="ttname"><a href="a00227.html#a02a7f812c6f2feab3aa25c1a34e3322b">recVar</a></div><div class="ttdeci">FMSTR_REC_VAR recVar</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00226">fxos8700_freemaster_demo.c:226</a></div></div> 147<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da47d310708d19fb1bac84942ead51427d"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da47d310708d19fb1bac84942ead51427d">FXOS8700_A_FFMT_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00039">fxos8700.h:39</a></div></div> 148<div class="ttc" id="a00227_html_abedfdd1fc498fd83331960e1810107db"><div class="ttname"><a href="a00227.html#abedfdd1fc498fd83331960e1810107db">fxos8700_operation_type</a></div><div class="ttdeci">fxos8700_operation_type</div><div class="ttdoc">Defines host operation types. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00204">fxos8700_freemaster_demo.c:204</a></div></div> 149<div class="ttc" id="a00227_html_abedfdd1fc498fd83331960e1810107dbac6a2b24a2231cb89ea3c26c1ac9ad217"><div class="ttname"><a href="a00227.html#abedfdd1fc498fd83331960e1810107dbac6a2b24a2231cb89ea3c26c1ac9ad217">FXOS8700_REG_READ</a></div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00207">fxos8700_freemaster_demo.c:207</a></div></div> 150<div class="ttc" id="a00080_html_a6dae90e14399f15106c8aea5a73344b3"><div class="ttname"><a href="a00080.html#a6dae90e14399f15106c8aea5a73344b3">FXOS8700_CTRL_REG5_INT_CFG_DRDY_INT2</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG5_INT_CFG_DRDY_INT2</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01826">fxos8700.h:1826</a></div></div> 151<div class="ttc" id="a00080_html_a8a1d2e8c3760c129a0dbabdeceff3ac1"><div class="ttname"><a href="a00080.html#a8a1d2e8c3760c129a0dbabdeceff3ac1">FXOS8700_INT_SOURCE_SRC_LNDPRT_MASK</a></div><div class="ttdeci">#define FXOS8700_INT_SOURCE_SRC_LNDPRT_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00600">fxos8700.h:600</a></div></div> 152<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da74183b0d30ca406ec3582987c2aaeab1"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da74183b0d30ca406ec3582987c2aaeab1">FXOS8700_PL_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00035">fxos8700.h:35</a></div></div> 153<div class="ttc" id="a00179_html_aebb58a1bb3df30b7df4f6f14d0f1a81d"><div class="ttname"><a href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d">__END_READ_DATA__</a></div><div class="ttdeci">#define __END_READ_DATA__</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00051">sensor_drv.h:51</a></div></div> 154<div class="ttc" id="a00227_html_abedfdd1fc498fd83331960e1810107dba8ecb8390410bf891c47603b34b6a14e4"><div class="ttname"><a href="a00227.html#abedfdd1fc498fd83331960e1810107dba8ecb8390410bf891c47603b34b6a14e4">FXOS8700_ALLREG_READ</a></div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00208">fxos8700_freemaster_demo.c:208</a></div></div> 155<div class="ttc" id="a03823_html_a96995c8df2aa66256c07ed09638a251c"><div class="ttname"><a href="a03823.html#a96995c8df2aa66256c07ed09638a251c">fxos8700_allregs_t::read_value</a></div><div class="ttdeci">uint8_t read_value</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00164">fxos8700_freemaster_demo.c:164</a></div></div> 156<div class="ttc" id="a00080_html_a9fa602b49525ada9ed3d0358cb2b909b"><div class="ttname"><a href="a00080.html#a9fa602b49525ada9ed3d0358cb2b909b">FXOS8700_XYZ_DATA_CFG_FS_MASK</a></div><div class="ttdeci">#define FXOS8700_XYZ_DATA_CFG_FS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00647">fxos8700.h:647</a></div></div> 157<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da54038464c87e86ad55841b2c5cafa68e"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da54038464c87e86ad55841b2c5cafa68e">FXOS8700_PL_THS_REG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00038">fxos8700.h:38</a></div></div> 158<div class="ttc" id="a00080_html_a6a83f4285d3804fa9d3995566e6186b8"><div class="ttname"><a href="a00080.html#a6a83f4285d3804fa9d3995566e6186b8">FXOS8700_CTRL_REG1_DR_HYBRID_100_HZ</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG1_DR_HYBRID_100_HZ</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01528">fxos8700.h:1528</a></div></div> 159<div class="ttc" id="a00080_html_a789eda6a40a31f6f1b57537279c745ed"><div class="ttname"><a href="a00080.html#a789eda6a40a31f6f1b57537279c745ed">FXOS8700_CTRL_REG4_INT_EN_FFMT_EN</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG4_INT_EN_FFMT_EN</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01751">fxos8700.h:1751</a></div></div> 160<div class="ttc" id="a00080_html_a79ec1aa1c1c6ae036cda31bdaa644402"><div class="ttname"><a href="a00080.html#a79ec1aa1c1c6ae036cda31bdaa644402">FXOS8700_INT_SOURCE_SRC_PULSE_MASK</a></div><div class="ttdeci">#define FXOS8700_INT_SOURCE_SRC_PULSE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00597">fxos8700.h:597</a></div></div> 161<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00034">sensor_drv.h:34</a></div></div> 162<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da4f013a8a31ea0ab6e1d3d54f2d069084"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4f013a8a31ea0ab6e1d3d54f2d069084">FXOS8700_PL_BF_ZCOMP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00037">fxos8700.h:37</a></div></div> 163<div class="ttc" id="a04343_html_ad6a14737695a4218d07182b86b21f570"><div class="ttname"><a href="a04343.html#ad6a14737695a4218d07182b86b21f570">I2C_S_DRIVER</a></div><div class="ttdeci">#define I2C_S_DRIVER</div><div class="ttdef"><b>Definition:</b> <a href="a04343_source.html#l00033">issdk_hal.h:33</a></div></div> 164<div class="ttc" id="a03823_html_a638e4503e0ae6ce655b7ad2e17e8f0ad"><div class="ttname"><a href="a03823.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">fxos8700_allregs_t::value</a></div><div class="ttdeci">uint8_t value</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00161">fxos8700_freemaster_demo.c:161</a></div></div> 165<div class="ttc" id="a04166_html_a66aae8dca2a3ed9516953924c8d10021"><div class="ttname"><a href="a04166.html#a66aae8dca2a3ed9516953924c8d10021">BOARD_UART_IRQ</a></div><div class="ttdeci">#define BOARD_UART_IRQ</div><div class="ttdef"><b>Definition:</b> <a href="a04166_source.html#l00027">board.h:27</a></div></div> 166<div class="ttc" id="a03827_html_ada22027b92c169dd88578f6861046e28"><div class="ttname"><a href="a03827.html#ada22027b92c169dd88578f6861046e28">fxos8700_offset_noise_t::mag_off</a></div><div class="ttdeci">float mag_off[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00195">fxos8700_freemaster_demo.c:195</a></div></div> 167<div class="ttc" id="a00227_html_a843458dbaa821012bab17d0e98ed192e"><div class="ttname"><a href="a00227.html#a843458dbaa821012bab17d0e98ed192e">fxos8700_Config_Hybrid</a></div><div class="ttdeci">const registerwritelist_t fxos8700_Config_Hybrid[]</div><div class="ttdoc">Defines the register write list to configure FXOS8700 in Hybrid mode. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00055">fxos8700_freemaster_demo.c:55</a></div></div> 168<div class="ttc" id="a00368_html_a3c22bed16a7c769894081222aa6107d8"><div class="ttname"><a href="a00368.html#a3c22bed16a7c769894081222aa6107d8">I2Cdrv</a></div><div class="ttdeci">ARM_DRIVER_I2C * I2Cdrv</div><div class="ttdef"><b>Definition:</b> <a href="a00368_source.html#l00083">fxls896xaf_motion_wakeup.c:83</a></div></div> 169<div class="ttc" id="a00227_html_ad508addf55fd0c55016ce25fe85bbd3d"><div class="ttname"><a href="a00227.html#ad508addf55fd0c55016ce25fe85bbd3d">rawData</a></div><div class="ttdeci">fxos8700_accelmagdata_t rawData</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00218">fxos8700_freemaster_demo.c:218</a></div></div> 170<div class="ttc" id="a00227_html_abf6c21d708fbd20cb95a12d6ffd8b936"><div class="ttname"><a href="a00227.html#abf6c21d708fbd20cb95a12d6ffd8b936">fxos8700_operation_type_t</a></div><div class="ttdeci">enum fxos8700_operation_type fxos8700_operation_type_t</div><div class="ttdoc">Defines host operation types. </div></div> 171<div class="ttc" id="a03823_html_a68fea111a9a0540bf8e4a50113a0fc66"><div class="ttname"><a href="a03823.html#a68fea111a9a0540bf8e4a50113a0fc66">fxos8700_allregs_t::readall_size</a></div><div class="ttdeci">uint8_t readall_size</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00167">fxos8700_freemaster_demo.c:167</a></div></div> 172<div class="ttc" id="a03823_html_aeb2f1fc5efedab3e71d21ed85b714be2"><div class="ttname"><a href="a03823.html#aeb2f1fc5efedab3e71d21ed85b714be2">fxos8700_allregs_t::readall_value</a></div><div class="ttdeci">uint8_t readall_value[FXOS8700_NUM_REGISTERS]</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00166">fxos8700_freemaster_demo.c:166</a></div></div> 173<div class="ttc" id="a00080_html_a167dc0c73cc0fe17de9736ac734e58d4"><div class="ttname"><a href="a00080.html#a167dc0c73cc0fe17de9736ac734e58d4">FXOS8700_CTRL_REG2_MODS_HIGH_RES</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG2_MODS_HIGH_RES</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01599">fxos8700.h:1599</a></div></div> 174<div class="ttc" id="a00080_html_aba788dd94f755ff1cf18ebd00f27afbb"><div class="ttname"><a href="a00080.html#aba788dd94f755ff1cf18ebd00f27afbb">FXOS8700_XYZ_DATA_CFG_FS_2G_0P244</a></div><div class="ttdeci">#define FXOS8700_XYZ_DATA_CFG_FS_2G_0P244</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00660">fxos8700.h:660</a></div></div> 175<div class="ttc" id="a00080_html_ada37da1fea36568118756213341b02fc"><div class="ttname"><a href="a00080.html#ada37da1fea36568118756213341b02fc">FXOS8700_A_FFMT_THS_DBCNTM_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_THS_DBCNTM_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01036">fxos8700.h:1036</a></div></div> 176<div class="ttc" id="a00080_html_a7a2181d84196d13828719d0517d299f1"><div class="ttname"><a href="a00080.html#a7a2181d84196d13828719d0517d299f1">FXOS8700_A_VECM_THS_MSB_A_VBECM_THS_MASK</a></div><div class="ttdeci">#define FXOS8700_A_VECM_THS_MSB_A_VBECM_THS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02827">fxos8700.h:2827</a></div></div> 177<div class="ttc" id="a03827_html_a4eeaf3d7f45cf7c22a120618874882f7"><div class="ttname"><a href="a03827.html#a4eeaf3d7f45cf7c22a120618874882f7">fxos8700_offset_noise_t::mag_rms</a></div><div class="ttdeci">float mag_rms[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00196">fxos8700_freemaster_demo.c:196</a></div></div> 178<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> 179<div class="ttc" id="a00227_html_a2d8f7e0edacd46196e724081a276948a"><div class="ttname"><a href="a00227.html#a2d8f7e0edacd46196e724081a276948a">offset_noise_init</a></div><div class="ttdeci">void offset_noise_init(fxos8700_offset_noise_t *offnoiseptr)</div><div class="ttdoc">Function to initialize offset noise measurement. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00799">fxos8700_freemaster_demo.c:799</a></div></div> 180<div class="ttc" id="a00227_html_a31dc23c8d49a4ba48dc0989d2cfedbc5"><div class="ttname"><a href="a00227.html#a31dc23c8d49a4ba48dc0989d2cfedbc5">accel_off_noise</a></div><div class="ttdeci">void accel_off_noise(fxos8700_accelmagdata_t *rawData, fxos8700_offset_noise_t *offnoiseptr, float sens)</div><div class="ttdoc">Function to measure accelerometer offset noise. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00819">fxos8700_freemaster_demo.c:819</a></div></div> 181<div class="ttc" id="a03811_html_a5fe82375de174c0511ca301fec78e441"><div class="ttname"><a href="a03811.html#a5fe82375de174c0511ca301fec78e441">registerreadlist_t::readFrom</a></div><div class="ttdeci">uint16_t readFrom</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00080">sensor_drv.h:80</a></div></div> 182<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dae15d3220778357c7e5923ac6fa2b2a00"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dae15d3220778357c7e5923ac6fa2b2a00">FXOS8700_PULSE_THSY</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00050">fxos8700.h:50</a></div></div> 183<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6b0f6a3dfa66e9c2c89be887ea72a6c2">FXOS8700_XYZ_DATA_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00032">fxos8700.h:32</a></div></div> 184<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dab871a4ff4bb96c042507d1142bf1bb6d"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dab871a4ff4bb96c042507d1142bf1bb6d">FXOS8700_CTRL_REG1</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00056">fxos8700.h:56</a></div></div> 185<div class="ttc" id="a00080_html_afd97faa7cda438848420f2b997713757"><div class="ttname"><a href="a00080.html#afd97faa7cda438848420f2b997713757">FXOS8700_PL_BF_ZCOMP_ZLOCK_MASK</a></div><div class="ttdeci">#define FXOS8700_PL_BF_ZCOMP_ZLOCK_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00831">fxos8700.h:831</a></div></div> 186<div class="ttc" id="a04166_html_aa57459420fa9e4f0a5f3fc5f57f1b9e8"><div class="ttname"><a href="a04166.html#aa57459420fa9e4f0a5f3fc5f57f1b9e8">BOARD_DEBUG_UART_BASEADDR</a></div><div class="ttdeci">#define BOARD_DEBUG_UART_BASEADDR</div><div class="ttdef"><b>Definition:</b> <a href="a04166_source.html#l00024">board.h:24</a></div></div> 187<div class="ttc" id="a03903_html_a62607faa2025749cb36c8d7e379d45fc"><div class="ttname"><a href="a03903.html#a62607faa2025749cb36c8d7e379d45fc">GENERIC_DRIVER_GPIO::toggle_pin</a></div><div class="ttdeci">void(* toggle_pin)(pinID_t aPinId)</div><div class="ttdef"><b>Definition:</b> <a href="a00482_source.html#l00048">Driver_GPIO.h:48</a></div></div> 188<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dabbf450dd8289876d3736d975ae12e782"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabbf450dd8289876d3736d975ae12e782">FXOS8700_CTRL_REG3</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00058">fxos8700.h:58</a></div></div> 189<div class="ttc" id="a00227_html_aa5b71c0ab8cc97df0989925e699ed572"><div class="ttname"><a href="a00227.html#aa5b71c0ab8cc97df0989925e699ed572">cFXOS8700_whoami</a></div><div class="ttdeci">const registerreadlist_t cFXOS8700_whoami[]</div><div class="ttdoc">Defines the register read list to read the Data Ready Status. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00126">fxos8700_freemaster_demo.c:126</a></div></div> 190<div class="ttc" id="a00227_html_ae08826b534e6815fb0b4066c6ffa79b6"><div class="ttname"><a href="a00227.html#ae08826b534e6815fb0b4066c6ffa79b6">FF_A_FFMT_THS</a></div><div class="ttdeci">#define FF_A_FFMT_THS</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00038">fxos8700_freemaster_demo.c:38</a></div></div> 191<div class="ttc" id="a00086_html"><div class="ttname"><a href="a00086.html">fxos8700_drv.h</a></div><div class="ttdoc">The fxos8700_drv.h file describes the fxos8700 driver interface and structures. </div></div> 192<div class="ttc" id="a00080_html_a167df93bdb3585e3a280b1a9df7d7752"><div class="ttname"><a href="a00080.html#a167df93bdb3585e3a280b1a9df7d7752">FXOS8700_M_CTRL_REG1_M_ACAL_DISABLE</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG1_M_ACAL_DISABLE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02567">fxos8700.h:2567</a></div></div> 193<div class="ttc" id="a03827_html_af01b0ac6ab1d631dd5da23e55a855bd5"><div class="ttname"><a href="a03827.html#af01b0ac6ab1d631dd5da23e55a855bd5">fxos8700_offset_noise_t::offy</a></div><div class="ttdeci">float offy</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00190">fxos8700_freemaster_demo.c:190</a></div></div> 194<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1dabe02277bed750f9b3062eddcb056d116"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1dabe02277bed750f9b3062eddcb056d116">FXOS8700_A_FFMT_THS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00041">fxos8700.h:41</a></div></div> 195<div class="ttc" id="a00080_html_ac9b73e9a1c60dcc25ebd51a507e558a5"><div class="ttname"><a href="a00080.html#ac9b73e9a1c60dcc25ebd51a507e558a5">FXOS8700_PL_BF_ZCOMP_BKFR_MASK</a></div><div class="ttdeci">#define FXOS8700_PL_BF_ZCOMP_BKFR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00834">fxos8700.h:834</a></div></div> 196<div class="ttc" id="a00080_html_a78432980ed93690f4de5e88202005b1e"><div class="ttname"><a href="a00080.html#a78432980ed93690f4de5e88202005b1e">FXOS8700_CTRL_REG2_MODS_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG2_MODS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01568">fxos8700.h:1568</a></div></div> 197<div class="ttc" id="a00638_html_a5423cac017d1d1a8ac8bba8e91e80e29"><div class="ttname"><a href="a00638.html#a5423cac017d1d1a8ac8bba8e91e80e29">SMC_SetPowerModeWait</a></div><div class="ttdeci">status_t SMC_SetPowerModeWait(void *arg)</div><div class="ttdoc">Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...</div><div class="ttdef"><b>Definition:</b> <a href="a00638_source.html#l00155">lpc54114.c:155</a></div></div> 198<div class="ttc" id="a00227_html_ab58f4b8e72da1820ea391f00a71535b0"><div class="ttname"><a href="a00227.html#ab58f4b8e72da1820ea391f00a71535b0">apply_register_readall</a></div><div class="ttdeci">int32_t apply_register_readall(fxos8700_i2c_sensorhandle_t FXOS8700drv)</div><div class="ttdoc">Function to apply FXOS8700 register read-all operation. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00723">fxos8700_freemaster_demo.c:723</a></div></div> 199<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> 200<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> 201<div class="ttc" id="a03811_html"><div class="ttname"><a href="a03811.html">registerreadlist_t</a></div><div class="ttdoc">This structure defines the Read command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00078">sensor_drv.h:78</a></div></div> 202<div class="ttc" id="a02751_html_aa7a5efa29812f939ef282ef377e50cb4"><div class="ttname"><a href="a02751.html#aa7a5efa29812f939ef282ef377e50cb4">fxos8700_accelmagdata_t::mag</a></div><div class="ttdeci">int16_t mag[3]</div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00057">fxos8700_drv.h:57</a></div></div> 203<div class="ttc" id="a00227_html_a26b1b57fd9e2ad995d913e41313703a8"><div class="ttname"><a href="a00227.html#a26b1b57fd9e2ad995d913e41313703a8">cFXOS8700_fs_src</a></div><div class="ttdeci">const registerreadlist_t cFXOS8700_fs_src[]</div><div class="ttdoc">Defines the register read list to read the FullScale range. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00136">fxos8700_freemaster_demo.c:136</a></div></div> 204<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da5d4d46c13fbb93a2225a010adef7356a"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da5d4d46c13fbb93a2225a010adef7356a">FXOS8700_A_VECM_CNT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00112">fxos8700.h:112</a></div></div> 205<div class="ttc" id="a00227_html_aa363fd413aff26f23603006d0b129c4d"><div class="ttname"><a href="a00227.html#aa363fd413aff26f23603006d0b129c4d">cFXOS8700_pl_status</a></div><div class="ttdeci">const registerreadlist_t cFXOS8700_pl_status[]</div><div class="ttdoc">Defines the register read list to read the PL Status. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00152">fxos8700_freemaster_demo.c:152</a></div></div> 206<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1daa32a639f764f1f3f0568509901c979db"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daa32a639f764f1f3f0568509901c979db">FXOS8700_PULSE_THSX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00049">fxos8700.h:49</a></div></div> 207<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da4b4bdc373df2c834f2fa9291d35ddcbe"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da4b4bdc373df2c834f2fa9291d35ddcbe">FXOS8700_PULSE_THSZ</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00051">fxos8700.h:51</a></div></div> 208<div class="ttc" id="a00227_html_a461c227ab3069288f501cf13ad219a58"><div class="ttname"><a href="a00227.html#a461c227ab3069288f501cf13ad219a58">fxos8700_isr_callback</a></div><div class="ttdeci">void fxos8700_isr_callback(void *pUserData)</div><div class="ttdoc">ISR for FXOS8700 data ready event. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00301">fxos8700_freemaster_demo.c:301</a></div></div> 209<div class="ttc" id="a00575_html_a02a28175122c7e060eeb1411dc5ac171"><div class="ttname"><a href="a00575.html#a02a28175122c7e060eeb1411dc5ac171">GREEN_LED</a></div><div class="ttdeci">gpioHandleKSDK_t GREEN_LED</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00188">frdm_k64f.c:188</a></div></div> 210<div class="ttc" id="a03823_html_ab95e1e214fbb2bf4378a5d849ec07659"><div class="ttname"><a href="a03823.html#ab95e1e214fbb2bf4378a5d849ec07659">fxos8700_allregs_t::reg_addr</a></div><div class="ttdeci">uint8_t reg_addr[FXOS8700_NUM_REGISTERS]</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00178">fxos8700_freemaster_demo.c:178</a></div></div> 211<div class="ttc" id="a03827_html_a176534e2df647e63538839e08e2987ed"><div class="ttname"><a href="a03827.html#a176534e2df647e63538839e08e2987ed">fxos8700_offset_noise_t::offz</a></div><div class="ttdeci">float offz</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00191">fxos8700_freemaster_demo.c:191</a></div></div> 212<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da6abb5ce7016e6812b2b26345b9e8633b"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da6abb5ce7016e6812b2b26345b9e8633b">FXOS8700_M_CTRL_REG1</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00105">fxos8700.h:105</a></div></div> 213<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da70ec756be1105c19b43a8d872bf4813e"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da70ec756be1105c19b43a8d872bf4813e">FXOS8700_PL_COUNT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00036">fxos8700.h:36</a></div></div> 214<div class="ttc" id="a03827_html_a495a615081e1d215673d7c7f9a7f1b4d"><div class="ttname"><a href="a03827.html#a495a615081e1d215673d7c7f9a7f1b4d">fxos8700_offset_noise_t::rmsx</a></div><div class="ttdeci">float rmsx</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00192">fxos8700_freemaster_demo.c:192</a></div></div> 215<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da2923eb196a8a5d6b80288c7938dbd5d6"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da2923eb196a8a5d6b80288c7938dbd5d6">FXOS8700_PULSE_CFG</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00047">fxos8700.h:47</a></div></div> 216<div class="ttc" id="a00080_html_ab990c279c21f891fbc0222fbbf5e366c"><div class="ttname"><a href="a00080.html#ab990c279c21f891fbc0222fbbf5e366c">FXOS8700_CTRL_REG3_PP_OD_PUSH_PULL</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_PP_OD_PUSH_PULL</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01681">fxos8700.h:1681</a></div></div> 217<div class="ttc" id="a03823_html_a302c32582636dde519482a4f4f5e89c6"><div class="ttname"><a href="a03823.html#a302c32582636dde519482a4f4f5e89c6">fxos8700_allregs_t::freefall_cntr</a></div><div class="ttdeci">uint16_t freefall_cntr</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00174">fxos8700_freemaster_demo.c:174</a></div></div> 218<div class="ttc" id="a00083_html_af4efbd044b09aea215f120856f443caf"><div class="ttname"><a href="a00083.html#af4efbd044b09aea215f120856f443caf">FXOS8700_I2C_SetIdleTask</a></div><div class="ttdeci">void FXOS8700_I2C_SetIdleTask(fxos8700_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)</div><div class="ttdoc">: The interface function to set the I2C Idle Task. </div><div class="ttdef"><b>Definition:</b> <a href="a00083_source.html#l00252">fxos8700_drv.c:252</a></div></div> 219<div class="ttc" id="a03823_html_a8589aa31de200854d9f070127749a272"><div class="ttname"><a href="a03823.html#a8589aa31de200854d9f070127749a272">fxos8700_allregs_t::orient_cntr</a></div><div class="ttdeci">uint16_t orient_cntr</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00176">fxos8700_freemaster_demo.c:176</a></div></div> 220<div class="ttc" id="a03823_html_a7d446a6cedeedd092ede0fe151ecc080"><div class="ttname"><a href="a03823.html#a7d446a6cedeedd092ede0fe151ecc080">fxos8700_allregs_t::tapdetect_cntr</a></div><div class="ttdeci">uint16_t tapdetect_cntr</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00175">fxos8700_freemaster_demo.c:175</a></div></div> 221<div class="ttc" id="a00080_html_a65e7ea06e97099fdfafcaeb88b6924dd"><div class="ttname"><a href="a00080.html#a65e7ea06e97099fdfafcaeb88b6924dd">FXOS8700_CTRL_REG3_IPOL_MASK</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_IPOL_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01632">fxos8700.h:1632</a></div></div> 222<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1daccbacfb2d5a5ca13bcc5d165ad512e54">FXOS8700_CTRL_REG2</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00057">fxos8700.h:57</a></div></div> 223<div class="ttc" id="a00080_html_a359e9025b66d1dc8be94098285e6cc4f"><div class="ttname"><a href="a00080.html#a359e9025b66d1dc8be94098285e6cc4f">FXOS8700_A_FFMT_THS_THS_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_THS_THS_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01033">fxos8700.h:1033</a></div></div> 224<div class="ttc" id="a03823_html_aa5744614a78838192d7de403e29c3d0c"><div class="ttname"><a href="a03823.html#aa5744614a78838192d7de403e29c3d0c">fxos8700_allregs_t::mods_value</a></div><div class="ttdeci">uint8_t mods_value</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00173">fxos8700_freemaster_demo.c:173</a></div></div> 225<div class="ttc" id="a00080_html_a94733a422f988a615c9026d62f3a0251"><div class="ttname"><a href="a00080.html#a94733a422f988a615c9026d62f3a0251">FXOS8700_PL_CFG_PL_EN_MASK</a></div><div class="ttdeci">#define FXOS8700_PL_CFG_PL_EN_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00767">fxos8700.h:767</a></div></div> 226<div class="ttc" id="a04343_html_ab0c7969a7fffaabe78d43db2b12ad840"><div class="ttname"><a href="a04343.html#ab0c7969a7fffaabe78d43db2b12ad840">I2C_S_DEVICE_INDEX</a></div><div class="ttdeci">#define I2C_S_DEVICE_INDEX</div><div class="ttdef"><b>Definition:</b> <a href="a04343_source.html#l00035">issdk_hal.h:35</a></div></div> 227<div class="ttc" id="a00080_html_aa64beb94e4fee231baa79be68646e6b3"><div class="ttname"><a href="a00080.html#aa64beb94e4fee231baa79be68646e6b3">FXOS8700_A_VECM_THS_MSB_A_VBECM_DBCNTM_MASK</a></div><div class="ttdeci">#define FXOS8700_A_VECM_THS_MSB_A_VBECM_DBCNTM_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02830">fxos8700.h:2830</a></div></div> 228<div class="ttc" id="a00080_html_a5eab814f03699644832bc656c6162bf4"><div class="ttname"><a href="a00080.html#a5eab814f03699644832bc656c6162bf4">FXOS8700_DR_STATUS_ZYXDR_MASK</a></div><div class="ttdeci">#define FXOS8700_DR_STATUS_ZYXDR_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00186">fxos8700.h:186</a></div></div> 229<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> 230<div class="ttc" id="a03823_html_a82c780845e3a97eb59ddbf29c68989a8"><div class="ttname"><a href="a03823.html#a82c780845e3a97eb59ddbf29c68989a8">fxos8700_allregs_t::dataready_cntr</a></div><div class="ttdeci">uint8_t dataready_cntr</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00179">fxos8700_freemaster_demo.c:179</a></div></div> 231<div class="ttc" id="a00227_html_a08e287e51783ab8f90158352e6fc3af8"><div class="ttname"><a href="a00227.html#a08e287e51783ab8f90158352e6fc3af8">ACCEL_4G_SENS</a></div><div class="ttdeci">#define ACCEL_4G_SENS</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00043">fxos8700_freemaster_demo.c:43</a></div></div> 232<div class="ttc" id="a00080_html_a11dc5e0d310818490addf314f7f35dfc"><div class="ttname"><a href="a00080.html#a11dc5e0d310818490addf314f7f35dfc">FXOS8700_A_FFMT_CFG_YEFE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_YEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00932">fxos8700.h:932</a></div></div> 233<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> 234<div class="ttc" id="a03827_html_a2c6a1c23cc6973125141cd73769dd5e5"><div class="ttname"><a href="a03827.html#a2c6a1c23cc6973125141cd73769dd5e5">fxos8700_offset_noise_t::complete_accel_offnoise</a></div><div class="ttdeci">uint8_t complete_accel_offnoise</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00197">fxos8700_freemaster_demo.c:197</a></div></div> 235<div class="ttc" id="a00959_html_ga2c9fe54b6b84723fbaa590a6f4576966"><div class="ttname"><a href="a00959.html#ga2c9fe54b6b84723fbaa590a6f4576966">BOARD_InitPins</a></div><div class="ttdeci">void BOARD_InitPins(void)</div><div class="ttdoc">Configures pin routing and optionally pin electrical features. </div><div class="ttdef"><b>Definition:</b> <a href="a04541_source.html#l00047">pin_mux.c:47</a></div></div> 236<div class="ttc" id="a00227_html_abf5c2c37cbe5905b0ffbe3ba5e93d9d9"><div class="ttname"><a href="a00227.html#abf5c2c37cbe5905b0ffbe3ba5e93d9d9">update_dropdown_selection</a></div><div class="ttdeci">int32_t update_dropdown_selection(fxos8700_allregs_t *registers, uint8_t caller)</div><div class="ttdoc">Function to update dropdown selection. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00746">fxos8700_freemaster_demo.c:746</a></div></div> 237<div class="ttc" id="a04166_html_ab18f02e5df161de4fb61d2d6a735fd62"><div class="ttname"><a href="a04166.html#ab18f02e5df161de4fb61d2d6a735fd62">BOARD_UART_IRQ_HANDLER</a></div><div class="ttdeci">#define BOARD_UART_IRQ_HANDLER</div><div class="ttdef"><b>Definition:</b> <a href="a04166_source.html#l00028">board.h:28</a></div></div> 238<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da346cb29b2789fad8b609bf25718bcb5a"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da346cb29b2789fad8b609bf25718bcb5a">FXOS8700_F_SETUP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00027">fxos8700.h:27</a></div></div> 239<div class="ttc" id="a00080_html_a2e9348f883ca462834be1da82a5f0297"><div class="ttname"><a href="a00080.html#a2e9348f883ca462834be1da82a5f0297">FXOS8700_A_FFMT_CFG_ZEFE_MASK</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_ZEFE_MASK</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00935">fxos8700.h:935</a></div></div> 240<div class="ttc" id="a00227_html_a1ea66d33b5f8e9fda77f8dd865ef0408"><div class="ttname"><a href="a00227.html#a1ea66d33b5f8e9fda77f8dd865ef0408">MAX8BITSTORAGE</a></div><div class="ttdeci">#define MAX8BITSTORAGE</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00047">fxos8700_freemaster_demo.c:47</a></div></div> 241<div class="ttc" id="a00227_html_a8e7f25e3e23d20e4610984a75d433e67"><div class="ttname"><a href="a00227.html#a8e7f25e3e23d20e4610984a75d433e67">cFXOS8700_int_src</a></div><div class="ttdeci">const registerreadlist_t cFXOS8700_int_src[]</div><div class="ttdoc">Defines the register read list to read the Interrupt Source. </div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00131">fxos8700_freemaster_demo.c:131</a></div></div> 242<div class="ttc" id="a00080_html_aa143b37000a4849deacb75476cd62c65"><div class="ttname"><a href="a00080.html#aa143b37000a4849deacb75476cd62c65">FXOS8700_CTRL_REG3_IPOL_ACTIVE_HIGH</a></div><div class="ttdeci">#define FXOS8700_CTRL_REG3_IPOL_ACTIVE_HIGH</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l01680">fxos8700.h:1680</a></div></div> 243<div class="ttc" id="a03823_html_a016f00fd424d6219ccb402eea3f598df"><div class="ttname"><a href="a03823.html#a016f00fd424d6219ccb402eea3f598df">fxos8700_allregs_t::read_trigger</a></div><div class="ttdeci">uint8_t read_trigger</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00165">fxos8700_freemaster_demo.c:165</a></div></div> 244<div class="ttc" id="a00080_html_a5926f767e2267c71d53c4e648d801157"><div class="ttname"><a href="a00080.html#a5926f767e2267c71d53c4e648d801157">FXOS8700_PL_CFG_PL_EN_ENABLE</a></div><div class="ttdeci">#define FXOS8700_PL_CFG_PL_EN_ENABLE</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00782">fxos8700.h:782</a></div></div> 245<div class="ttc" id="a00080_html_a8feb5a39a55448c86e0dfc20f53a6c1da2b9bf41cfebedaf14e0c7653f800a536"><div class="ttname"><a href="a00080.html#a8feb5a39a55448c86e0dfc20f53a6c1da2b9bf41cfebedaf14e0c7653f800a536">FXOS8700_PL_STATUS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00034">fxos8700.h:34</a></div></div> 246<div class="ttc" id="a00080_html_ad533d11aeba6f307df55aedc5ef664e0"><div class="ttname"><a href="a00080.html#ad533d11aeba6f307df55aedc5ef664e0">FXOS8700_M_CTRL_REG1_M_OS_OSR0</a></div><div class="ttdeci">#define FXOS8700_M_CTRL_REG1_M_OS_OSR0</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l02577">fxos8700.h:2577</a></div></div> 247<div class="ttc" id="a00227_html_aef958fbc866cee6b181b68cb2d1d7341"><div class="ttname"><a href="a00227.html#aef958fbc866cee6b181b68cb2d1d7341">bFxos8700DataReady</a></div><div class="ttdeci">volatile bool bFxos8700DataReady</div><div class="ttdef"><b>Definition:</b> <a href="a00227_source.html#l00222">fxos8700_freemaster_demo.c:222</a></div></div> 248<div class="ttc" id="a00080_html_ac0b2a2750f3ae87c19b54e21a347cd03"><div class="ttname"><a href="a00080.html#ac0b2a2750f3ae87c19b54e21a347cd03">FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT</a></div><div class="ttdeci">#define FXOS8700_A_FFMT_CFG_XEFE_RAISE_EVENT</div><div class="ttdef"><b>Definition:</b> <a href="a00080_source.html#l00959">fxos8700.h:959</a></div></div> 249</div><!-- fragment --></div><!-- contents --> 250 251<hr class="footer"/><address class="footer"><small> 252© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 253</small></address> 254</body> 255</html> 256