Loading files
c02386ffcThis file is pinned to the selected release. Download the original to open it in your design tool.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Metal Detector: C:/Users/Viktor/Desktop/labaratorni/Projects/Metal_Detector/software/Program/Display/Inc/xpt2046.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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() { init_search(); });
/* @license-end */
</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 id="projectrow">
<td id="projectalign">
<div id="projectname">Metal Detector
</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function(){initNavTree('xpt2046_8h_source.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">xpt2046.h</div></div>
</div><!--header-->
<div class="contents">
<a href="xpt2046_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#ifndef INC_XPT2046_H_</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#define INC_XPT2046_H_</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include "main.h"</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#aea98118d1e469f0fbfdfba294cff3605"> 19</a></span><span class="preprocessor">#define XPT2046_HOR_RES 240 </span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a2fc3b5377626483de59425cd8a02b994"> 20</a></span><span class="preprocessor">#define XPT2046_VER_RES 320 </span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a3a10925bb63aa324d421f02f6a5bc4eb"> 21</a></span><span class="preprocessor">#define XPT2046_MAX_SAMPLES 100 </span></div>
<div class="foldopen" id="foldopen00027" data-start="{" data-end="};">
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93"> 27</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span>{</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93ac9d2a0010859d47a82a76a1a1bbea78f"> 29</a></span> <a class="code hl_enumvalue" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93ac9d2a0010859d47a82a76a1a1bbea78f">XPT2046_PRESSED</a>, </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <a class="code hl_enumvalue" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93acf5c8446658098fdea27f4d2daafde90">XPT2046_NOT_PRESSED</a> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93acf5c8446658098fdea27f4d2daafde90"> 31</a></span>} <a class="code hl_enumeration" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93">XPT2046States_t</a>;</div>
</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="foldopen" id="foldopen00037" data-start="{" data-end="};">
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_calibration_values__t.html"> 37</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>{</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_calibration_values__t.html#a4c3a7376e86bb8874bb528a9ee41cfba"> 39</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="struct_x_p_t2046_calibration_values__t.html#a4c3a7376e86bb8874bb528a9ee41cfba">alpha</a>; </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_calibration_values__t.html#a399beef7978ada8e70a534d61a0664d9"> 40</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="struct_x_p_t2046_calibration_values__t.html#a399beef7978ada8e70a534d61a0664d9">beta</a>; </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_calibration_values__t.html#ace11b5337dbc8eeccb313b373b7cc05f"> 41</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="struct_x_p_t2046_calibration_values__t.html#ace11b5337dbc8eeccb313b373b7cc05f">delta</a>; </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>} <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a>;</div>
</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="};">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_coordinates__t.html"> 48</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>{</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_coordinates__t.html#a79dc4e0f16bef016ce11399187eae0e5"> 50</a></span> uint16_t <a class="code hl_variable" href="struct_x_p_t2046_coordinates__t.html#a79dc4e0f16bef016ce11399187eae0e5">x</a>; </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_coordinates__t.html#abb5b96b6ae3d7529eea6c806def3f05c"> 51</a></span> uint16_t <a class="code hl_variable" href="struct_x_p_t2046_coordinates__t.html#abb5b96b6ae3d7529eea6c806def3f05c">y</a>; </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>} <a class="code hl_struct" href="struct_x_p_t2046_coordinates__t.html">XPT2046Coordinates_t</a>;</div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="foldopen" id="foldopen00058" data-start="{" data-end="};">
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_handle__t.html"> 58</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>{</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_handle__t.html#adf81a624e8e114c5fffe075cced8e18b"> 60</a></span> <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a> <a class="code hl_variable" href="struct_x_p_t2046_handle__t.html#adf81a624e8e114c5fffe075cced8e18b">x_calib_values</a>; </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_handle__t.html#ad716a516ed9bfe04196b58faaa1e448d"> 61</a></span> <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a> <a class="code hl_variable" href="struct_x_p_t2046_handle__t.html#ad716a516ed9bfe04196b58faaa1e448d">y_calib_values</a>; </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_handle__t.html#a6b675e40b5657495240e62f5c6352498"> 62</a></span> <a class="code hl_struct" href="struct_x_p_t2046_coordinates__t.html">XPT2046Coordinates_t</a> <a class="code hl_variable" href="struct_x_p_t2046_handle__t.html#a6b675e40b5657495240e62f5c6352498">last_coor</a>; </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="struct_x_p_t2046_handle__t.html#a70f85b64e580f335ead4b890eb33dc1c"> 63</a></span> <a class="code hl_enumeration" href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93">XPT2046States_t</a> <a class="code hl_variable" href="struct_x_p_t2046_handle__t.html#a70f85b64e580f335ead4b890eb33dc1c">state</a>; </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span>} <a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a>;</div>
</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span>uint8_t <a class="code hl_function" href="xpt2046_8h.html#a5f374117557ebc91972f731193b0c53b">XPT2046_ReadIRQPin</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#a5c86cd53f45aca61018d10e6fdec8077">XPT2046_ReadRawData</a>(uint16_t *x, uint16_t *y);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#ac3f82a653bbc5e8ad1af2c8cba0e9f43">XPT2046_ReadData</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#ac982f8f04f1232de350116b105acdf89">XPT2046_IRQHandler</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle);</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="xpt2046_8h.html#a949b15322aee19f0fccd6d532f2f4ce8"> 108</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#a949b15322aee19f0fccd6d532f2f4ce8">XPT2046_CallBack</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle) <a class="code hl_function" href="ili9341_8c.html#af9aace1b44b73111e15aa39f06f43456">__attribute__</a>((weak));</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#a6ae5fadfb1212ddadaed359d1d4e2148">XPT2046_Calibrate</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#a3ab96b82f46cba442ee66f22e49df612">XPT2046_SetCalibrationValues</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle, <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a> *x_calib, <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a> *y_calib);</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#a7c2a75a4ad227a15aff7bb9942890f20">XPT2046_GetCalibrationValues</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle, <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a> *x_calib, <a class="code hl_struct" href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a> *y_calib);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span><span class="keywordtype">void</span> <a class="code hl_function" href="xpt2046_8h.html#adbbbd9b1e4356685c4a58cb0b9919690">XPT2046_Test</a>(<a class="code hl_struct" href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a> *handle);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="preprocessor">#endif </span><span class="comment">/* INC_XPT2046_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aili9341_8c_html_af9aace1b44b73111e15aa39f06f43456"><div class="ttname"><a href="ili9341_8c.html#af9aace1b44b73111e15aa39f06f43456">__attribute__</a></div><div class="ttdeci">__attribute__((weak))</div><div class="ttdoc">Weak callback function for window fill completion.</div><div class="ttdef"><b>Definition</b> ili9341.c:482</div></div>
<div class="ttc" id="astruct_x_p_t2046_calibration_values__t_html"><div class="ttname"><a href="struct_x_p_t2046_calibration_values__t.html">XPT2046CalibrationValues_t</a></div><div class="ttdoc">Calibration values for XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.h:38</div></div>
<div class="ttc" id="astruct_x_p_t2046_calibration_values__t_html_a399beef7978ada8e70a534d61a0664d9"><div class="ttname"><a href="struct_x_p_t2046_calibration_values__t.html#a399beef7978ada8e70a534d61a0664d9">XPT2046CalibrationValues_t::beta</a></div><div class="ttdeci">float beta</div><div class="ttdef"><b>Definition</b> xpt2046.h:40</div></div>
<div class="ttc" id="astruct_x_p_t2046_calibration_values__t_html_a4c3a7376e86bb8874bb528a9ee41cfba"><div class="ttname"><a href="struct_x_p_t2046_calibration_values__t.html#a4c3a7376e86bb8874bb528a9ee41cfba">XPT2046CalibrationValues_t::alpha</a></div><div class="ttdeci">float alpha</div><div class="ttdef"><b>Definition</b> xpt2046.h:39</div></div>
<div class="ttc" id="astruct_x_p_t2046_calibration_values__t_html_ace11b5337dbc8eeccb313b373b7cc05f"><div class="ttname"><a href="struct_x_p_t2046_calibration_values__t.html#ace11b5337dbc8eeccb313b373b7cc05f">XPT2046CalibrationValues_t::delta</a></div><div class="ttdeci">float delta</div><div class="ttdef"><b>Definition</b> xpt2046.h:41</div></div>
<div class="ttc" id="astruct_x_p_t2046_coordinates__t_html"><div class="ttname"><a href="struct_x_p_t2046_coordinates__t.html">XPT2046Coordinates_t</a></div><div class="ttdoc">Coordinates structure for XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.h:49</div></div>
<div class="ttc" id="astruct_x_p_t2046_coordinates__t_html_a79dc4e0f16bef016ce11399187eae0e5"><div class="ttname"><a href="struct_x_p_t2046_coordinates__t.html#a79dc4e0f16bef016ce11399187eae0e5">XPT2046Coordinates_t::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdef"><b>Definition</b> xpt2046.h:50</div></div>
<div class="ttc" id="astruct_x_p_t2046_coordinates__t_html_abb5b96b6ae3d7529eea6c806def3f05c"><div class="ttname"><a href="struct_x_p_t2046_coordinates__t.html#abb5b96b6ae3d7529eea6c806def3f05c">XPT2046Coordinates_t::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdef"><b>Definition</b> xpt2046.h:51</div></div>
<div class="ttc" id="astruct_x_p_t2046_handle__t_html"><div class="ttname"><a href="struct_x_p_t2046_handle__t.html">XPT2046Handle_t</a></div><div class="ttdoc">Handle structure for XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.h:59</div></div>
<div class="ttc" id="astruct_x_p_t2046_handle__t_html_a6b675e40b5657495240e62f5c6352498"><div class="ttname"><a href="struct_x_p_t2046_handle__t.html#a6b675e40b5657495240e62f5c6352498">XPT2046Handle_t::last_coor</a></div><div class="ttdeci">XPT2046Coordinates_t last_coor</div><div class="ttdef"><b>Definition</b> xpt2046.h:62</div></div>
<div class="ttc" id="astruct_x_p_t2046_handle__t_html_a70f85b64e580f335ead4b890eb33dc1c"><div class="ttname"><a href="struct_x_p_t2046_handle__t.html#a70f85b64e580f335ead4b890eb33dc1c">XPT2046Handle_t::state</a></div><div class="ttdeci">XPT2046States_t state</div><div class="ttdef"><b>Definition</b> xpt2046.h:63</div></div>
<div class="ttc" id="astruct_x_p_t2046_handle__t_html_ad716a516ed9bfe04196b58faaa1e448d"><div class="ttname"><a href="struct_x_p_t2046_handle__t.html#ad716a516ed9bfe04196b58faaa1e448d">XPT2046Handle_t::y_calib_values</a></div><div class="ttdeci">XPT2046CalibrationValues_t y_calib_values</div><div class="ttdef"><b>Definition</b> xpt2046.h:61</div></div>
<div class="ttc" id="astruct_x_p_t2046_handle__t_html_adf81a624e8e114c5fffe075cced8e18b"><div class="ttname"><a href="struct_x_p_t2046_handle__t.html#adf81a624e8e114c5fffe075cced8e18b">XPT2046Handle_t::x_calib_values</a></div><div class="ttdeci">XPT2046CalibrationValues_t x_calib_values</div><div class="ttdef"><b>Definition</b> xpt2046.h:60</div></div>
<div class="ttc" id="axpt2046_8h_html_a3ab96b82f46cba442ee66f22e49df612"><div class="ttname"><a href="xpt2046_8h.html#a3ab96b82f46cba442ee66f22e49df612">XPT2046_SetCalibrationValues</a></div><div class="ttdeci">void XPT2046_SetCalibrationValues(XPT2046Handle_t *handle, XPT2046CalibrationValues_t *x_calib, XPT2046CalibrationValues_t *y_calib)</div><div class="ttdoc">Sets the calibration values for the XPT2046 touch controller.</div><div class="ttdef"><b>Definition</b> xpt2046.c:259</div></div>
<div class="ttc" id="axpt2046_8h_html_a5c86cd53f45aca61018d10e6fdec8077"><div class="ttname"><a href="xpt2046_8h.html#a5c86cd53f45aca61018d10e6fdec8077">XPT2046_ReadRawData</a></div><div class="ttdeci">void XPT2046_ReadRawData(uint16_t *x, uint16_t *y)</div><div class="ttdoc">Reads raw touch data from the XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.c:92</div></div>
<div class="ttc" id="axpt2046_8h_html_a5f374117557ebc91972f731193b0c53b"><div class="ttname"><a href="xpt2046_8h.html#a5f374117557ebc91972f731193b0c53b">XPT2046_ReadIRQPin</a></div><div class="ttdeci">uint8_t XPT2046_ReadIRQPin(void)</div><div class="ttdoc">Reads the IRQ pin state of the XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.c:39</div></div>
<div class="ttc" id="axpt2046_8h_html_a68e91fd53f710f15fd01bd7bc9bcba93"><div class="ttname"><a href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93">XPT2046States_t</a></div><div class="ttdeci">XPT2046States_t</div><div class="ttdoc">Touch states for XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.h:28</div></div>
<div class="ttc" id="axpt2046_8h_html_a68e91fd53f710f15fd01bd7bc9bcba93ac9d2a0010859d47a82a76a1a1bbea78f"><div class="ttname"><a href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93ac9d2a0010859d47a82a76a1a1bbea78f">XPT2046_PRESSED</a></div><div class="ttdeci">@ XPT2046_PRESSED</div><div class="ttdef"><b>Definition</b> xpt2046.h:29</div></div>
<div class="ttc" id="axpt2046_8h_html_a68e91fd53f710f15fd01bd7bc9bcba93acf5c8446658098fdea27f4d2daafde90"><div class="ttname"><a href="xpt2046_8h.html#a68e91fd53f710f15fd01bd7bc9bcba93acf5c8446658098fdea27f4d2daafde90">XPT2046_NOT_PRESSED</a></div><div class="ttdeci">@ XPT2046_NOT_PRESSED</div><div class="ttdef"><b>Definition</b> xpt2046.h:30</div></div>
<div class="ttc" id="axpt2046_8h_html_a6ae5fadfb1212ddadaed359d1d4e2148"><div class="ttname"><a href="xpt2046_8h.html#a6ae5fadfb1212ddadaed359d1d4e2148">XPT2046_Calibrate</a></div><div class="ttdeci">void XPT2046_Calibrate(XPT2046Handle_t *handle)</div><div class="ttdoc">Calibrates the XPT2046 touch controller.</div><div class="ttdef"><b>Definition</b> xpt2046.c:184</div></div>
<div class="ttc" id="axpt2046_8h_html_a7c2a75a4ad227a15aff7bb9942890f20"><div class="ttname"><a href="xpt2046_8h.html#a7c2a75a4ad227a15aff7bb9942890f20">XPT2046_GetCalibrationValues</a></div><div class="ttdeci">void XPT2046_GetCalibrationValues(XPT2046Handle_t *handle, XPT2046CalibrationValues_t *x_calib, XPT2046CalibrationValues_t *y_calib)</div><div class="ttdoc">Gets the calibration values from the XPT2046 touch controller.</div><div class="ttdef"><b>Definition</b> xpt2046.c:275</div></div>
<div class="ttc" id="axpt2046_8h_html_a949b15322aee19f0fccd6d532f2f4ce8"><div class="ttname"><a href="xpt2046_8h.html#a949b15322aee19f0fccd6d532f2f4ce8">XPT2046_CallBack</a></div><div class="ttdeci">void XPT2046_CallBack(XPT2046Handle_t *handle) __attribute__((weak))</div><div class="ttdoc">Callback function for the XPT2046 touch controller.</div></div>
<div class="ttc" id="axpt2046_8h_html_ac3f82a653bbc5e8ad1af2c8cba0e9f43"><div class="ttname"><a href="xpt2046_8h.html#ac3f82a653bbc5e8ad1af2c8cba0e9f43">XPT2046_ReadData</a></div><div class="ttdeci">void XPT2046_ReadData(XPT2046Handle_t *handle)</div><div class="ttdoc">Reads calibrated touch coordinates from the XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.c:53</div></div>
<div class="ttc" id="axpt2046_8h_html_ac982f8f04f1232de350116b105acdf89"><div class="ttname"><a href="xpt2046_8h.html#ac982f8f04f1232de350116b105acdf89">XPT2046_IRQHandler</a></div><div class="ttdeci">void XPT2046_IRQHandler(XPT2046Handle_t *handle)</div><div class="ttdoc">Handles touch interrupt for the XPT2046.</div><div class="ttdef"><b>Definition</b> xpt2046.c:158</div></div>
<div class="ttc" id="axpt2046_8h_html_adbbbd9b1e4356685c4a58cb0b9919690"><div class="ttname"><a href="xpt2046_8h.html#adbbbd9b1e4356685c4a58cb0b9919690">XPT2046_Test</a></div><div class="ttdeci">void XPT2046_Test(XPT2046Handle_t *handle)</div><div class="ttdoc">Tests the XPT2046 touch controller.</div><div class="ttdef"><b>Definition</b> xpt2046.c:290</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_24817a301ba3256d5cc3ff5fb28dbe0b.html">Display</a></li><li class="navelem"><a class="el" href="dir_57dcd621aec18e7df89f0d7d04c543e2.html">Inc</a></li><li class="navelem"><a class="el" href="xpt2046_8h.html">xpt2046.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0 </li>
</ul>
</div>
</body>
</html>