1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<meta http-equiv="X-UA-Compatible" content="IE=9"/> 6<meta name="generator" content="Doxygen 1.8.13"/> 7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>ISSDK: sensors/sensor_drv.h 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_c77a8e2546a9c75bbba96be2ef542c8e.html">sensors</a></li> </ul> 44</div> 45</div><!-- top --> 46<div class="header"> 47 <div class="headertitle"> 48<div class="title">sensor_drv.h</div> </div> 49</div><!--header--> 50<div class="contents"> 51<a href="a00179.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">/**</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * @file sensor_drv.h</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * @brief The sensor_drv.h file contains sensor state and error definitions.</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="preprocessor">#ifndef _SENSOR_DRV_H</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define _SENSOR_DRV_H</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <stddef.h></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <stdint.h></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <stdbool.h></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * Definitions</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> ******************************************************************************/</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">/* @brief This enum defines Write flag for the Register Write. */</span></div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30"> 24</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30">EWriteFlags</a></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30a1f80352b458293b5e74c323b79792eb1"> 26</a></span>  <a class="code" href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30a1f80352b458293b5e74c323b79792eb1">WRITE_OVERWRITE</a> = 0, <span class="comment">/* Overwrite the Register Value.*/</span></div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30ae3f9dd01fab462d9796b52455a199b3a"> 27</a></span>  <a class="code" href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30ae3f9dd01fab462d9796b52455a199b3a">WRITE_MASK</a> = 1 <span class="comment">/* Read and Mask and OR it with Register content.*/</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> } <a class="code" href="a00179.html#ac6e79a9c37f324790b1d344af0255ae4">EWriteFlags_t</a>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">/* @brief This enum defines Sensor State. */</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5ac"> 31</a></span> <span class="keyword">enum</span> <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5ac">ESensorErrors</a></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274"> 33</a></span>  <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca961b6871536a27c9e4718100e0024274">SENSOR_ERROR_NONE</a> = 0,</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7"> 34</a></span>  <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca78230e17f41b0ec3e31a708f36c7eaa7">SENSOR_ERROR_INVALID_PARAM</a>,</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf"> 35</a></span>  <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf">SENSOR_ERROR_BAD_ADDRESS</a>,</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd"> 36</a></span>  <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a>,</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193"> 37</a></span>  <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acae2a1d27a0c4405ab02566a7fc618d193">SENSOR_ERROR_WRITE</a>,</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc"> 38</a></span>  <a class="code" href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5acab93ad77156e08d1bebe52bf46936cccc">SENSOR_ERROR_READ</a>,</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> };</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">/* The MAXIMUM number of Sensor Registers possible. */</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="a00179.html#a4a12f839290b721c922e0bdac32cf141"> 42</a></span> <span class="preprocessor">#define SENSOR_MAX_REGISTER_COUNT 128 </span><span class="comment">/* As per 7-Bit address. */</span><span class="preprocessor"></span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">/* Used with the RegisterWriteList types as a list terminator */</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="a00179.html#a2cedde333a6373a3ee274bde6af145d0"> 45</a></span> <span class="preprocessor">#define __END_WRITE_DATA__ \</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"> .writeTo = 0xFFFF, .value = 0 \</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">/* Used with the RegisterReadList types as a list terminator */</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="a00179.html#aebb58a1bb3df30b7df4f6f14d0f1a81d"> 51</a></span> <span class="preprocessor">#define __END_READ_DATA__ \</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor"> .readFrom = 0xFFFF, .numBytes = 0 \</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">/* Used with the Sensor Command List types as a list terminator */</span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="a00179.html#a7b68cad1d117c3169c9a52eede1435f9"> 57</a></span> <span class="preprocessor">#define __END_WRITE_CMD__ \</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor"> .writeTo = 0xFFFF, .numBytes = 0 \</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">/*******************************************************************************</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> * Types</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> ******************************************************************************/</span><span class="comment"></span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment">/*!</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> * @brief This structure defines the Write command List.</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> */</span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="a03807.html"> 68</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="a03807.html#a8f4ad863f28f32ae52b7c97ff42bf921"> 70</a></span>  uint16_t <a class="code" href="a03807.html#a8f4ad863f28f32ae52b7c97ff42bf921">writeTo</a>; <span class="comment">/* Address where the value is writes to.*/</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="a03807.html#a638e4503e0ae6ce655b7ad2e17e8f0ad"> 71</a></span>  uint8_t <a class="code" href="a03807.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">value</a>; <span class="comment">/* value. Note that value should be shifted based on the bit position.*/</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="a03807.html#a8a74907784be6c7786c2d060c8d7e10b"> 72</a></span>  uint8_t <a class="code" href="a03807.html#a8a74907784be6c7786c2d060c8d7e10b">mask</a>; <span class="comment">/* mask of the field to be set with given value.*/</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> } <a class="code" href="a03807.html">registerwritelist_t</a>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"></span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment">/*!</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> * @brief This structure defines the Read command List.</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> */</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="a03811.html"> 78</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> {</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="a03811.html#a5fe82375de174c0511ca301fec78e441"> 80</a></span>  uint16_t <a class="code" href="a03811.html#a5fe82375de174c0511ca301fec78e441">readFrom</a>; <span class="comment">/* Address where the value is read from .*/</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="a03811.html#a1440a8efa2f56cded09ced3ff687d32a"> 81</a></span>  uint8_t <a class="code" href="a03811.html#a1440a8efa2f56cded09ced3ff687d32a">numBytes</a>; <span class="comment">/* Number of bytes to read.*/</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> } <a class="code" href="a03811.html">registerreadlist_t</a>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"></span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">/*!</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> * @brief This structure defines the Block command List.</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> */</span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="a03815.html"> 87</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> {</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="a03815.html#aff9cc771acb1a281b053ea1551c599be"> 89</a></span>  <span class="keyword">const</span> uint8_t *<a class="code" href="a03815.html#aff9cc771acb1a281b053ea1551c599be">pWriteBuffer</a>; <span class="comment">/* Buffer containing the bytes to be written. */</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="a03815.html#a8f4ad863f28f32ae52b7c97ff42bf921"> 90</a></span>  uint16_t <a class="code" href="a03815.html#a8f4ad863f28f32ae52b7c97ff42bf921">writeTo</a>; <span class="comment">/* Register Address where the bytes are to be written. */</span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="a03815.html#a1440a8efa2f56cded09ced3ff687d32a"> 91</a></span>  uint8_t <a class="code" href="a03815.html#a1440a8efa2f56cded09ced3ff687d32a">numBytes</a>; <span class="comment">/* Number of bytes to be written. */</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> } <a class="code" href="a03815.html">registercommandlist_t</a>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"></span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment">/*!</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> * @brief This is the register idle function type.</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> */</span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63"> 97</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a>)(<span class="keywordtype">void</span> *userParam);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"></span></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"> * @brief This structure defines the device specific info required by register I/O.</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> */</span></div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="a03819.html"> 102</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> {</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354"> 104</a></span>  <a class="code" href="a00179.html#a5deff6bd688b60b97b84fc7e78d3ea63">registeridlefunction_t</a> <a class="code" href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">idleFunction</a>;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d"> 105</a></span>  <span class="keywordtype">void</span> *<a class="code" href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">functionParam</a>;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed"> 106</a></span>  uint8_t <a class="code" href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">deviceInstance</a>;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> } <a class="code" href="a03819.html">registerDeviceInfo_t</a>;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor">#endif //_SENSOR_DRV_H</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="a03819_html"><div class="ttname"><a href="a03819.html">registerDeviceInfo_t</a></div><div class="ttdoc">This structure defines the device specific info required by register I/O. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00102">sensor_drv.h:102</a></div></div> 53<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> 54<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> 55<div class="ttc" id="a00179_html_ad6cf7092ec5344e13e4bf01fc576ad30ae3f9dd01fab462d9796b52455a199b3a"><div class="ttname"><a href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30ae3f9dd01fab462d9796b52455a199b3a">WRITE_MASK</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00027">sensor_drv.h:27</a></div></div> 56<div class="ttc" id="a00179_html_ac6e79a9c37f324790b1d344af0255ae4"><div class="ttname"><a href="a00179.html#ac6e79a9c37f324790b1d344af0255ae4">EWriteFlags_t</a></div><div class="ttdeci">enum EWriteFlags EWriteFlags_t</div></div> 57<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca7f5031b1497c3a8a4bcb78cce879dedd">SENSOR_ERROR_INIT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00036">sensor_drv.h:36</a></div></div> 58<div class="ttc" id="a03815_html"><div class="ttname"><a href="a03815.html">registercommandlist_t</a></div><div class="ttdoc">This structure defines the Block command List. </div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00087">sensor_drv.h:87</a></div></div> 59<div class="ttc" id="a03819_html_a693f84e28d48677a73cd40d7e5fc79ed"><div class="ttname"><a href="a03819.html#a693f84e28d48677a73cd40d7e5fc79ed">registerDeviceInfo_t::deviceInstance</a></div><div class="ttdeci">uint8_t deviceInstance</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00106">sensor_drv.h:106</a></div></div> 60<div class="ttc" id="a00179_html_ad6cf7092ec5344e13e4bf01fc576ad30"><div class="ttname"><a href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30">EWriteFlags</a></div><div class="ttdeci">EWriteFlags</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00024">sensor_drv.h:24</a></div></div> 61<div class="ttc" id="a03807_html_a638e4503e0ae6ce655b7ad2e17e8f0ad"><div class="ttname"><a href="a03807.html#a638e4503e0ae6ce655b7ad2e17e8f0ad">registerwritelist_t::value</a></div><div class="ttdeci">uint8_t value</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00071">sensor_drv.h:71</a></div></div> 62<div class="ttc" id="a03815_html_a1440a8efa2f56cded09ced3ff687d32a"><div class="ttname"><a href="a03815.html#a1440a8efa2f56cded09ced3ff687d32a">registercommandlist_t::numBytes</a></div><div class="ttdeci">uint8_t numBytes</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00091">sensor_drv.h:91</a></div></div> 63<div class="ttc" id="a03811_html_a1440a8efa2f56cded09ced3ff687d32a"><div class="ttname"><a href="a03811.html#a1440a8efa2f56cded09ced3ff687d32a">registerreadlist_t::numBytes</a></div><div class="ttdeci">uint8_t numBytes</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00081">sensor_drv.h:81</a></div></div> 64<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> 65<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5aca6c14d92ca22311f1385ad1e251fd47bf">SENSOR_ERROR_BAD_ADDRESS</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00035">sensor_drv.h:35</a></div></div> 66<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> 67<div class="ttc" id="a03819_html_abb8c8f961a02b447e127bd6ef3215c7d"><div class="ttname"><a href="a03819.html#abb8c8f961a02b447e127bd6ef3215c7d">registerDeviceInfo_t::functionParam</a></div><div class="ttdeci">void * functionParam</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00105">sensor_drv.h:105</a></div></div> 68<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> 69<div class="ttc" id="a03807_html_a8f4ad863f28f32ae52b7c97ff42bf921"><div class="ttname"><a href="a03807.html#a8f4ad863f28f32ae52b7c97ff42bf921">registerwritelist_t::writeTo</a></div><div class="ttdeci">uint16_t writeTo</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00070">sensor_drv.h:70</a></div></div> 70<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> 71<div class="ttc" id="a03815_html_a8f4ad863f28f32ae52b7c97ff42bf921"><div class="ttname"><a href="a03815.html#a8f4ad863f28f32ae52b7c97ff42bf921">registercommandlist_t::writeTo</a></div><div class="ttdeci">uint16_t writeTo</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00090">sensor_drv.h:90</a></div></div> 72<div class="ttc" id="a03807_html_a8a74907784be6c7786c2d060c8d7e10b"><div class="ttname"><a href="a03807.html#a8a74907784be6c7786c2d060c8d7e10b">registerwritelist_t::mask</a></div><div class="ttdeci">uint8_t mask</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00072">sensor_drv.h:72</a></div></div> 73<div class="ttc" id="a00179_html_ad6cf7092ec5344e13e4bf01fc576ad30a1f80352b458293b5e74c323b79792eb1"><div class="ttname"><a href="a00179.html#ad6cf7092ec5344e13e4bf01fc576ad30a1f80352b458293b5e74c323b79792eb1">WRITE_OVERWRITE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00026">sensor_drv.h:26</a></div></div> 74<div class="ttc" id="a00179_html_a18a00cbfd8ad83c7fd229cd0d5fad5ac"><div class="ttname"><a href="a00179.html#a18a00cbfd8ad83c7fd229cd0d5fad5ac">ESensorErrors</a></div><div class="ttdeci">ESensorErrors</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00031">sensor_drv.h:31</a></div></div> 75<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> 76<div class="ttc" id="a03815_html_aff9cc771acb1a281b053ea1551c599be"><div class="ttname"><a href="a03815.html#aff9cc771acb1a281b053ea1551c599be">registercommandlist_t::pWriteBuffer</a></div><div class="ttdeci">const uint8_t * pWriteBuffer</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00089">sensor_drv.h:89</a></div></div> 77<div class="ttc" id="a03819_html_acf9a866fc6b31f72a8e26437420e0354"><div class="ttname"><a href="a03819.html#acf9a866fc6b31f72a8e26437420e0354">registerDeviceInfo_t::idleFunction</a></div><div class="ttdeci">registeridlefunction_t idleFunction</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00104">sensor_drv.h:104</a></div></div> 78</div><!-- fragment --></div><!-- contents --> 79 80<hr class="footer"/><address class="footer"><small> 81© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 82</small></address> 83</body> 84</html> 85