Go to the source code of this file.
Functions | |
G_BEGIN_DECLS void | wacom_scan_high (void) |
Set Wacom tablet scanning to high accuracy, increasing power usage. | |
void | wacom_scan_normal (void) |
Normal Wacom tablet scanning, descreasing accuracy and preserving power. | |
void | wacom_resume (void) |
Enable Wacom tablet, return to normal scanning. | |
void | wacom_tilt_correction_enable (gboolean tilt_enable) |
Enable/Disable Hardware Tilt Correction algorithm. | |
void | wacom_suspend (void) |
Suspend Wacom tablet, wakes up when pen detected. | |
void | wacom_enable (void) |
Enable Wacom tablet. | |
void | wacom_disable (void) |
Disable Wacom tablet. No scanning at all. | |
void | wacom_reset () |
Reset Wacom tablet by toggling hardware reset line. | |
gboolean | wacom_is_enabled (void) |
Query if Wacom tablet is enabled. |
void wacom_disable | ( | void | ) |
Disable Wacom tablet. No scanning at all.
---------------------------------------------------------------------------
Name : wacom_disable
-- |
--------------------------------------------------------------------------
Definition at line 181 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, and sys_set_power().
Referenced by cb_sys_set_stylus(), event_gconf_value_changed(), set_startup_defaults(), and start_demo_mode().
00182 { 00183 LOGPRINTF("entry"); 00184 00185 sys_set_power("wacom", 0); 00186 g_wacom_enabled = FALSE; 00187 }
void wacom_enable | ( | void | ) |
Enable Wacom tablet.
---------------------------------------------------------------------------
Name : wacom_enable
-- |
--------------------------------------------------------------------------
Definition at line 171 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, set_defaults(), and sys_set_power().
Referenced by cb_sys_set_stylus(), event_gconf_value_changed(), set_startup_defaults(), and stop_demo_mode().
00172 { 00173 LOGPRINTF("entry"); 00174 00175 g_wacom_enabled = TRUE; 00176 sys_set_power("wacom", 1); 00177 set_defaults(); 00178 }
gboolean wacom_is_enabled | ( | void | ) |
Query if Wacom tablet is enabled.
---------------------------------------------------------------------------
Name : wacom_is_enabled
-- |
--------------------------------------------------------------------------
Definition at line 200 of file wacom.c.
References g_wacom_enabled.
Referenced by cb_sys_get_stylus(), and do_idle().
00201 { 00202 return g_wacom_enabled; 00203 }
void wacom_reset | ( | ) |
Reset Wacom tablet by toggling hardware reset line.
---------------------------------------------------------------------------
Name : wacom_reset
-- |
--------------------------------------------------------------------------
Definition at line 190 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, set_defaults(), and sys_set_power().
Referenced by do_idle().
00191 { 00192 LOGPRINTF("entry"); 00193 00194 g_wacom_enabled = TRUE; 00195 sys_set_power("wacom_reset", 1); 00196 set_defaults(); 00197 }
void wacom_resume | ( | void | ) |
Enable Wacom tablet, return to normal scanning.
---------------------------------------------------------------------------
Name : wacom_resume
-- |
--------------------------------------------------------------------------
Definition at line 139 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, and WARNPRINTF.
Referenced by cb_sys_set_stylus(), do_idle(), wacom_scan_high(), and wacom_scan_normal().
00140 { 00141 LOGPRINTF("entry"); 00142 if (g_wacom_enabled) 00143 { 00144 // since the wacom switches to writing mode (133pps) automatically, don't do anything 00145 } 00146 else 00147 { 00148 WARNPRINTF("wacom is disabled, mode not changed"); 00149 } 00150 }
G_BEGIN_DECLS void wacom_scan_high | ( | void | ) |
Set Wacom tablet scanning to high accuracy, increasing power usage.
Description: Wacom tables functions Copyright (C) 2008 iRex Technologies B.V. All rights reserved.---------------------------------------------------------------------------
Name : wacom_scan_high
-- |
--------------------------------------------------------------------------
Definition at line 95 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, send_command(), wacom_resume(), and WARNPRINTF.
Referenced by cb_sys_set_stylus(), and set_defaults().
00096 { 00097 LOGPRINTF("entry"); 00098 if (g_wacom_enabled) 00099 { 00100 wacom_resume(); 00101 send_command("sample-133"); 00102 } 00103 else 00104 { 00105 WARNPRINTF("wacom is disabled, mode not changed"); 00106 } 00107 }
void wacom_scan_normal | ( | void | ) |
Normal Wacom tablet scanning, descreasing accuracy and preserving power.
---------------------------------------------------------------------------
Name : wacom_scan_normal
-- |
--------------------------------------------------------------------------
Definition at line 110 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, send_command(), wacom_resume(), and WARNPRINTF.
Referenced by cb_sys_set_stylus().
00111 { 00112 LOGPRINTF("entry"); 00113 if (g_wacom_enabled) 00114 { 00115 wacom_resume(); 00116 send_command("sample-80"); 00117 } 00118 else 00119 { 00120 WARNPRINTF("wacom is disabled, mode not changed"); 00121 } 00122 }
void wacom_suspend | ( | void | ) |
Suspend Wacom tablet, wakes up when pen detected.
---------------------------------------------------------------------------
Name : wacom_suspend
-- |
--------------------------------------------------------------------------
Definition at line 125 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, and WARNPRINTF.
Referenced by cb_sys_set_stylus(), and do_idle().
00126 { 00127 LOGPRINTF("entry"); 00128 if (g_wacom_enabled) 00129 { 00130 // since the wacom switches to normal mode (8pps) automatically, don't do anything 00131 } 00132 else 00133 { 00134 WARNPRINTF("wacom is disabled, mode not changed"); 00135 } 00136 }
void wacom_tilt_correction_enable | ( | gboolean | tilt_enable | ) |
Enable/Disable Hardware Tilt Correction algorithm.
---------------------------------------------------------------------------
Name : wacom_tilt_correction_enable
tilt_enable | TRUE to enable correction, FALSE to disable it |
--------------------------------------------------------------------------
Definition at line 153 of file wacom.c.
References g_wacom_enabled, LOGPRINTF, send_command(), and WARNPRINTF.
Referenced by set_defaults().
00154 { 00155 LOGPRINTF("entry"); 00156 if (g_wacom_enabled && tilt_enable) 00157 { 00158 send_command("tiltcor-on"); 00159 } 00160 else if (g_wacom_enabled && !tilt_enable) 00161 { 00162 send_command("tiltcor-off"); 00163 } 00164 else 00165 { 00166 WARNPRINTF("wacom is disabled, tilt correction not changed"); 00167 } 00168 }