wacom.h File Reference

This graph shows which files directly or indirectly include this file:

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.

Function Documentation

void wacom_disable ( void   ) 

Disable Wacom tablet. No scanning at all.

---------------------------------------------------------------------------

Name : wacom_disable

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wacom_enable ( void   ) 

Enable Wacom tablet.

---------------------------------------------------------------------------

Name : wacom_enable

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean wacom_is_enabled ( void   ) 

Query if Wacom tablet is enabled.

---------------------------------------------------------------------------

Name : wacom_is_enabled

Parameters:
-- 
Returns:
TRUE when Wacom tablet is enabled, FALSE otherwise

--------------------------------------------------------------------------

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 }

Here is the caller graph for this function:

void wacom_reset (  ) 

Reset Wacom tablet by toggling hardware reset line.

---------------------------------------------------------------------------

Name : wacom_reset

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wacom_resume ( void   ) 

Enable Wacom tablet, return to normal scanning.

---------------------------------------------------------------------------

Name : wacom_resume

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the caller graph for this function:

G_BEGIN_DECLS void wacom_scan_high ( void   ) 

Set Wacom tablet scanning to high accuracy, increasing power usage.

File Name : wacom.h

Description: Wacom tables functions Copyright (C) 2008 iRex Technologies B.V. All rights reserved.---------------------------------------------------------------------------

Name : wacom_scan_high

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wacom_scan_normal ( void   ) 

Normal Wacom tablet scanning, descreasing accuracy and preserving power.

---------------------------------------------------------------------------

Name : wacom_scan_normal

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wacom_suspend ( void   ) 

Suspend Wacom tablet, wakes up when pen detected.

---------------------------------------------------------------------------

Name : wacom_suspend

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the caller graph for this function:

void wacom_tilt_correction_enable ( gboolean  tilt_enable  ) 

Enable/Disable Hardware Tilt Correction algorithm.

---------------------------------------------------------------------------

Name : wacom_tilt_correction_enable

Parameters:
tilt_enable TRUE to enable correction, FALSE to disable it
Returns:
--

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  doxygen 1.6.2-20100208