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/register_io_spi.c File Reference</title>
9<link href="tabs.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="dynsections.js"></script>
12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" />
13</head>
14<body>
15<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16<div id="titlearea">
17<table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr style="height: 56px;">
20  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
21  <td id="projectalign" style="padding-left: 0.5em;">
22   <div id="projectname">ISSDK
23   &#160;<span id="projectnumber">1.8</span>
24   </div>
25   <div id="projectbrief">IoT Sensing Software Development Kit</div>
26  </td>
27 </tr>
28 </tbody>
29</table>
30</div>
31<!-- end header part -->
32<!-- Generated by Doxygen 1.8.13 -->
33<script type="text/javascript" src="menudata.js"></script>
34<script type="text/javascript" src="menu.js"></script>
35<script type="text/javascript">
36$(function() {
37  initMenu('',false,false,'search.php','Search');
38});
39</script>
40<div id="main-nav"></div>
41<div id="nav-path" class="navpath">
42  <ul>
43<li class="navelem"><a class="el" href="dir_c77a8e2546a9c75bbba96be2ef542c8e.html">sensors</a></li>  </ul>
44</div>
45</div><!-- top -->
46<div class="header">
47  <div class="summary">
48<a href="#define-members">Macros</a> &#124;
49<a href="#func-members">Functions</a> &#124;
50<a href="#var-members">Variables</a>  </div>
51  <div class="headertitle">
52<div class="title">register_io_spi.c File Reference</div>  </div>
53</div><!--header-->
54<div class="contents">
55
56<p>The <a class="el" href="a00173.html" title="The register_io_spi.c file contains definitions for low-level interface functions for reading and wri...">register_io_spi.c</a> file contains definitions for low-level interface functions for reading and writing sensor registers using CMSIS APIs.
57<a href="#details">More...</a></p>
58<div class="textblock"><code>#include &lt;string.h&gt;</code><br />
59<code>#include &quot;issdk_hal.h&quot;</code><br />
60<code>#include &quot;gpio_driver.h&quot;</code><br />
61<code>#include &quot;<a class="el" href="a00176_source.html">register_io_spi.h</a>&quot;</code><br />
62</div><div class="textblock"><div class="dynheader">
63Include dependency graph for register_io_spi.c:</div>
64<div class="dyncontent">
65<div class="center"><img src="a00174.png" border="0" usemap="#sensors_2register__io__spi_8c" alt=""/></div>
66<map name="sensors_2register__io__spi_8c" id="sensors_2register__io__spi_8c">
67<area shape="rect" id="node5" href="a00176.html" title="The register_io_spi.h file declares low&#45;level interface functions for reading and writing sensor regi..." alt="" coords="327,95,445,121"/>
68</map>
69</div>
70</div>
71<p><a href="a00173_source.html">Go to the source code of this file.</a></p>
72<table class="memberdecls">
73<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
74Macros</h2></td></tr>
75<tr class="memitem:aec7965b7923b3679c3b2c1710a968cd5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#aec7965b7923b3679c3b2c1710a968cd5">SPI_COUNT</a>&#160;&#160;&#160;(sizeof(<a class="el" href="a00173.html#a2edfc301113bc131cf311a7fa209f1e5">spiBases</a>) / sizeof(void *))</td></tr>
76<tr class="separator:aec7965b7923b3679c3b2c1710a968cd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
77</table><table class="memberdecls">
78<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
79Functions</h2></td></tr>
80<tr class="memitem:ac1bfd22ba959a96130a09b809ea27f97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#ac1bfd22ba959a96130a09b809ea27f97">register_spi_control</a> (<a class="el" href="a03795.html">spiControlParams_t</a> *ssControl)</td></tr>
81<tr class="separator:ac1bfd22ba959a96130a09b809ea27f97"><td class="memSeparator" colspan="2">&#160;</td></tr>
82<tr class="memitem:a0662e3575811a227d02c1cfe802744c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#a0662e3575811a227d02c1cfe802744c5">Register_SPI_BlockWrite</a> (ARM_DRIVER_SPI *pCommDrv, <a class="el" href="a03819.html">registerDeviceInfo_t</a> *devInfo, void *pWriteParams, uint8_t offset, const uint8_t *pBuffer, uint8_t bytesToWrite)</td></tr>
83<tr class="memdesc:a0662e3575811a227d02c1cfe802744c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface function to block write to a sensor register.  <a href="#a0662e3575811a227d02c1cfe802744c5">More...</a><br /></td></tr>
84<tr class="separator:a0662e3575811a227d02c1cfe802744c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
85<tr class="memitem:ac4eb16e5a939fce81270bab7f6707754"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#ac4eb16e5a939fce81270bab7f6707754">Register_SPI_Write</a> (ARM_DRIVER_SPI *pCommDrv, <a class="el" href="a03819.html">registerDeviceInfo_t</a> *devInfo, void *pWriteParams, uint8_t offset, uint8_t value, uint8_t mask)</td></tr>
86<tr class="memdesc:ac4eb16e5a939fce81270bab7f6707754"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface function to write a sensor register.  <a href="#ac4eb16e5a939fce81270bab7f6707754">More...</a><br /></td></tr>
87<tr class="separator:ac4eb16e5a939fce81270bab7f6707754"><td class="memSeparator" colspan="2">&#160;</td></tr>
88<tr class="memitem:a76a3aee498397854509b81ae2da2f85e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#a76a3aee498397854509b81ae2da2f85e">Register_SPI_Read</a> (ARM_DRIVER_SPI *pCommDrv, <a class="el" href="a03819.html">registerDeviceInfo_t</a> *devInfo, void *pReadParams, uint8_t offset, uint8_t length, uint8_t *pOutBuffer)</td></tr>
89<tr class="memdesc:a76a3aee498397854509b81ae2da2f85e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The interface function to read a sensor register.  <a href="#a76a3aee498397854509b81ae2da2f85e">More...</a><br /></td></tr>
90<tr class="separator:a76a3aee498397854509b81ae2da2f85e"><td class="memSeparator" colspan="2">&#160;</td></tr>
91</table><table class="memberdecls">
92<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
93Variables</h2></td></tr>
94<tr class="memitem:a8bdbaf08cc884410fbf48cabd29e3653"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03903.html">GENERIC_DRIVER_GPIO</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#a8bdbaf08cc884410fbf48cabd29e3653">pDspiGpioDriver</a> = &amp;<a class="el" href="a04880.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a></td></tr>
95<tr class="separator:a8bdbaf08cc884410fbf48cabd29e3653"><td class="memSeparator" colspan="2">&#160;</td></tr>
96<tr class="memitem:a2edfc301113bc131cf311a7fa209f1e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00758.html#af10ad3d64aba430c50c084a6e1b21634">SPI_Type</a> *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#a2edfc301113bc131cf311a7fa209f1e5">spiBases</a> [] = <a class="el" href="a00758.html#a3a16fecfe27c2052ab60e014be3f66f6">SPI_BASE_PTRS</a></td></tr>
97<tr class="separator:a2edfc301113bc131cf311a7fa209f1e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
98<tr class="memitem:a85bdc9dad49a249088ea7bf1f5ce51cd"><td class="memItemLeft" align="right" valign="top">volatile bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#a85bdc9dad49a249088ea7bf1f5ce51cd">b_SPI_CompletionFlag</a> [<a class="el" href="a00173.html#aec7965b7923b3679c3b2c1710a968cd5">SPI_COUNT</a>] = {<a class="el" href="a00914.html#a65e9886d74aaee76545e83dd09011727">false</a>}</td></tr>
99<tr class="separator:a85bdc9dad49a249088ea7bf1f5ce51cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
100<tr class="memitem:a362db1ef2d551e248a0eb4a7cc8ffedf"><td class="memItemLeft" align="right" valign="top">volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00173.html#a362db1ef2d551e248a0eb4a7cc8ffedf">g_SPI_ErrorEvent</a> [<a class="el" href="a00173.html#aec7965b7923b3679c3b2c1710a968cd5">SPI_COUNT</a>] = {ARM_SPI_EVENT_TRANSFER_COMPLETE}</td></tr>
101<tr class="separator:a362db1ef2d551e248a0eb4a7cc8ffedf"><td class="memSeparator" colspan="2">&#160;</td></tr>
102</table>
103<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
104<div class="textblock"><p>The <a class="el" href="a00173.html" title="The register_io_spi.c file contains definitions for low-level interface functions for reading and wri...">register_io_spi.c</a> file contains definitions for low-level interface functions for reading and writing sensor registers using CMSIS APIs. </p>
105
106<p class="definition">Definition in file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
107</div><h2 class="groupheader">Macro Definition Documentation</h2>
108<a id="aec7965b7923b3679c3b2c1710a968cd5"></a>
109<h2 class="memtitle"><span class="permalink"><a href="#aec7965b7923b3679c3b2c1710a968cd5">&#9670;&nbsp;</a></span>SPI_COUNT</h2>
110
111<div class="memitem">
112<div class="memproto">
113      <table class="memname">
114        <tr>
115          <td class="memname">#define SPI_COUNT&#160;&#160;&#160;(sizeof(<a class="el" href="a00173.html#a2edfc301113bc131cf311a7fa209f1e5">spiBases</a>) / sizeof(void *))</td>
116        </tr>
117      </table>
118</div><div class="memdoc">
119
120<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00026">26</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
121
122</div>
123</div>
124<h2 class="groupheader">Function Documentation</h2>
125<a id="a0662e3575811a227d02c1cfe802744c5"></a>
126<h2 class="memtitle"><span class="permalink"><a href="#a0662e3575811a227d02c1cfe802744c5">&#9670;&nbsp;</a></span>Register_SPI_BlockWrite()</h2>
127
128<div class="memitem">
129<div class="memproto">
130      <table class="memname">
131        <tr>
132          <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> Register_SPI_BlockWrite </td>
133          <td>(</td>
134          <td class="paramtype">ARM_DRIVER_SPI *&#160;</td>
135          <td class="paramname"><em>pCommDrv</em>, </td>
136        </tr>
137        <tr>
138          <td class="paramkey"></td>
139          <td></td>
140          <td class="paramtype"><a class="el" href="a03819.html">registerDeviceInfo_t</a> *&#160;</td>
141          <td class="paramname"><em>devInfo</em>, </td>
142        </tr>
143        <tr>
144          <td class="paramkey"></td>
145          <td></td>
146          <td class="paramtype">void *&#160;</td>
147          <td class="paramname"><em>pWriteParams</em>, </td>
148        </tr>
149        <tr>
150          <td class="paramkey"></td>
151          <td></td>
152          <td class="paramtype">uint8_t&#160;</td>
153          <td class="paramname"><em>offset</em>, </td>
154        </tr>
155        <tr>
156          <td class="paramkey"></td>
157          <td></td>
158          <td class="paramtype">const uint8_t *&#160;</td>
159          <td class="paramname"><em>pBuffer</em>, </td>
160        </tr>
161        <tr>
162          <td class="paramkey"></td>
163          <td></td>
164          <td class="paramtype">uint8_t&#160;</td>
165          <td class="paramname"><em>bytesToWrite</em>&#160;</td>
166        </tr>
167        <tr>
168          <td></td>
169          <td>)</td>
170          <td></td><td></td>
171        </tr>
172      </table>
173</div><div class="memdoc">
174
175<p>The interface function to block write to a sensor register. </p>
176<p>The interface function to block write sensor registers. </p>
177<p>Write and the value. </p>
178
179<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00162">162</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
180
181<p class="reference">References <a class="el" href="a00173_source.html#l00033">b_SPI_CompletionFlag</a>, <a class="el" href="a00176_source.html#l00034">spiControlParams_t::cmdCode</a>, <a class="el" href="a00179_source.html#l00106">registerDeviceInfo_t::deviceInstance</a>, <a class="el" href="a00179_source.html#l00105">registerDeviceInfo_t::functionParam</a>, <a class="el" href="a00173_source.html#l00034">g_SPI_ErrorEvent</a>, <a class="el" href="a00179_source.html#l00104">registerDeviceInfo_t::idleFunction</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00176_source.html#l00041">spi_mater_SlaveCmd::pReadBuffer</a>, <a class="el" href="a00176_source.html#l00050">spiSlaveSpecificParams_t::pTargetSlavePinID</a>, <a class="el" href="a00176_source.html#l00042">spi_mater_SlaveCmd::pWriteBuffer</a>, <a class="el" href="a00176_source.html#l00049">spiSlaveSpecificParams_t::pWritePreprocessFN</a>, <a class="el" href="a00173_source.html#l00149">register_spi_control()</a>, <a class="el" href="a00176_source.html#l00040">spi_mater_SlaveCmd::size</a>, <a class="el" href="a00176_source.html#l00052">spiSlaveSpecificParams_t::ssActiveValue</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p>
182
183<p class="reference">Referenced by <a class="el" href="a00038_source.html#l00068">FXLC95000_SPI_Initialize()</a>, <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>, <a class="el" href="a00152_source.html#l00157">MMA9553_SPI_Initialize()</a>, and <a class="el" href="a00188_source.html#l00024">Sensor_SPI_BlockWrite()</a>.</p>
184<div class="dynheader">
185Here is the call graph for this function:</div>
186<div class="dyncontent">
187<div class="center"><img src="a00173_a0662e3575811a227d02c1cfe802744c5_cgraph.png" border="0" usemap="#a00173_a0662e3575811a227d02c1cfe802744c5_cgraph" alt=""/></div>
188<map name="a00173_a0662e3575811a227d02c1cfe802744c5_cgraph" id="a00173_a0662e3575811a227d02c1cfe802744c5_cgraph">
189<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="259,5,321,32"/>
190<area shape="rect" id="node3" href="a00173.html#ac1bfd22ba959a96130a09b809ea27f97" title="register_spi_control" alt="" coords="223,56,357,83"/>
191</map>
192</div>
193<div class="dynheader">
194Here is the caller graph for this function:</div>
195<div class="dyncontent">
196<div class="center"><img src="a00173_a0662e3575811a227d02c1cfe802744c5_icgraph.png" border="0" usemap="#a00173_a0662e3575811a227d02c1cfe802744c5_icgraph" alt=""/></div>
197<map name="a00173_a0662e3575811a227d02c1cfe802744c5_icgraph" id="a00173_a0662e3575811a227d02c1cfe802744c5_icgraph">
198<area shape="rect" id="node2" href="a00041.html#aec67caf020c27066c2918ca5ba6807ac" title="The interface function to initialize the sensor. " alt="" coords="223,5,393,32"/>
199<area shape="rect" id="node3" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="247,56,369,83"/>
200<area shape="rect" id="node4" href="a00155.html#aa9e0baf731b01815b94c95276e6be639" title="The interface function to initialize the sensor. " alt="" coords="441,132,604,159"/>
201<area shape="rect" id="node5" href="a00191.html#a6891c5409037ff96ef29750f131f4c00" title="Write commands to a sensor. " alt="" coords="227,157,389,184"/>
202</map>
203</div>
204
205</div>
206</div>
207<a id="ac1bfd22ba959a96130a09b809ea27f97"></a>
208<h2 class="memtitle"><span class="permalink"><a href="#ac1bfd22ba959a96130a09b809ea27f97">&#9670;&nbsp;</a></span>register_spi_control()</h2>
209
210<div class="memitem">
211<div class="memproto">
212      <table class="memname">
213        <tr>
214          <td class="memname">void register_spi_control </td>
215          <td>(</td>
216          <td class="paramtype"><a class="el" href="a03795.html">spiControlParams_t</a> *&#160;</td>
217          <td class="paramname"><em>ssControl</em></td><td>)</td>
218          <td></td>
219        </tr>
220      </table>
221</div><div class="memdoc">
222
223<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00149">149</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
224
225<p class="reference">References <a class="el" href="a00176_source.html#l00033">spiControlParams_t::activeValue</a>, <a class="el" href="a00482_source.html#l00047">GENERIC_DRIVER_GPIO::clr_pin</a>, <a class="el" href="a00176_source.html#l00034">spiControlParams_t::cmdCode</a>, <a class="el" href="a00176_source.html#l00032">spiControlParams_t::pTargetSlavePinID</a>, and <a class="el" href="a00482_source.html#l00046">GENERIC_DRIVER_GPIO::set_pin</a>.</p>
226
227<p class="reference">Referenced by <a class="el" href="a00173_source.html#l00162">Register_SPI_BlockWrite()</a>, <a class="el" href="a00173_source.html#l00313">Register_SPI_Read()</a>, and <a class="el" href="a00173_source.html#l00216">Register_SPI_Write()</a>.</p>
228<div class="dynheader">
229Here is the caller graph for this function:</div>
230<div class="dyncontent">
231<div class="center"><img src="a00173_ac1bfd22ba959a96130a09b809ea27f97_icgraph.png" border="0" usemap="#a00173_ac1bfd22ba959a96130a09b809ea27f97_icgraph" alt=""/></div>
232<map name="a00173_ac1bfd22ba959a96130a09b809ea27f97_icgraph" id="a00173_ac1bfd22ba959a96130a09b809ea27f97_icgraph">
233<area shape="rect" id="node2" href="a00176.html#a0662e3575811a227d02c1cfe802744c5" title="The interface function to block write to a sensor register. " alt="" coords="188,5,357,32"/>
234<area shape="rect" id="node3" href="a00176.html#a76a3aee498397854509b81ae2da2f85e" title="The interface function to read a sensor register. " alt="" coords="205,56,340,83"/>
235<area shape="rect" id="node4" href="a00176.html#ac4eb16e5a939fce81270bab7f6707754" title="The interface function to write a sensor register. " alt="" coords="205,107,341,133"/>
236</map>
237</div>
238
239</div>
240</div>
241<a id="a76a3aee498397854509b81ae2da2f85e"></a>
242<h2 class="memtitle"><span class="permalink"><a href="#a76a3aee498397854509b81ae2da2f85e">&#9670;&nbsp;</a></span>Register_SPI_Read()</h2>
243
244<div class="memitem">
245<div class="memproto">
246      <table class="memname">
247        <tr>
248          <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> Register_SPI_Read </td>
249          <td>(</td>
250          <td class="paramtype">ARM_DRIVER_SPI *&#160;</td>
251          <td class="paramname"><em>pCommDrv</em>, </td>
252        </tr>
253        <tr>
254          <td class="paramkey"></td>
255          <td></td>
256          <td class="paramtype"><a class="el" href="a03819.html">registerDeviceInfo_t</a> *&#160;</td>
257          <td class="paramname"><em>devInfo</em>, </td>
258        </tr>
259        <tr>
260          <td class="paramkey"></td>
261          <td></td>
262          <td class="paramtype">void *&#160;</td>
263          <td class="paramname"><em>pReadParams</em>, </td>
264        </tr>
265        <tr>
266          <td class="paramkey"></td>
267          <td></td>
268          <td class="paramtype">uint8_t&#160;</td>
269          <td class="paramname"><em>offset</em>, </td>
270        </tr>
271        <tr>
272          <td class="paramkey"></td>
273          <td></td>
274          <td class="paramtype">uint8_t&#160;</td>
275          <td class="paramname"><em>length</em>, </td>
276        </tr>
277        <tr>
278          <td class="paramkey"></td>
279          <td></td>
280          <td class="paramtype">uint8_t *&#160;</td>
281          <td class="paramname"><em>pOutBuffer</em>&#160;</td>
282        </tr>
283        <tr>
284          <td></td>
285          <td>)</td>
286          <td></td><td></td>
287        </tr>
288      </table>
289</div><div class="memdoc">
290
291<p>The interface function to read a sensor register. </p>
292<p>The interface function to read a sensor register. </p>
293<p>Read the value. </p>
294
295<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00313">313</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
296
297<p class="reference">References <a class="el" href="a00173_source.html#l00033">b_SPI_CompletionFlag</a>, <a class="el" href="a00176_source.html#l00034">spiControlParams_t::cmdCode</a>, <a class="el" href="a00179_source.html#l00106">registerDeviceInfo_t::deviceInstance</a>, <a class="el" href="a00179_source.html#l00105">registerDeviceInfo_t::functionParam</a>, <a class="el" href="a00173_source.html#l00034">g_SPI_ErrorEvent</a>, <a class="el" href="a00179_source.html#l00104">registerDeviceInfo_t::idleFunction</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00176_source.html#l00041">spi_mater_SlaveCmd::pReadBuffer</a>, <a class="el" href="a00176_source.html#l00048">spiSlaveSpecificParams_t::pReadPreprocessFN</a>, <a class="el" href="a00176_source.html#l00050">spiSlaveSpecificParams_t::pTargetSlavePinID</a>, <a class="el" href="a00176_source.html#l00042">spi_mater_SlaveCmd::pWriteBuffer</a>, <a class="el" href="a00173_source.html#l00149">register_spi_control()</a>, <a class="el" href="a00176_source.html#l00040">spi_mater_SlaveCmd::size</a>, <a class="el" href="a00176_source.html#l00051">spiSlaveSpecificParams_t::spiCmdLen</a>, <a class="el" href="a00176_source.html#l00052">spiSlaveSpecificParams_t::ssActiveValue</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p>
298
299<p class="reference">Referenced by <a class="el" href="a00542_source.html#l00616">ADS_DIFF_PQuery()</a>, <a class="el" href="a00542_source.html#l00464">ADS_FXLS8471Query()</a>, <a class="el" href="a00542_source.html#l00541">ADS_FXLS8962Query()</a>, <a class="el" href="a00029_source.html#l00065">FXAS21002_SPI_Initialize()</a>, <a class="el" href="a00803_source.html#l00114">FXLS8471Q_Init()</a>, <a class="el" href="a00047_source.html#l00067">FXLS8471Q_SPI_Initialize()</a>, <a class="el" href="a00056_source.html#l00068">FXLS8962_SPI_Initialize()</a>, <a class="el" href="a00065_source.html#l00067">FXLS896x_SPI_Initialize()</a>, <a class="el" href="a00074_source.html#l00067">FXLS8974_SPI_Initialize()</a>, <a class="el" href="a00083_source.html#l00067">FXOS8700_SPI_Initialize()</a>, <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>, <a class="el" href="a00152_source.html#l00230">MMA9553_SPI_Configure()</a>, <a class="el" href="a00152_source.html#l00157">MMA9553_SPI_Initialize()</a>, <a class="el" href="a00188_source.html#l00024">Sensor_SPI_BlockWrite()</a>, and <a class="el" href="a00188_source.html#l00104">Sensor_SPI_Read()</a>.</p>
300<div class="dynheader">
301Here is the call graph for this function:</div>
302<div class="dyncontent">
303<div class="center"><img src="a00173_a76a3aee498397854509b81ae2da2f85e_cgraph.png" border="0" usemap="#a00173_a76a3aee498397854509b81ae2da2f85e_cgraph" alt=""/></div>
304<map name="a00173_a76a3aee498397854509b81ae2da2f85e_cgraph" id="a00173_a76a3aee498397854509b81ae2da2f85e_cgraph">
305<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="225,5,286,32"/>
306<area shape="rect" id="node3" href="a00173.html#ac1bfd22ba959a96130a09b809ea27f97" title="register_spi_control" alt="" coords="188,56,323,83"/>
307</map>
308</div>
309<div class="dynheader">
310Here is the caller graph for this function:</div>
311<div class="dyncontent">
312<div class="center"><img src="a00173_a76a3aee498397854509b81ae2da2f85e_icgraph.png" border="0" usemap="#a00173_a76a3aee498397854509b81ae2da2f85e_icgraph" alt=""/></div>
313<map name="a00173_a76a3aee498397854509b81ae2da2f85e_icgraph" id="a00173_a76a3aee498397854509b81ae2da2f85e_icgraph">
314<area shape="rect" id="node2" href="a00542.html#ae3d648f7414fad5a7cce5161b3592c92" title="ADS_DIFF_PQuery" alt="" coords="207,5,342,32"/>
315<area shape="rect" id="node3" href="a00542.html#a9e2ed26195eaf78326777a51c8ac1f3a" title="ADS_FXLS8471Query" alt="" coords="199,56,350,83"/>
316<area shape="rect" id="node4" href="a00542.html#a7381a2e1ee8e3fb264314c9c71216c98" title="ADS_FXLS8962Query" alt="" coords="199,107,350,133"/>
317<area shape="rect" id="node5" href="a00032.html#a6a3e2b9d7fd78d3bcfbeae10000473c7" title="The interface function to initialize the sensor. " alt="" coords="189,157,361,184"/>
318<area shape="rect" id="node6" href="a00842.html#a7c8424e014e2bdbb1dd61fcb4731857b" title="FXLS8471Q_Init" alt="" coords="217,208,332,235"/>
319<area shape="rect" id="node7" href="a00050.html#abaaef883aa8d1d70ac1e5d9b4efb5e26" title="The interface function to initialize the sensor for I2C. " alt="" coords="188,259,361,285"/>
320<area shape="rect" id="node8" href="a00059.html#a9dbeb91056376b27aafdbe0e15ff40d2" title="The interface function to initialize the sensor. " alt="" coords="193,309,356,336"/>
321<area shape="rect" id="node9" href="a00068.html#a1e780d778dcfdc924252ffd0186cd0ac" title="The interface function to initialize the sensor. " alt="" coords="193,360,356,387"/>
322<area shape="rect" id="node10" href="a00077.html#a1ef445c0c5f04425c654ff455b432593" title="The interface function to initialize the sensor. " alt="" coords="193,411,356,437"/>
323<area shape="rect" id="node11" href="a00086.html#ae968c689f91d84fb937839876121e3b4" title="The interface function to initialize the sensor. " alt="" coords="191,461,358,488"/>
324<area shape="rect" id="node12" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="214,512,335,539"/>
325<area shape="rect" id="node13" href="a00155.html#a7aa85a35ea5947bf6ebd459911596bab" title="The interface function to configure he sensor. " alt="" coords="409,588,580,615"/>
326<area shape="rect" id="node14" href="a00155.html#aa9e0baf731b01815b94c95276e6be639" title="The interface function to initialize the sensor. " alt="" coords="413,651,576,677"/>
327<area shape="rect" id="node15" href="a00191.html#a6891c5409037ff96ef29750f131f4c00" title="Write commands to a sensor. " alt="" coords="193,613,356,640"/>
328<area shape="rect" id="node16" href="a00191.html#a77509913bc008bceacf1e5f500e7499d" title="Read register data from a sensor. " alt="" coords="211,715,339,741"/>
329</map>
330</div>
331
332</div>
333</div>
334<a id="ac4eb16e5a939fce81270bab7f6707754"></a>
335<h2 class="memtitle"><span class="permalink"><a href="#ac4eb16e5a939fce81270bab7f6707754">&#9670;&nbsp;</a></span>Register_SPI_Write()</h2>
336
337<div class="memitem">
338<div class="memproto">
339      <table class="memname">
340        <tr>
341          <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> Register_SPI_Write </td>
342          <td>(</td>
343          <td class="paramtype">ARM_DRIVER_SPI *&#160;</td>
344          <td class="paramname"><em>pCommDrv</em>, </td>
345        </tr>
346        <tr>
347          <td class="paramkey"></td>
348          <td></td>
349          <td class="paramtype"><a class="el" href="a03819.html">registerDeviceInfo_t</a> *&#160;</td>
350          <td class="paramname"><em>devInfo</em>, </td>
351        </tr>
352        <tr>
353          <td class="paramkey"></td>
354          <td></td>
355          <td class="paramtype">void *&#160;</td>
356          <td class="paramname"><em>pWriteParams</em>, </td>
357        </tr>
358        <tr>
359          <td class="paramkey"></td>
360          <td></td>
361          <td class="paramtype">uint8_t&#160;</td>
362          <td class="paramname"><em>offset</em>, </td>
363        </tr>
364        <tr>
365          <td class="paramkey"></td>
366          <td></td>
367          <td class="paramtype">uint8_t&#160;</td>
368          <td class="paramname"><em>value</em>, </td>
369        </tr>
370        <tr>
371          <td class="paramkey"></td>
372          <td></td>
373          <td class="paramtype">uint8_t&#160;</td>
374          <td class="paramname"><em>mask</em>&#160;</td>
375        </tr>
376        <tr>
377          <td></td>
378          <td>)</td>
379          <td></td><td></td>
380        </tr>
381      </table>
382</div><div class="memdoc">
383
384<p>The interface function to write a sensor register. </p>
385<p>The interface function to write a sensor register. </p>
386<p>Set the register based on the values in the register value pair configuration.</p>
387<p>Read the register value.</p>
388<p>'OR' in the requested values to the current contents of the register</p>
389<p>Overwrite the register with specified value.</p>
390<p>Write and the value. </p>
391
392<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00216">216</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
393
394<p class="reference">References <a class="el" href="a00173_source.html#l00033">b_SPI_CompletionFlag</a>, <a class="el" href="a00176_source.html#l00034">spiControlParams_t::cmdCode</a>, <a class="el" href="a00179_source.html#l00106">registerDeviceInfo_t::deviceInstance</a>, <a class="el" href="a00179_source.html#l00105">registerDeviceInfo_t::functionParam</a>, <a class="el" href="a00173_source.html#l00034">g_SPI_ErrorEvent</a>, <a class="el" href="a00179_source.html#l00104">registerDeviceInfo_t::idleFunction</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00176_source.html#l00041">spi_mater_SlaveCmd::pReadBuffer</a>, <a class="el" href="a00176_source.html#l00048">spiSlaveSpecificParams_t::pReadPreprocessFN</a>, <a class="el" href="a00176_source.html#l00050">spiSlaveSpecificParams_t::pTargetSlavePinID</a>, <a class="el" href="a00176_source.html#l00042">spi_mater_SlaveCmd::pWriteBuffer</a>, <a class="el" href="a00176_source.html#l00049">spiSlaveSpecificParams_t::pWritePreprocessFN</a>, <a class="el" href="a00173_source.html#l00149">register_spi_control()</a>, <a class="el" href="a00176_source.html#l00040">spi_mater_SlaveCmd::size</a>, <a class="el" href="a00176_source.html#l00051">spiSlaveSpecificParams_t::spiCmdLen</a>, <a class="el" href="a00176_source.html#l00052">spiSlaveSpecificParams_t::ssActiveValue</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p>
395
396<p class="reference">Referenced by <a class="el" href="a00029_source.html#l00125">FXAS21002_SPI_Configure()</a>, <a class="el" href="a00029_source.html#l00197">FXAS21002_SPI_Deinit()</a>, <a class="el" href="a00047_source.html#l00127">FXLS8471Q_SPI_Configure()</a>, <a class="el" href="a00056_source.html#l00131">FXLS8962_SPI_Configure()</a>, <a class="el" href="a00056_source.html#l00205">FXLS8962_SPI_Deinit()</a>, <a class="el" href="a00065_source.html#l00130">FXLS896x_SPI_Configure()</a>, <a class="el" href="a00065_source.html#l00204">FXLS896x_SPI_Deinit()</a>, <a class="el" href="a00074_source.html#l00130">FXLS8974_SPI_Configure()</a>, <a class="el" href="a00074_source.html#l00204">FXLS8974_SPI_Deinit()</a>, <a class="el" href="a00083_source.html#l00124">FXOS8700_SPI_Configure()</a>, <a class="el" href="a00083_source.html#l00198">FXOS8700_SPI_Deinit()</a>, and <a class="el" href="a00188_source.html#l00071">Sensor_SPI_Write()</a>.</p>
397<div class="dynheader">
398Here is the call graph for this function:</div>
399<div class="dyncontent">
400<div class="center"><img src="a00173_ac4eb16e5a939fce81270bab7f6707754_cgraph.png" border="0" usemap="#a00173_ac4eb16e5a939fce81270bab7f6707754_cgraph" alt=""/></div>
401<map name="a00173_ac4eb16e5a939fce81270bab7f6707754_cgraph" id="a00173_ac4eb16e5a939fce81270bab7f6707754_cgraph">
402<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="226,5,287,32"/>
403<area shape="rect" id="node3" href="a00173.html#ac1bfd22ba959a96130a09b809ea27f97" title="register_spi_control" alt="" coords="189,56,324,83"/>
404</map>
405</div>
406<div class="dynheader">
407Here is the caller graph for this function:</div>
408<div class="dyncontent">
409<div class="center"><img src="a00173_ac4eb16e5a939fce81270bab7f6707754_icgraph.png" border="0" usemap="#a00173_ac4eb16e5a939fce81270bab7f6707754_icgraph" alt=""/></div>
410<map name="a00173_ac4eb16e5a939fce81270bab7f6707754_icgraph" id="a00173_ac4eb16e5a939fce81270bab7f6707754_icgraph">
411<area shape="rect" id="node2" href="a00032.html#aa0589840af24d3ff0f4121e9345cf000" title="The interface function to configure he sensor. " alt="" coords="397,5,575,32"/>
412<area shape="rect" id="node3" href="a00032.html#aab5046784ac58fbf4cf1fa3a738122fa" title="The interface function to De Initialize sensor.. " alt="" coords="189,356,348,383"/>
413<area shape="rect" id="node4" href="a00050.html#a1a82c26ff39b7d12bb85cf62f32f25b7" title="The interface function to configure he sensor. " alt="" coords="396,63,576,89"/>
414<area shape="rect" id="node5" href="a00059.html#a742cbb5c5b1d65ffccf3b7d6c9615e0a" title="The interface function to configure he sensor. " alt="" coords="401,125,571,152"/>
415<area shape="rect" id="node6" href="a00059.html#afa8884917291129b676fc1395fd95671" title="The interface function to De Initialize sensor.. " alt="" coords="194,407,343,433"/>
416<area shape="rect" id="node7" href="a00068.html#ac745e5436b317a776ac8f2cd24b0408b" title="The interface function to configure he sensor. " alt="" coords="401,201,571,228"/>
417<area shape="rect" id="node8" href="a00068.html#aeb87047a2521d9f022f3668e3b2d50ff" title="The interface function to De Initialize sensor.. " alt="" coords="194,457,343,484"/>
418<area shape="rect" id="node9" href="a00077.html#ad8a3a8c1551ab0faac212b740d40cbaf" title="The interface function to configure he sensor. " alt="" coords="401,253,571,280"/>
419<area shape="rect" id="node10" href="a00077.html#a4037b168e84024b4c42a78d89ec80afe" title="The interface function to De Initialize sensor.. " alt="" coords="194,508,343,535"/>
420<area shape="rect" id="node11" href="a00086.html#ae7129952c935fb610a2c1cd327f59078" title="The interface function to configure he sensor. " alt="" coords="399,304,573,331"/>
421<area shape="rect" id="node12" href="a00086.html#a1a82f26614dd4e35cf8eb5fba838f391" title="The interface function to De Initialize sensor.. " alt="" coords="193,559,345,585"/>
422<area shape="rect" id="node13" href="a00191.html#aaadd5fc1d790e7922e5303b4d61b67b4" title="Write register data to a sensor. " alt="" coords="204,153,333,180"/>
423</map>
424</div>
425
426</div>
427</div>
428<h2 class="groupheader">Variable Documentation</h2>
429<a id="a85bdc9dad49a249088ea7bf1f5ce51cd"></a>
430<h2 class="memtitle"><span class="permalink"><a href="#a85bdc9dad49a249088ea7bf1f5ce51cd">&#9670;&nbsp;</a></span>b_SPI_CompletionFlag</h2>
431
432<div class="memitem">
433<div class="memproto">
434      <table class="memname">
435        <tr>
436          <td class="memname">volatile bool b_SPI_CompletionFlag[<a class="el" href="a00173.html#aec7965b7923b3679c3b2c1710a968cd5">SPI_COUNT</a>] = {<a class="el" href="a00914.html#a65e9886d74aaee76545e83dd09011727">false</a>}</td>
437        </tr>
438      </table>
439</div><div class="memdoc">
440
441<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00033">33</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
442
443<p class="reference">Referenced by <a class="el" href="a00173_source.html#l00162">Register_SPI_BlockWrite()</a>, <a class="el" href="a00173_source.html#l00313">Register_SPI_Read()</a>, and <a class="el" href="a00173_source.html#l00216">Register_SPI_Write()</a>.</p>
444
445</div>
446</div>
447<a id="a362db1ef2d551e248a0eb4a7cc8ffedf"></a>
448<h2 class="memtitle"><span class="permalink"><a href="#a362db1ef2d551e248a0eb4a7cc8ffedf">&#9670;&nbsp;</a></span>g_SPI_ErrorEvent</h2>
449
450<div class="memitem">
451<div class="memproto">
452      <table class="memname">
453        <tr>
454          <td class="memname">volatile uint32_t g_SPI_ErrorEvent[<a class="el" href="a00173.html#aec7965b7923b3679c3b2c1710a968cd5">SPI_COUNT</a>] = {ARM_SPI_EVENT_TRANSFER_COMPLETE}</td>
455        </tr>
456      </table>
457</div><div class="memdoc">
458
459<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00034">34</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
460
461<p class="reference">Referenced by <a class="el" href="a00173_source.html#l00162">Register_SPI_BlockWrite()</a>, <a class="el" href="a00173_source.html#l00313">Register_SPI_Read()</a>, and <a class="el" href="a00173_source.html#l00216">Register_SPI_Write()</a>.</p>
462
463</div>
464</div>
465<a id="a8bdbaf08cc884410fbf48cabd29e3653"></a>
466<h2 class="memtitle"><span class="permalink"><a href="#a8bdbaf08cc884410fbf48cabd29e3653">&#9670;&nbsp;</a></span>pDspiGpioDriver</h2>
467
468<div class="memitem">
469<div class="memproto">
470      <table class="memname">
471        <tr>
472          <td class="memname"><a class="el" href="a03903.html">GENERIC_DRIVER_GPIO</a>* pDspiGpioDriver = &amp;<a class="el" href="a04880.html#a2c39f234913855fad752a8f96f245b27">Driver_GPIO_KSDK</a></td>
473        </tr>
474      </table>
475</div><div class="memdoc">
476
477<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00031">31</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
478
479</div>
480</div>
481<a id="a2edfc301113bc131cf311a7fa209f1e5"></a>
482<h2 class="memtitle"><span class="permalink"><a href="#a2edfc301113bc131cf311a7fa209f1e5">&#9670;&nbsp;</a></span>spiBases</h2>
483
484<div class="memitem">
485<div class="memproto">
486      <table class="memname">
487        <tr>
488          <td class="memname"><a class="el" href="a00758.html#af10ad3d64aba430c50c084a6e1b21634">SPI_Type</a>* const spiBases[] = <a class="el" href="a00758.html#a3a16fecfe27c2052ab60e014be3f66f6">SPI_BASE_PTRS</a></td>
489        </tr>
490      </table>
491</div><div class="memdoc">
492
493<p class="definition">Definition at line <a class="el" href="a00173_source.html#l00032">32</a> of file <a class="el" href="a00173_source.html">register_io_spi.c</a>.</p>
494
495</div>
496</div>
497</div><!-- contents -->
498
499<hr class="footer"/><address class="footer"><small>
500&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
501</small></address>
502</body>
503</html>
504