Files
discoverpixy/touch_8h_source.html
2015-06-08 11:04:50 +02:00

212 lines
33 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.9.1"/>
<title>discoverpixy: common/touch/touch.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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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 style="padding-left: 0.5em;">
<div id="projectname">discoverpixy
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="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.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</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_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_5668dfef4710d48cd9d7316a574bf987.html">touch</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">touch.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="touch_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>&#160;<span class="comment">/**************************************************************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">* Project: discoverpixy</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* Website: https://github.com/t-moe/discoverpixy</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">* Authors: Aaron Schmocker, Timo Lang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">* Institution: BFH Bern University of Applied Sciences</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* File: common/touch/touch.h</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">* Version History:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">* Date Autor Email SHA Changes</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">* 2015-04-03 timolang@gmail.com 51089aa Refactored Project Structure for use with emulator</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">* 2015-04-27 timolang@gmail.com 259d446 Added touch support to emulator. Implemented basic touch function.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">* 2015-04-27 timolang@gmail.com cf72baa Introduced a Screen (sub) module and divided app into multiple screens.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">* 2015-05-02 timolang@gmail.com 3281616 Added some more touch functions. Improved pixy test. Drag the Image around!</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">* 2015-05-11 timolang@gmail.com a175a2f Added doxygen docu for touch module</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">* 2015-05-11 timolang@gmail.com 08d9fe0 More work on doxygen module structure</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">* 2015-05-12 timolang@gmail.com 1402598 Added doxygen stuff for button module and some minor changes to touch, screen_main and tft module.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">* 2015-05-15 timolang@gmail.com 9a16865 Added doxgen comments to filesyste, checkbox, numupdown and screen module. And some minor changes to the other modules.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">* 2015-06-01 timolang@gmail.com 06227da Added calibrate screen (WIP). fixed bug in emulator drawing.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">* 2015-06-01 timolang@gmail.com eb573bc Finalized calibration. Fixed a bug in screen module.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">**************************************************************************************************************************************/</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#ifndef TOUCH_H</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define TOUCH_H</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include&lt;stdbool.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include&lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="group__touch.html#gaf9cbd5f564fae35ce693c446ca8bdd9e"> 43</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__touch.html#ggaf9cbd5f564fae35ce693c446ca8bdd9ea90884c2f9baa25f5107bfa334297fce3"> 44</a></span>&#160; <a class="code" href="group__touch.html#ggaf9cbd5f564fae35ce693c446ca8bdd9ea90884c2f9baa25f5107bfa334297fce3">TOUCH_UP</a>, </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="group__touch.html#ggaf9cbd5f564fae35ce693c446ca8bdd9ea9b9626b3c6c2fb5d2731f3751a0f42d5"> 45</a></span>&#160; <a class="code" href="group__touch.html#ggaf9cbd5f564fae35ce693c446ca8bdd9ea9b9626b3c6c2fb5d2731f3751a0f42d5">TOUCH_DOWN</a> </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;} <a class="code" href="group__touch.html#gaf9cbd5f564fae35ce693c446ca8bdd9e">TOUCH_STATE</a> ;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768"> 52</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ac157bdf0b85a40d2619cbc8bc1ae5fe2"> 53</a></span>&#160; <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a> = 0x00, </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d"> 54</a></span>&#160; <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d">PEN_DOWN</a> = 0x01, </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810"> 55</a></span>&#160; <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a> = 0x02, </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a"> 56</a></span>&#160; <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a">PEN_ENTER</a> = 0x04, </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753"> 57</a></span>&#160; <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753">PEN_LEAVE</a> = 0x08, </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647"> 58</a></span>&#160; <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647">PEN_MOVE</a> = 0x10 </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;} <a class="code" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="group__touch.html#ga6150d318348792e4c90c9047f88df158"> 67</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group__touch.html#ga6150d318348792e4c90c9047f88df158">TOUCH_CALLBACK</a>)(<span class="keywordtype">void</span>* touchArea, <a class="code" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a> triggeredAction);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html"> 72</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4"> 73</a></span>&#160; <a class="code" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a> <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4">hookedActions</a>; </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753"> 74</a></span>&#160; uint16_t <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a>; </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255"> 75</a></span>&#160; uint16_t <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a>; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7"> 76</a></span>&#160; uint16_t <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a>; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204"> 77</a></span>&#160; uint16_t <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a>; </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37"> 78</a></span>&#160; <a class="code" href="group__touch.html#ga6150d318348792e4c90c9047f88df158">TOUCH_CALLBACK</a> <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37">callback</a>; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa2585d779da0ab21273a8d92de9a0ebe"> 79</a></span>&#160; uint8_t <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa2585d779da0ab21273a8d92de9a0ebe">flags</a>; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;} <a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="struct_p_o_i_n_t___s_t_r_u_c_t.html"> 86</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960"> 87</a></span>&#160; uint16_t <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30"> 88</a></span>&#160; uint16_t <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a>; </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;} <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__touch.html#ga0ff491e3e07321fef794d4f07b103c0f">touch_init</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__touch.html#gaa440ed2415b6d37efa1ecf36cc9637f0">touch_add_raw_event</a>(uint16_t x, uint16_t y, <a class="code" href="group__touch.html#gaf9cbd5f564fae35ce693c446ca8bdd9e">TOUCH_STATE</a> <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a>);</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__touch.html#gad32e5d122ec3f5f88bc6b2d9f4a629f8">touch_have_empty</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> num);</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741">touch_register_area</a>(<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a>* area);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a>(<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a>* area);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__touch.html#gacc714477cb936ab22e00904a69bbc022">touch_set_calibration_values</a>(<span class="keywordtype">int</span> xs, <span class="keywordtype">int</span> dx, <span class="keywordtype">int</span> ys, <span class="keywordtype">int</span> dy);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__touch.html#gaba794e030c65354b244dc264ed04dfdd">touch_set_value_convert_mode</a>(<span class="keywordtype">bool</span> <a class="code" href="touch_8c.html#aada9c4e98a37ca59cdbbdbdda4904eb8">use_calibration</a>);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* TOUCH_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="group__touch_html_gab6037f32eebdf297a7d601a1e6c87768"><div class="ttname"><a href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a></div><div class="ttdeci">TOUCH_ACTION</div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00052">touch.h:52</a></div></div>
<div class="ttc" id="group__touch_html_ga3adc36f55b7475b3f652c38c0e23d741"><div class="ttname"><a href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741">touch_register_area</a></div><div class="ttdeci">bool touch_register_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00181">touch.c:181</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647">PEN_MOVE</a></div><div class="ttdoc">Receive an event when the pen moves inside the region (pen is down) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00058">touch.h:58</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d">PEN_DOWN</a></div><div class="ttdoc">Receive an event when the pen goes down inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00054">touch.h:54</a></div></div>
<div class="ttc" id="group__touch_html_ga6150d318348792e4c90c9047f88df158"><div class="ttname"><a href="group__touch.html#ga6150d318348792e4c90c9047f88df158">TOUCH_CALLBACK</a></div><div class="ttdeci">void(* TOUCH_CALLBACK)(void *touchArea, TOUCH_ACTION triggeredAction)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00067">touch.h:67</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a></div><div class="ttdoc">Receive an event when the pen goes up inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00055">touch.h:55</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a47ada631c22a9d40348069145654f255"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">TOUCH_AREA_STRUCT::y1</a></div><div class="ttdeci">uint16_t y1</div><div class="ttdoc">Top Left Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00075">touch.h:75</a></div></div>
<div class="ttc" id="struct_p_o_i_n_t___s_t_r_u_c_t_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">POINT_STRUCT::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdoc">The Y-Coordinate of the point. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00088">touch.h:88</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aa2585d779da0ab21273a8d92de9a0ebe"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa2585d779da0ab21273a8d92de9a0ebe">TOUCH_AREA_STRUCT::flags</a></div><div class="ttdeci">uint8_t flags</div><div class="ttdoc">For internal use, don&#39;t change, don&#39;t initialize. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00079">touch.h:79</a></div></div>
<div class="ttc" id="struct_p_o_i_n_t___s_t_r_u_c_t_html_a4dde988b1b2adba65ae3efa69f65d960"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">POINT_STRUCT::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdoc">The X-Coordinate of the point. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00087">touch.h:87</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aedb5fdfe3c1d1a915b668ba7f3950753"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">TOUCH_AREA_STRUCT::x1</a></div><div class="ttdeci">uint16_t x1</div><div class="ttdoc">Top Left X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00074">touch.h:74</a></div></div>
<div class="ttc" id="group__touch_html_gaa7d6cd569335d0ddfc9eeab479f3a0a8"><div class="ttname"><a href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a></div><div class="ttdeci">void touch_unregister_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00195">touch.c:195</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00072">touch.h:72</a></div></div>
<div class="ttc" id="group__touch_html_gaa440ed2415b6d37efa1ecf36cc9637f0"><div class="ttname"><a href="group__touch.html#gaa440ed2415b6d37efa1ecf36cc9637f0">touch_add_raw_event</a></div><div class="ttdeci">bool touch_add_raw_event(uint16_t x, uint16_t y, TOUCH_STATE state)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00072">touch.c:72</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aa377184ba406b3f0c4ac18c935378204"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">TOUCH_AREA_STRUCT::y2</a></div><div class="ttdeci">uint16_t y2</div><div class="ttdoc">Bottom Right Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00077">touch.h:77</a></div></div>
<div class="ttc" id="group__touch_html_ggaf9cbd5f564fae35ce693c446ca8bdd9ea90884c2f9baa25f5107bfa334297fce3"><div class="ttname"><a href="group__touch.html#ggaf9cbd5f564fae35ce693c446ca8bdd9ea90884c2f9baa25f5107bfa334297fce3">TOUCH_UP</a></div><div class="ttdoc">The display is currently not touched. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00044">touch.h:44</a></div></div>
<div class="ttc" id="group__touch_html_ggaf9cbd5f564fae35ce693c446ca8bdd9ea9b9626b3c6c2fb5d2731f3751a0f42d5"><div class="ttname"><a href="group__touch.html#ggaf9cbd5f564fae35ce693c446ca8bdd9ea9b9626b3c6c2fb5d2731f3751a0f42d5">TOUCH_DOWN</a></div><div class="ttdoc">The display is currently touched at some point. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00045">touch.h:45</a></div></div>
<div class="ttc" id="screen__photomode__save_8c_html_a5b355141d49e5da4140613bd88d73549"><div class="ttname"><a href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></div><div class="ttdeci">static enum @0 state</div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a4b44f431c154678005298b0f0618cd37"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37">TOUCH_AREA_STRUCT::callback</a></div><div class="ttdeci">TOUCH_CALLBACK callback</div><div class="ttdoc">Callback which is executed when an event occurred in this Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00078">touch.h:78</a></div></div>
<div class="ttc" id="group__touch_html_gaba794e030c65354b244dc264ed04dfdd"><div class="ttname"><a href="group__touch.html#gaba794e030c65354b244dc264ed04dfdd">touch_set_value_convert_mode</a></div><div class="ttdeci">void touch_set_value_convert_mode(bool use_calibration)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00066">touch.c:66</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_ac5bc000f8954f38b7a641a485a26bae7"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">TOUCH_AREA_STRUCT::x2</a></div><div class="ttdeci">uint16_t x2</div><div class="ttdoc">Bottom Right X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00076">touch.h:76</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a">PEN_ENTER</a></div><div class="ttdoc">Receive an event when the pen enters the region (pen was down before) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00056">touch.h:56</a></div></div>
<div class="ttc" id="group__touch_html_ga42b918ead4f536a63f79601ab2978227"><div class="ttname"><a href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a></div><div class="ttdeci">POINT_STRUCT touch_get_last_point()</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00211">touch.c:211</a></div></div>
<div class="ttc" id="touch_8c_html_aada9c4e98a37ca59cdbbdbdda4904eb8"><div class="ttname"><a href="touch_8c.html#aada9c4e98a37ca59cdbbdbdda4904eb8">use_calibration</a></div><div class="ttdeci">bool use_calibration</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00042">touch.c:42</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a4026095999c2fd7a91f9bb91390647a4"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4">TOUCH_AREA_STRUCT::hookedActions</a></div><div class="ttdeci">TOUCH_ACTION hookedActions</div><div class="ttdoc">Actions to listen to. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00073">touch.h:73</a></div></div>
<div class="ttc" id="struct_p_o_i_n_t___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00086">touch.h:86</a></div></div>
<div class="ttc" id="group__touch_html_gaf9cbd5f564fae35ce693c446ca8bdd9e"><div class="ttname"><a href="group__touch.html#gaf9cbd5f564fae35ce693c446ca8bdd9e">TOUCH_STATE</a></div><div class="ttdeci">TOUCH_STATE</div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00043">touch.h:43</a></div></div>
<div class="ttc" id="group__touch_html_gad32e5d122ec3f5f88bc6b2d9f4a629f8"><div class="ttname"><a href="group__touch.html#gad32e5d122ec3f5f88bc6b2d9f4a629f8">touch_have_empty</a></div><div class="ttdeci">bool touch_have_empty(unsigned char num)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00165">touch.c:165</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768ac157bdf0b85a40d2619cbc8bc1ae5fe2"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a></div><div class="ttdoc">Do not receive any events. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00053">touch.h:53</a></div></div>
<div class="ttc" id="group__touch_html_gacc714477cb936ab22e00904a69bbc022"><div class="ttname"><a href="group__touch.html#gacc714477cb936ab22e00904a69bbc022">touch_set_calibration_values</a></div><div class="ttdeci">void touch_set_calibration_values(int xs, int dx, int ys, int dy)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00051">touch.c:51</a></div></div>
<div class="ttc" id="group__touch_html_ga0ff491e3e07321fef794d4f07b103c0f"><div class="ttname"><a href="group__touch.html#ga0ff491e3e07321fef794d4f07b103c0f">touch_init</a></div><div class="ttdeci">bool touch_init()</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00061">touch.c:61</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753">PEN_LEAVE</a></div><div class="ttdoc">Receive an event when the pen leaves the region (pen was inside region before) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00057">touch.h:57</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jun 8 2015 11:01:18 for discoverpixy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>