mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
82 lines
15 KiB
HTML
82 lines
15 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.13"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Chameleon-Mini: Configuration.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Chameleon-Mini
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.13 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_74b6a3b63f61c160c0f14b7a283a4c9b.html">Firmware</a></li><li class="navelem"><a class="el" href="dir_8465ec698d237f801ae9966d4551fcfa.html">Chameleon-Mini</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Configuration.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_configuration_8h.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"> * Standards.h</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Created on: 15.02.2013</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Author: skuser</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#ifndef STANDARDS_H_</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#define STANDARDS_H_</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <stdint.h></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <stdbool.h></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">#define CONFIGURATION_NAME_LENGTH_MAX 32</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define CONFIGURATION_UID_SIZE_MAX 16</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="keyword">typedef</span> uint8_t ConfigurationUidType[CONFIGURATION_UID_SIZE_MAX];</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="comment">/* This HAS to be the first element */</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  CONFIG_NONE = 0,</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifdef CONFIG_MF_ULTRALIGHT_SUPPORT</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  CONFIG_MF_ULTRALIGHT,</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  CONFIG_MF_ULTRALIGHT_EV1_80B,</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  CONFIG_MF_ULTRALIGHT_EV1_164B,</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#ifdef CONFIG_MF_CLASSIC_1K_SUPPORT</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  CONFIG_MF_CLASSIC_1K,</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#ifdef CONFIG_MF_CLASSIC_1K_7B_SUPPORT</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  CONFIG_MF_CLASSIC_1K_7B,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#ifdef CONFIG_MF_CLASSIC_4K_SUPPORT</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  CONFIG_MF_CLASSIC_4K,</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#ifdef CONFIG_MF_CLASSIC_4K_7B_SUPPORT</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  CONFIG_MF_CLASSIC_4K_7B,</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#ifdef CONFIG_ISO14443A_SNIFF_SUPPORT</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  CONFIG_ISO14443A_SNIFF,</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#ifdef CONFIG_ISO14443A_READER_SUPPORT</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  CONFIG_ISO14443A_READER,</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">/* This HAS to be the last element */</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  CONFIG_COUNT</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> } ConfigurationEnum;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="struct_configuration_type.html"> 51</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a2e62a9c3c9361a09c94505dff5820a9b"> 59</a></span>  void (*CodecInitFunc) (void);</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a2b3fe0c8c0643102a8f07157fa0265f7"> 61</a></span>  void (*CodecDeInitFunc) (void);</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#afcabcce06f07798a43b95d0cf4d05db2"> 65</a></span>  void (*CodecTaskFunc) (void);</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a835db40b131727b32d732585e8984d4a"> 77</a></span>  void (*ApplicationInitFunc) (void);</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#abcb24589b62d04a8aa3e7d129e87e239"> 79</a></span>  void (*ApplicationResetFunc) (void);</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a9e695aaf0fd0bb6e5165b23c654e9346"> 81</a></span>  void (*ApplicationTaskFunc) (void);</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a902e157e8657cd7bb2ef5211c1a6bc58"> 83</a></span>  void (*ApplicationTickFunc) (void);</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a12036017f3f9e7a0c6a168539e262571"> 95</a></span>  uint16_t (*ApplicationProcessFunc) (uint8_t* ByteBuffer, uint16_t BitCount);</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a9d31886f03ebf75d59611b7dbe81aeca"> 100</a></span>  void (*ApplicationGetUidFunc) (ConfigurationUidType Uid);</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#afd1eeffbd4b0aeab57449e57f67cd400"> 105</a></span>  void (*ApplicationSetUidFunc) (ConfigurationUidType Uid);</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#a53854068c955c57a0a564bc9f7b16dd7"> 116</a></span>  uint16_t <a class="code" href="struct_configuration_type.html#a53854068c955c57a0a564bc9f7b16dd7">MemorySize</a>;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#ac730d8b9dc9e728bb10069ea1917d99f"> 122</a></span>  uint8_t <a class="code" href="struct_configuration_type.html#ac730d8b9dc9e728bb10069ea1917d99f">UidSize</a>;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="struct_configuration_type.html#af1ed4e624b9bd8cb65743b5cbc0be2bf"> 126</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_configuration_type.html#af1ed4e624b9bd8cb65743b5cbc0be2bf">ReadOnly</a>;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> } <a class="code" href="struct_configuration_type.html">ConfigurationType</a>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">extern</span> <a class="code" href="struct_configuration_type.html">ConfigurationType</a> ActiveConfiguration;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> ConfigurationInit(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordtype">void</span> ConfigurationSetById(ConfigurationEnum Configuration);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keywordtype">void</span> ConfigurationGetByName(<span class="keywordtype">char</span>* Configuration, uint16_t BufferSize);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keywordtype">bool</span> ConfigurationSetByName(<span class="keyword">const</span> <span class="keywordtype">char</span>* Configuration);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">void</span> ConfigurationGetList(<span class="keywordtype">char</span>* ConfigurationList, uint16_t BufferSize);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#endif </span><span class="comment">/* STANDARDS_H_ */</span><span class="preprocessor"></span></div><div class="ttc" id="struct_configuration_type_html_a53854068c955c57a0a564bc9f7b16dd7"><div class="ttname"><a href="struct_configuration_type.html#a53854068c955c57a0a564bc9f7b16dd7">ConfigurationType::MemorySize</a></div><div class="ttdeci">uint16_t MemorySize</div><div class="ttdef"><b>Definition:</b> Configuration.h:116</div></div>
|
|
<div class="ttc" id="struct_configuration_type_html"><div class="ttname"><a href="struct_configuration_type.html">ConfigurationType</a></div><div class="ttdef"><b>Definition:</b> Configuration.h:51</div></div>
|
|
<div class="ttc" id="struct_configuration_type_html_af1ed4e624b9bd8cb65743b5cbc0be2bf"><div class="ttname"><a href="struct_configuration_type.html#af1ed4e624b9bd8cb65743b5cbc0be2bf">ConfigurationType::ReadOnly</a></div><div class="ttdeci">bool ReadOnly</div><div class="ttdef"><b>Definition:</b> Configuration.h:126</div></div>
|
|
<div class="ttc" id="struct_configuration_type_html_ac730d8b9dc9e728bb10069ea1917d99f"><div class="ttname"><a href="struct_configuration_type.html#ac730d8b9dc9e728bb10069ea1917d99f">ConfigurationType::UidSize</a></div><div class="ttdeci">uint8_t UidSize</div><div class="ttdef"><b>Definition:</b> Configuration.h:122</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Wed Jan 17 2018 21:05:32 for Chameleon-Mini by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.13
|
|
</small></address>
|
|
</body>
|
|
</html>
|