wacom.h

Go to the documentation of this file.
00001 #ifndef __WACOM_H__
00002 #define __WACOM_H__
00003 
00004 /**
00005  * File Name  : wacom.h
00006  *
00007  * Description: Wacom tables functions
00008  */
00009 
00010 /*
00011  * This file is part of sysd.
00012  *
00013  * sysd is free software: you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation, either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * sysd is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00025  */
00026 
00027 /**
00028  * Copyright (C) 2008 iRex Technologies B.V.
00029  * All rights reserved.
00030  */
00031 
00032 //----------------------------------------------------------------------------
00033 // Include Files
00034 //----------------------------------------------------------------------------
00035 
00036 
00037 G_BEGIN_DECLS
00038 
00039 
00040 //----------------------------------------------------------------------------
00041 // Definitions
00042 //---------------------------------------------------------------------------- 
00043 
00044 
00045 //----------------------------------------------------------------------------
00046 // Forward Declarations
00047 //----------------------------------------------------------------------------
00048 
00049 
00050 //----------------------------------------------------------------------------
00051 // Type Declarations
00052 //----------------------------------------------------------------------------
00053 
00054 
00055 //----------------------------------------------------------------------------
00056 // Global Constants
00057 //----------------------------------------------------------------------------
00058 
00059 
00060 //============================================================================
00061 // Public Functions
00062 //============================================================================
00063 
00064 /**---------------------------------------------------------------------------
00065  *
00066  * Name :  wacom_scan_high
00067  *
00068  * @brief  Set Wacom tablet scanning to high accuracy, increasing power usage
00069  *
00070  * @param  --
00071  *
00072  * @return --
00073  *
00074  *--------------------------------------------------------------------------*/
00075 void wacom_scan_high(void);
00076 
00077 /**---------------------------------------------------------------------------
00078  *
00079  * Name :  wacom_scan_normal
00080  *
00081  * @brief  Normal Wacom tablet scanning, descreasing accuracy and preserving power
00082  *
00083  * @param  --
00084  *
00085  * @return --
00086  *
00087  *--------------------------------------------------------------------------*/
00088 void wacom_scan_normal(void);
00089 
00090 /**---------------------------------------------------------------------------
00091  *
00092  * Name :  wacom_resume
00093  *
00094  * @brief  Enable Wacom tablet, return to normal scanning
00095  *
00096  * @param  --
00097  *
00098  * @return --
00099  *
00100  *--------------------------------------------------------------------------*/
00101 void wacom_resume(void);
00102 
00103 /**---------------------------------------------------------------------------
00104  *
00105  * Name :  wacom_tilt_correction_enable
00106  *
00107  * @brief  Enable/Disable Hardware Tilt Correction algorithm
00108  *
00109  * @param  tilt_enable TRUE to enable correction, FALSE to disable it
00110  *
00111  * @return --
00112  *
00113  *--------------------------------------------------------------------------*/
00114 void wacom_tilt_correction_enable(gboolean tilt_enable);
00115 
00116 /**---------------------------------------------------------------------------
00117  *
00118  * Name :  wacom_suspend
00119  *
00120  * @brief  Suspend Wacom tablet, wakes up when pen detected
00121  *
00122  * @param  --
00123  *
00124  * @return --
00125  *
00126  *--------------------------------------------------------------------------*/
00127 void wacom_suspend(void);
00128 
00129 /**---------------------------------------------------------------------------
00130  *
00131  * Name :  wacom_enable
00132  *
00133  * @brief  Enable Wacom tablet
00134  *
00135  * @param  --
00136  *
00137  * @return --
00138  *
00139  *--------------------------------------------------------------------------*/
00140 void wacom_enable(void);
00141 
00142 /**---------------------------------------------------------------------------
00143  *
00144  * Name :  wacom_disable
00145  *
00146  * @brief  Disable Wacom tablet. No scanning at all.
00147  *
00148  * @param  --
00149  *
00150  * @return --
00151  *
00152  *--------------------------------------------------------------------------*/
00153 void wacom_disable(void);
00154 
00155 /**---------------------------------------------------------------------------
00156  *
00157  * Name :  wacom_reset
00158  *
00159  * @brief  Reset Wacom tablet by toggling hardware reset line.
00160  *
00161  * @param  --
00162  *
00163  * @return --
00164  *
00165  *--------------------------------------------------------------------------*/
00166 void wacom_reset();
00167 
00168 /**---------------------------------------------------------------------------
00169  *
00170  * Name :  wacom_is_enabled
00171  *
00172  * @brief  Query if Wacom tablet is enabled
00173  *
00174  * @param  --
00175  *
00176  * @return TRUE when Wacom tablet is enabled, FALSE otherwise
00177  *
00178  *--------------------------------------------------------------------------*/
00179 gboolean wacom_is_enabled(void);
00180 
00181 G_END_DECLS
00182 
00183 #endif /* __WACOM_H__*/
Generated by  doxygen 1.6.2-20100208