2009-12-18 12:58:49 +01:00
<!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" / >
2009-06-01 15:03:09 +02:00
< title > glcd: include/touch.c File Reference< / title >
2009-12-18 12:58:49 +01:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
<!-- Generated by Doxygen 1.6.1 -->
2009-06-01 15:03:09 +02:00
< div class = "navigation" id = "top" >
< div class = "tabs" >
< ul >
< li > < a href = "index.html" > < span > Main Page< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
2009-12-18 12:58:49 +01:00
< div class = "tabs" >
< ul >
< li > < a href = "files.html" > < span > File List< / span > < / a > < / li >
< li > < a href = "globals.html" > < span > Globals< / span > < / a > < / li >
< / ul >
< / div >
2009-06-01 15:03:09 +02:00
< / div >
< div class = "contents" >
2009-12-18 12:58:49 +01:00
< h1 > include/touch.c File Reference< / h1 > < code > #include " < a class = "el" href = "touch_8h_source.html" > touch.h< / a > " < / code > < br / >
2009-06-01 15:03:09 +02:00
< table border = "0" cellpadding = "0" cellspacing = "0" >
2009-12-18 12:58:49 +01:00
< tr > < td colspan = "2" > < h2 > Functions< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > uint8_t < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "touch_8c.html#a215947ded979abf11d490536508ecafc" > touch_is_pressed< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. < a href = "#a215947ded979abf11d490536508ecafc" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > int16_t < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "touch_8c.html#adbea78d45cc89e43f7510ebf6eb01ac0" > touch_readX< / a > ()< / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > int16_t < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "touch_8c.html#acdce8a6997f2d00dbfcb61be2e67e886" > touch_readY< / a > ()< / td > < / tr >
2009-06-01 15:03:09 +02:00
< / table >
2009-12-18 12:58:49 +01:00
< hr / > < h2 > Function Documentation< / h2 >
< a class = "anchor" id = "a215947ded979abf11d490536508ecafc" > < / a > <!-- doxytag: member="touch.c::touch_is_pressed" ref="a215947ded979abf11d490536508ecafc" args="()" -->
2009-06-01 15:03:09 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2009-12-18 12:58:49 +01:00
< td class = "memname" > uint8_t touch_is_pressed < / td >
2009-06-01 15:03:09 +02:00
< td > (< / td >
2010-04-12 15:52:33 +02:00
< td class = "paramtype" > void < / td >
2009-12-18 12:58:49 +01:00
< td class = "paramname" > < / td >
2009-06-01 15:03:09 +02:00
< td > ) < / td >
2009-12-18 12:58:49 +01:00
< td > < / td >
2009-06-01 15:03:09 +02:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2009-12-18 12:58:49 +01:00
< p > This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. < / p >
< p > If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > 1 if pressed else 0 < / dd > < / dl >
2009-06-01 15:03:09 +02:00
< / div >
2009-12-18 12:58:49 +01:00
< / div >
< a class = "anchor" id = "adbea78d45cc89e43f7510ebf6eb01ac0" > < / a > <!-- doxytag: member="touch.c::touch_readX" ref="adbea78d45cc89e43f7510ebf6eb01ac0" args="()" -->
2009-06-01 15:03:09 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2009-12-18 12:58:49 +01:00
< td class = "memname" > int16_t touch_readX < / td >
2009-06-01 15:03:09 +02:00
< td > (< / td >
2010-04-12 15:52:33 +02:00
< td class = "paramtype" > void < / td >
2009-12-18 12:58:49 +01:00
< td class = "paramname" > < / td >
2009-06-01 15:03:09 +02:00
< td > ) < / td >
2009-12-18 12:58:49 +01:00
< td > < / td >
2009-06-01 15:03:09 +02:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< / div >
2009-12-18 12:58:49 +01:00
< / div >
< a class = "anchor" id = "acdce8a6997f2d00dbfcb61be2e67e886" > < / a > <!-- doxytag: member="touch.c::touch_readY" ref="acdce8a6997f2d00dbfcb61be2e67e886" args="()" -->
2009-06-01 15:03:09 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2009-12-18 12:58:49 +01:00
< td class = "memname" > int16_t touch_readY < / td >
2009-06-01 15:03:09 +02:00
< td > (< / td >
2010-04-12 15:52:33 +02:00
< td class = "paramtype" > void < / td >
2009-12-18 12:58:49 +01:00
< td class = "paramname" > < / td >
2009-06-01 15:03:09 +02:00
< td > ) < / td >
2009-12-18 12:58:49 +01:00
< td > < / td >
2009-06-01 15:03:09 +02:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< / div >
< / div >
2009-12-18 12:58:49 +01:00
< / div >
2010-06-27 17:28:15 +02:00
< hr size = "1" / > < address style = "text-align: right;" > < small > Generated on 27 Jun 2010 for glcd by
2009-06-01 15:03:09 +02:00
< a href = "http://www.doxygen.org/index.html" >
2009-12-18 12:58:49 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.6.1 < / small > < / address >
2009-06-01 15:03:09 +02:00
< / body >
< / html >