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: algorithms/sensorfusion/sources/calibration_storage.h 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_c0ce462e37efe0a8d60c01d75f78f8a0.html">algorithms</a></li><li class="navelem"><a class="el" href="dir_cb8ed5ffd1f20a5af7e420f81f312621.html">sensorfusion</a></li><li class="navelem"><a class="el" href="dir_c60867674b20e7d761cd401b87ce879d.html">sources</a></li>  </ul>
44</div>
45</div><!-- top -->
46<div class="header">
47  <div class="summary">
48<a href="#func-members">Functions</a>  </div>
49  <div class="headertitle">
50<div class="title">calibration_storage.h File Reference</div>  </div>
51</div><!--header-->
52<div class="contents">
53
54<p>Provides functions to store calibration to NVM.
55<a href="#details">More...</a></p>
56<div class="textblock"><div class="dynheader">
57This graph shows which files directly or indirectly include this file:</div>
58<div class="dyncontent">
59<div class="center"><img src="a00775.png" border="0" usemap="#algorithms_2sensorfusion_2sources_2calibration__storage_8hdep" alt=""/></div>
60<map name="algorithms_2sensorfusion_2sources_2calibration__storage_8hdep" id="algorithms_2sensorfusion_2sources_2calibration__storage_8hdep">
61<area shape="rect" id="node2" href="a00770.html" title="Provides functions to store calibration to NVM. " alt="" coords="5,95,201,136"/>
62<area shape="rect" id="node3" href="a00794.html" title="Command interpreter which interfaces to the Sensor Fusion Toolbox. " alt="" coords="226,95,450,136"/>
63</map>
64</div>
65</div>
66<p><a href="a00773_source.html">Go to the source code of this file.</a></p>
67<table class="memberdecls">
68<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
69Functions</h2></td></tr>
70<tr class="memitem:ad08799ac63701e755fe2414b32f69b50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00773.html#ad08799ac63701e755fe2414b32f69b50">SaveMagCalibrationToNVM</a> (<a class="el" href="a04047.html">SensorFusionGlobals</a> *<a class="el" href="a00884.html#afa81c629d378fe700f351a1bce411ad5">sfg</a>)</td></tr>
71<tr class="separator:ad08799ac63701e755fe2414b32f69b50"><td class="memSeparator" colspan="2">&#160;</td></tr>
72<tr class="memitem:aa5684d700f135264e542f33071ed6a45"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00773.html#aa5684d700f135264e542f33071ed6a45">SaveGyroCalibrationToNVM</a> (<a class="el" href="a04047.html">SensorFusionGlobals</a> *<a class="el" href="a00884.html#afa81c629d378fe700f351a1bce411ad5">sfg</a>)</td></tr>
73<tr class="separator:aa5684d700f135264e542f33071ed6a45"><td class="memSeparator" colspan="2">&#160;</td></tr>
74<tr class="memitem:a6cbf0fc4417e3a411a9685e2a92f1816"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00773.html#a6cbf0fc4417e3a411a9685e2a92f1816">SaveAccelCalibrationToNVM</a> (<a class="el" href="a04047.html">SensorFusionGlobals</a> *<a class="el" href="a00884.html#afa81c629d378fe700f351a1bce411ad5">sfg</a>)</td></tr>
75<tr class="separator:a6cbf0fc4417e3a411a9685e2a92f1816"><td class="memSeparator" colspan="2">&#160;</td></tr>
76<tr class="memitem:a5004646fd5b485a74892b17e4a3af15b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00773.html#a5004646fd5b485a74892b17e4a3af15b">EraseMagCalibrationFromNVM</a> (void)</td></tr>
77<tr class="separator:a5004646fd5b485a74892b17e4a3af15b"><td class="memSeparator" colspan="2">&#160;</td></tr>
78<tr class="memitem:a98044dd5ba8a80f7e92b4567725e5193"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00773.html#a98044dd5ba8a80f7e92b4567725e5193">EraseGyroCalibrationFromNVM</a> (void)</td></tr>
79<tr class="separator:a98044dd5ba8a80f7e92b4567725e5193"><td class="memSeparator" colspan="2">&#160;</td></tr>
80<tr class="memitem:a3b4a1193ece3947c38651156293a7623"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00773.html#a3b4a1193ece3947c38651156293a7623">EraseAccelCalibrationFromNVM</a> (void)</td></tr>
81<tr class="separator:a3b4a1193ece3947c38651156293a7623"><td class="memSeparator" colspan="2">&#160;</td></tr>
82</table>
83<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
84<div class="textblock"><p>Provides functions to store calibration to NVM. </p>
85<p>Users who are not using NXP hardware will need to supply their own drivers in place of those defined here. </p>
86
87<p class="definition">Definition in file <a class="el" href="a00773_source.html">calibration_storage.h</a>.</p>
88</div><h2 class="groupheader">Function Documentation</h2>
89<a id="a3b4a1193ece3947c38651156293a7623"></a>
90<h2 class="memtitle"><span class="permalink"><a href="#a3b4a1193ece3947c38651156293a7623">&#9670;&nbsp;</a></span>EraseAccelCalibrationFromNVM()</h2>
91
92<div class="memitem">
93<div class="memproto">
94      <table class="memname">
95        <tr>
96          <td class="memname">void EraseAccelCalibrationFromNVM </td>
97          <td>(</td>
98          <td class="paramtype">void&#160;</td>
99          <td class="paramname"></td><td>)</td>
100          <td></td>
101        </tr>
102      </table>
103</div><div class="memdoc">
104
105<p class="definition">Definition at line <a class="el" href="a00770_source.html#l00170">170</a> of file <a class="el" href="a00770_source.html">calibration_storage.c</a>.</p>
106
107<p class="reference">References <a class="el" href="a00578_source.html#l00155">ACCEL_NVM_OFFSET</a>, <a class="el" href="a00578_source.html#l00147">CALIBRATION_NVM_ADDR</a>, and <a class="el" href="a00815_source.html#l00024">NVM_SetBlockFlash()</a>.</p>
108
109<p class="reference">Referenced by <a class="el" href="a00794_source.html#l00068">DecodeCommandBytes()</a>.</p>
110<div class="dynheader">
111Here is the call graph for this function:</div>
112<div class="dyncontent">
113<div class="center"><img src="a00773_a3b4a1193ece3947c38651156293a7623_cgraph.png" border="0" usemap="#a00773_a3b4a1193ece3947c38651156293a7623_cgraph" alt=""/></div>
114<map name="a00773_a3b4a1193ece3947c38651156293a7623_cgraph" id="a00773_a3b4a1193ece3947c38651156293a7623_cgraph">
115<area shape="rect" id="node2" href="a00815.html#ac226b4393abef43297aa13addf70f2f1" title="NVM_SetBlockFlash" alt="" coords="263,29,405,56"/>
116</map>
117</div>
118<div class="dynheader">
119Here is the caller graph for this function:</div>
120<div class="dyncontent">
121<div class="center"><img src="a00773_a3b4a1193ece3947c38651156293a7623_icgraph.png" border="0" usemap="#a00773_a3b4a1193ece3947c38651156293a7623_icgraph" alt=""/></div>
122<map name="a00773_a3b4a1193ece3947c38651156293a7623_icgraph" id="a00773_a3b4a1193ece3947c38651156293a7623_icgraph">
123<area shape="rect" id="node2" href="a00794.html#a2d80b68d03de87c2d3cce67273f8a165" title="DecodeCommandBytes" alt="" coords="263,5,421,32"/>
124</map>
125</div>
126
127</div>
128</div>
129<a id="a98044dd5ba8a80f7e92b4567725e5193"></a>
130<h2 class="memtitle"><span class="permalink"><a href="#a98044dd5ba8a80f7e92b4567725e5193">&#9670;&nbsp;</a></span>EraseGyroCalibrationFromNVM()</h2>
131
132<div class="memitem">
133<div class="memproto">
134      <table class="memname">
135        <tr>
136          <td class="memname">void EraseGyroCalibrationFromNVM </td>
137          <td>(</td>
138          <td class="paramtype">void&#160;</td>
139          <td class="paramname"></td><td>)</td>
140          <td></td>
141        </tr>
142      </table>
143</div><div class="memdoc">
144
145<p class="definition">Definition at line <a class="el" href="a00770_source.html#l00149">149</a> of file <a class="el" href="a00770_source.html">calibration_storage.c</a>.</p>
146
147<p class="reference">References <a class="el" href="a00578_source.html#l00147">CALIBRATION_NVM_ADDR</a>, <a class="el" href="a00578_source.html#l00154">GYRO_NVM_OFFSET</a>, and <a class="el" href="a00815_source.html#l00024">NVM_SetBlockFlash()</a>.</p>
148
149<p class="reference">Referenced by <a class="el" href="a00794_source.html#l00068">DecodeCommandBytes()</a>.</p>
150<div class="dynheader">
151Here is the call graph for this function:</div>
152<div class="dyncontent">
153<div class="center"><img src="a00773_a98044dd5ba8a80f7e92b4567725e5193_cgraph.png" border="0" usemap="#a00773_a98044dd5ba8a80f7e92b4567725e5193_cgraph" alt=""/></div>
154<map name="a00773_a98044dd5ba8a80f7e92b4567725e5193_cgraph" id="a00773_a98044dd5ba8a80f7e92b4567725e5193_cgraph">
155<area shape="rect" id="node2" href="a00815.html#ac226b4393abef43297aa13addf70f2f1" title="NVM_SetBlockFlash" alt="" coords="257,29,400,56"/>
156</map>
157</div>
158<div class="dynheader">
159Here is the caller graph for this function:</div>
160<div class="dyncontent">
161<div class="center"><img src="a00773_a98044dd5ba8a80f7e92b4567725e5193_icgraph.png" border="0" usemap="#a00773_a98044dd5ba8a80f7e92b4567725e5193_icgraph" alt=""/></div>
162<map name="a00773_a98044dd5ba8a80f7e92b4567725e5193_icgraph" id="a00773_a98044dd5ba8a80f7e92b4567725e5193_icgraph">
163<area shape="rect" id="node2" href="a00794.html#a2d80b68d03de87c2d3cce67273f8a165" title="DecodeCommandBytes" alt="" coords="257,5,416,32"/>
164</map>
165</div>
166
167</div>
168</div>
169<a id="a5004646fd5b485a74892b17e4a3af15b"></a>
170<h2 class="memtitle"><span class="permalink"><a href="#a5004646fd5b485a74892b17e4a3af15b">&#9670;&nbsp;</a></span>EraseMagCalibrationFromNVM()</h2>
171
172<div class="memitem">
173<div class="memproto">
174      <table class="memname">
175        <tr>
176          <td class="memname">void EraseMagCalibrationFromNVM </td>
177          <td>(</td>
178          <td class="paramtype">void&#160;</td>
179          <td class="paramname"></td><td>)</td>
180          <td></td>
181        </tr>
182      </table>
183</div><div class="memdoc">
184
185<p class="definition">Definition at line <a class="el" href="a00770_source.html#l00128">128</a> of file <a class="el" href="a00770_source.html">calibration_storage.c</a>.</p>
186
187<p class="reference">References <a class="el" href="a00578_source.html#l00147">CALIBRATION_NVM_ADDR</a>, <a class="el" href="a00578_source.html#l00153">MAG_NVM_OFFSET</a>, and <a class="el" href="a00815_source.html#l00024">NVM_SetBlockFlash()</a>.</p>
188
189<p class="reference">Referenced by <a class="el" href="a00794_source.html#l00068">DecodeCommandBytes()</a>.</p>
190<div class="dynheader">
191Here is the call graph for this function:</div>
192<div class="dyncontent">
193<div class="center"><img src="a00773_a5004646fd5b485a74892b17e4a3af15b_cgraph.png" border="0" usemap="#a00773_a5004646fd5b485a74892b17e4a3af15b_cgraph" alt=""/></div>
194<map name="a00773_a5004646fd5b485a74892b17e4a3af15b_cgraph" id="a00773_a5004646fd5b485a74892b17e4a3af15b_cgraph">
195<area shape="rect" id="node2" href="a00815.html#ac226b4393abef43297aa13addf70f2f1" title="NVM_SetBlockFlash" alt="" coords="255,29,397,56"/>
196</map>
197</div>
198<div class="dynheader">
199Here is the caller graph for this function:</div>
200<div class="dyncontent">
201<div class="center"><img src="a00773_a5004646fd5b485a74892b17e4a3af15b_icgraph.png" border="0" usemap="#a00773_a5004646fd5b485a74892b17e4a3af15b_icgraph" alt=""/></div>
202<map name="a00773_a5004646fd5b485a74892b17e4a3af15b_icgraph" id="a00773_a5004646fd5b485a74892b17e4a3af15b_icgraph">
203<area shape="rect" id="node2" href="a00794.html#a2d80b68d03de87c2d3cce67273f8a165" title="DecodeCommandBytes" alt="" coords="255,5,413,32"/>
204</map>
205</div>
206
207</div>
208</div>
209<a id="a6cbf0fc4417e3a411a9685e2a92f1816"></a>
210<h2 class="memtitle"><span class="permalink"><a href="#a6cbf0fc4417e3a411a9685e2a92f1816">&#9670;&nbsp;</a></span>SaveAccelCalibrationToNVM()</h2>
211
212<div class="memitem">
213<div class="memproto">
214      <table class="memname">
215        <tr>
216          <td class="memname">void SaveAccelCalibrationToNVM </td>
217          <td>(</td>
218          <td class="paramtype"><a class="el" href="a04047.html">SensorFusionGlobals</a> *&#160;</td>
219          <td class="paramname"><em>sfg</em></td><td>)</td>
220          <td></td>
221        </tr>
222      </table>
223</div><div class="memdoc">
224
225<p class="definition">Definition at line <a class="el" href="a00770_source.html#l00094">94</a> of file <a class="el" href="a00770_source.html">calibration_storage.c</a>.</p>
226
227<p class="reference">References <a class="el" href="a00578_source.html#l00155">ACCEL_NVM_OFFSET</a>, <a class="el" href="a00578_source.html#l00147">CALIBRATION_NVM_ADDR</a>, and <a class="el" href="a00815_source.html#l00024">NVM_SetBlockFlash()</a>.</p>
228
229<p class="reference">Referenced by <a class="el" href="a00794_source.html#l00068">DecodeCommandBytes()</a>.</p>
230<div class="dynheader">
231Here is the call graph for this function:</div>
232<div class="dyncontent">
233<div class="center"><img src="a00773_a6cbf0fc4417e3a411a9685e2a92f1816_cgraph.png" border="0" usemap="#a00773_a6cbf0fc4417e3a411a9685e2a92f1816_cgraph" alt=""/></div>
234<map name="a00773_a6cbf0fc4417e3a411a9685e2a92f1816_cgraph" id="a00773_a6cbf0fc4417e3a411a9685e2a92f1816_cgraph">
235<area shape="rect" id="node2" href="a00815.html#ac226b4393abef43297aa13addf70f2f1" title="NVM_SetBlockFlash" alt="" coords="240,29,383,56"/>
236</map>
237</div>
238<div class="dynheader">
239Here is the caller graph for this function:</div>
240<div class="dyncontent">
241<div class="center"><img src="a00773_a6cbf0fc4417e3a411a9685e2a92f1816_icgraph.png" border="0" usemap="#a00773_a6cbf0fc4417e3a411a9685e2a92f1816_icgraph" alt=""/></div>
242<map name="a00773_a6cbf0fc4417e3a411a9685e2a92f1816_icgraph" id="a00773_a6cbf0fc4417e3a411a9685e2a92f1816_icgraph">
243<area shape="rect" id="node2" href="a00794.html#a2d80b68d03de87c2d3cce67273f8a165" title="DecodeCommandBytes" alt="" coords="240,5,399,32"/>
244</map>
245</div>
246
247</div>
248</div>
249<a id="aa5684d700f135264e542f33071ed6a45"></a>
250<h2 class="memtitle"><span class="permalink"><a href="#aa5684d700f135264e542f33071ed6a45">&#9670;&nbsp;</a></span>SaveGyroCalibrationToNVM()</h2>
251
252<div class="memitem">
253<div class="memproto">
254      <table class="memname">
255        <tr>
256          <td class="memname">void SaveGyroCalibrationToNVM </td>
257          <td>(</td>
258          <td class="paramtype"><a class="el" href="a04047.html">SensorFusionGlobals</a> *&#160;</td>
259          <td class="paramname"><em>sfg</em></td><td>)</td>
260          <td></td>
261        </tr>
262      </table>
263</div><div class="memdoc">
264
265<p class="definition">Definition at line <a class="el" href="a00770_source.html#l00055">55</a> of file <a class="el" href="a00770_source.html">calibration_storage.c</a>.</p>
266
267<p class="reference">References <a class="el" href="a00578_source.html#l00147">CALIBRATION_NVM_ADDR</a>, <a class="el" href="a00917_source.html#l00055">F_6DOF_GY_KALMAN</a>, <a class="el" href="a00578_source.html#l00154">GYRO_NVM_OFFSET</a>, and <a class="el" href="a00815_source.html#l00024">NVM_SetBlockFlash()</a>.</p>
268
269<p class="reference">Referenced by <a class="el" href="a00794_source.html#l00068">DecodeCommandBytes()</a>.</p>
270<div class="dynheader">
271Here is the call graph for this function:</div>
272<div class="dyncontent">
273<div class="center"><img src="a00773_aa5684d700f135264e542f33071ed6a45_cgraph.png" border="0" usemap="#a00773_aa5684d700f135264e542f33071ed6a45_cgraph" alt=""/></div>
274<map name="a00773_aa5684d700f135264e542f33071ed6a45_cgraph" id="a00773_aa5684d700f135264e542f33071ed6a45_cgraph">
275<area shape="rect" id="node2" href="a00815.html#ac226b4393abef43297aa13addf70f2f1" title="NVM_SetBlockFlash" alt="" coords="236,29,379,56"/>
276</map>
277</div>
278<div class="dynheader">
279Here is the caller graph for this function:</div>
280<div class="dyncontent">
281<div class="center"><img src="a00773_aa5684d700f135264e542f33071ed6a45_icgraph.png" border="0" usemap="#a00773_aa5684d700f135264e542f33071ed6a45_icgraph" alt=""/></div>
282<map name="a00773_aa5684d700f135264e542f33071ed6a45_icgraph" id="a00773_aa5684d700f135264e542f33071ed6a45_icgraph">
283<area shape="rect" id="node2" href="a00794.html#a2d80b68d03de87c2d3cce67273f8a165" title="DecodeCommandBytes" alt="" coords="236,5,395,32"/>
284</map>
285</div>
286
287</div>
288</div>
289<a id="ad08799ac63701e755fe2414b32f69b50"></a>
290<h2 class="memtitle"><span class="permalink"><a href="#ad08799ac63701e755fe2414b32f69b50">&#9670;&nbsp;</a></span>SaveMagCalibrationToNVM()</h2>
291
292<div class="memitem">
293<div class="memproto">
294      <table class="memname">
295        <tr>
296          <td class="memname">void SaveMagCalibrationToNVM </td>
297          <td>(</td>
298          <td class="paramtype"><a class="el" href="a04047.html">SensorFusionGlobals</a> *&#160;</td>
299          <td class="paramname"><em>sfg</em></td><td>)</td>
300          <td></td>
301        </tr>
302      </table>
303</div><div class="memdoc">
304
305<p class="definition">Definition at line <a class="el" href="a00770_source.html#l00021">21</a> of file <a class="el" href="a00770_source.html">calibration_storage.c</a>.</p>
306
307<p class="reference">References <a class="el" href="a00578_source.html#l00147">CALIBRATION_NVM_ADDR</a>, <a class="el" href="a00578_source.html#l00153">MAG_NVM_OFFSET</a>, <a class="el" href="a00914_source.html#l00490">SensorFusionGlobals::MagCal</a>, and <a class="el" href="a00815_source.html#l00024">NVM_SetBlockFlash()</a>.</p>
308
309<p class="reference">Referenced by <a class="el" href="a00794_source.html#l00068">DecodeCommandBytes()</a>.</p>
310<div class="dynheader">
311Here is the call graph for this function:</div>
312<div class="dyncontent">
313<div class="center"><img src="a00773_ad08799ac63701e755fe2414b32f69b50_cgraph.png" border="0" usemap="#a00773_ad08799ac63701e755fe2414b32f69b50_cgraph" alt=""/></div>
314<map name="a00773_ad08799ac63701e755fe2414b32f69b50_cgraph" id="a00773_ad08799ac63701e755fe2414b32f69b50_cgraph">
315<area shape="rect" id="node2" href="a00815.html#ac226b4393abef43297aa13addf70f2f1" title="NVM_SetBlockFlash" alt="" coords="232,29,375,56"/>
316</map>
317</div>
318<div class="dynheader">
319Here is the caller graph for this function:</div>
320<div class="dyncontent">
321<div class="center"><img src="a00773_ad08799ac63701e755fe2414b32f69b50_icgraph.png" border="0" usemap="#a00773_ad08799ac63701e755fe2414b32f69b50_icgraph" alt=""/></div>
322<map name="a00773_ad08799ac63701e755fe2414b32f69b50_icgraph" id="a00773_ad08799ac63701e755fe2414b32f69b50_icgraph">
323<area shape="rect" id="node2" href="a00794.html#a2d80b68d03de87c2d3cce67273f8a165" title="DecodeCommandBytes" alt="" coords="232,5,391,32"/>
324</map>
325</div>
326
327</div>
328</div>
329</div><!-- contents -->
330
331<hr class="footer"/><address class="footer"><small>
332&copy; Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause
333</small></address>
334</body>
335</html>
336