pageBar/src/displayUpdate.h File Reference

#include <fcntl.h>
#include <sys/ioctl.h>
#include <config.h>
#include <stdio.h>
#include <unistd.h>

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

Go to the source code of this file.

Classes

struct  coordinates
struct  point_info
struct  transfer_buffer
struct  display_update_info
struct  brush_draw_info_obsolete
struct  brush_draw_info

Defines

#define WAVEFORM_SIZE   (128*1024)
#define FBIO_IOCTL_BASE   'v'
#define FBIO_DISPLAY   _IOW(FBIO_IOCTL_BASE, 1, struct display_update_info)
#define FBIO_ERASE_WHITE   _IOW(FBIO_IOCTL_BASE, 2, struct display_update_info)
#define FBIO_DRAWPIXELS   _IOW(FBIO_IOCTL_BASE, 3, struct transfer_buffer)
#define FBIO_DRAW_BRUSH   _IOW(FBIO_IOCTL_BASE, 4, struct brush_draw_info_obsolete)
#define FBIO_REDRAW   _IOW(FBIO_IOCTL_BASE, 5, struct display_update_info)
#define FBIO_UPLOAD_WAVEFORM   _IOC(_IOC_WRITE, FBIO_IOCTL_BASE, 6, WAVEFORM_SIZE)
#define FBIO_UPLOAD_BRUSH   _IO(FBIO_IOCTL_BASE, 7)
#define FBIO_DRAW_BUBBLE   _IOW(FBIO_IOCTL_BASE, 8, struct brush_draw_info_obsolete)
#define FBIO_DRAW_BRUSH_GENERIC   _IOW(FBIO_IOCTL_BASE, 9, struct brush_draw_info)
#define WAVEFORM_2BPP_IMAGE   0
#define WAVEFORM_4BPP_IMAGE   1
#define WAVEFORM_DRAW   4
#define WAVEFORM_FAST_BLACK_WHITE   6
#define WAVEFORM_TYPING   9
#define HARDWARE_V3   1
#define ESTIMATED_BOOT_TIME   (39)
#define ESTIMATED_BOOT_JIFFIES   (ESTIMATED_BOOT_TIME * 100)
#define BOOT_PROGRESS_STEPS   (18)
#define BOOT_PROGRESS_START_STEP   (0)
#define PROGRESS_STEP_JIFFIES   (ESTIMATED_BOOT_JIFFIES / (BOOT_PROGRESS_STEPS - BOOT_PROGRESS_START_STEP))
#define BLACK_CURSOR_X   0
#define BLACK_CURSOR_Y   24
#define BLACK_CURSOR_SIZE_X   114
#define BLACK_CURSOR_SIZE_Y   24
#define WHITE_CURSOR_X   0
#define WHITE_CURSOR_Y   0
#define WHITE_CURSOR_SIZE_X   114
#define WHITE_CURSOR_SIZE_Y   24
#define BLACK_BUBBLE_X   102
#define BLACK_BUBBLE_Y   49
#define BLACK_BUBBLE_SIZE_X   7
#define BLACK_BUBBLE_SIZE_Y   7
#define WHITE_BUBBLE_X   21
#define WHITE_BUBBLE_Y   49
#define WHITE_BUBBLE_SIZE_X   7
#define WHITE_BUBBLE_SIZE_Y   7
#define PROGRESS_BLOCK_BWHITE_X   118
#define PROGRESS_BLOCK_BWHITE_Y   22
#define PROGRESS_BLOCK_BWHITE_SIZE_X   19
#define PROGRESS_BLOCK_BWHITE_SIZE_Y   36
#define PROGRESS_BLOCK_WHITE_X   138
#define PROGRESS_BLOCK_WHITE_Y   22
#define PROGRESS_BLOCK_WHITE_SIZE_X   19
#define PROGRESS_BLOCK_WHITE_SIZE_Y   36
#define PROGRESS_BLOCK_BLACK_X   159
#define PROGRESS_BLOCK_BLACK_Y   22
#define PROGRESS_BLOCK_BLACK_SIZE_X   19
#define PROGRESS_BLOCK_BLACK_SIZE_Y   36
#define WHITE_BRUSH_X   1
#define LGRAY_BRUSH_X   28
#define DGRAY_BRUSH_X   55
#define BLACK_BRUSH_X   82
#define BRUSH_Y   49
#define MAX_BRUSH_SIZE   6
#define WHITE   0
#define LIGHT_GRAY   1
#define DARK_GRAY   2
#define BLACK   3
#define PIXELBUFSIZE   25
#define LOWEST_LEVEL   0
#define MAIN_WINDOW_EXPOSE_LEVEL   1
#define MOZEMBED_UPDATE_LEVEL   2
#define DM_QUALITY_FULL   0
#define DM_QUALITY_TYPING   2

Typedefs

typedef unsigned short u16

Functions

gboolean display_update_request_screen_refresh (int level, gpointer data)
void display_update_increase_level (int level)


Define Documentation

#define BLACK   3

Definition at line 167 of file displayUpdate.h.

#define BLACK_BRUSH_X   82

Definition at line 158 of file displayUpdate.h.

#define BLACK_BUBBLE_SIZE_X   7

Definition at line 131 of file displayUpdate.h.

#define BLACK_BUBBLE_SIZE_Y   7

Definition at line 132 of file displayUpdate.h.

#define BLACK_BUBBLE_X   102

Definition at line 129 of file displayUpdate.h.

#define BLACK_BUBBLE_Y   49

Definition at line 130 of file displayUpdate.h.

#define BLACK_CURSOR_SIZE_X   114

Definition at line 121 of file displayUpdate.h.

#define BLACK_CURSOR_SIZE_Y   24

Definition at line 122 of file displayUpdate.h.

#define BLACK_CURSOR_X   0

Definition at line 119 of file displayUpdate.h.

#define BLACK_CURSOR_Y   24

Definition at line 120 of file displayUpdate.h.

#define BOOT_PROGRESS_START_STEP   (0)

Definition at line 115 of file displayUpdate.h.

#define BOOT_PROGRESS_STEPS   (18)

Definition at line 114 of file displayUpdate.h.

#define BRUSH_Y   49

Definition at line 159 of file displayUpdate.h.

#define DARK_GRAY   2

Definition at line 166 of file displayUpdate.h.

#define DGRAY_BRUSH_X   55

Definition at line 157 of file displayUpdate.h.

#define DM_QUALITY_FULL   0

Definition at line 228 of file displayUpdate.h.

#define DM_QUALITY_TYPING   2

Definition at line 229 of file displayUpdate.h.

#define ESTIMATED_BOOT_JIFFIES   (ESTIMATED_BOOT_TIME * 100)

Definition at line 113 of file displayUpdate.h.

#define ESTIMATED_BOOT_TIME   (39)

Definition at line 112 of file displayUpdate.h.

#define FBIO_DISPLAY   _IOW(FBIO_IOCTL_BASE, 1, struct display_update_info)

Definition at line 91 of file displayUpdate.h.

#define FBIO_DRAW_BRUSH   _IOW(FBIO_IOCTL_BASE, 4, struct brush_draw_info_obsolete)

Definition at line 94 of file displayUpdate.h.

#define FBIO_DRAW_BRUSH_GENERIC   _IOW(FBIO_IOCTL_BASE, 9, struct brush_draw_info)

Definition at line 99 of file displayUpdate.h.

#define FBIO_DRAW_BUBBLE   _IOW(FBIO_IOCTL_BASE, 8, struct brush_draw_info_obsolete)

Definition at line 98 of file displayUpdate.h.

#define FBIO_DRAWPIXELS   _IOW(FBIO_IOCTL_BASE, 3, struct transfer_buffer)

Definition at line 93 of file displayUpdate.h.

#define FBIO_ERASE_WHITE   _IOW(FBIO_IOCTL_BASE, 2, struct display_update_info)

Definition at line 92 of file displayUpdate.h.

#define FBIO_IOCTL_BASE   'v'

Definition at line 90 of file displayUpdate.h.

#define FBIO_REDRAW   _IOW(FBIO_IOCTL_BASE, 5, struct display_update_info)

Definition at line 95 of file displayUpdate.h.

#define FBIO_UPLOAD_BRUSH   _IO(FBIO_IOCTL_BASE, 7)

Definition at line 97 of file displayUpdate.h.

#define FBIO_UPLOAD_WAVEFORM   _IOC(_IOC_WRITE, FBIO_IOCTL_BASE, 6, WAVEFORM_SIZE)

Definition at line 96 of file displayUpdate.h.

#define HARDWARE_V3   1

Definition at line 108 of file displayUpdate.h.

#define LGRAY_BRUSH_X   28

Definition at line 156 of file displayUpdate.h.

#define LIGHT_GRAY   1

Definition at line 165 of file displayUpdate.h.

#define LOWEST_LEVEL   0

Definition at line 224 of file displayUpdate.h.

#define MAIN_WINDOW_EXPOSE_LEVEL   1

Definition at line 225 of file displayUpdate.h.

#define MAX_BRUSH_SIZE   6

Definition at line 161 of file displayUpdate.h.

#define MOZEMBED_UPDATE_LEVEL   2

Definition at line 226 of file displayUpdate.h.

#define PIXELBUFSIZE   25

Definition at line 169 of file displayUpdate.h.

#define PROGRESS_BLOCK_BLACK_SIZE_X   19

Definition at line 151 of file displayUpdate.h.

#define PROGRESS_BLOCK_BLACK_SIZE_Y   36

Definition at line 152 of file displayUpdate.h.

#define PROGRESS_BLOCK_BLACK_X   159

Definition at line 149 of file displayUpdate.h.

#define PROGRESS_BLOCK_BLACK_Y   22

Definition at line 150 of file displayUpdate.h.

#define PROGRESS_BLOCK_BWHITE_SIZE_X   19

Definition at line 141 of file displayUpdate.h.

#define PROGRESS_BLOCK_BWHITE_SIZE_Y   36

Definition at line 142 of file displayUpdate.h.

#define PROGRESS_BLOCK_BWHITE_X   118

Definition at line 139 of file displayUpdate.h.

#define PROGRESS_BLOCK_BWHITE_Y   22

Definition at line 140 of file displayUpdate.h.

#define PROGRESS_BLOCK_WHITE_SIZE_X   19

Definition at line 146 of file displayUpdate.h.

#define PROGRESS_BLOCK_WHITE_SIZE_Y   36

Definition at line 147 of file displayUpdate.h.

#define PROGRESS_BLOCK_WHITE_X   138

Definition at line 144 of file displayUpdate.h.

#define PROGRESS_BLOCK_WHITE_Y   22

Definition at line 145 of file displayUpdate.h.

#define PROGRESS_STEP_JIFFIES   (ESTIMATED_BOOT_JIFFIES / (BOOT_PROGRESS_STEPS - BOOT_PROGRESS_START_STEP))

Definition at line 116 of file displayUpdate.h.

#define WAVEFORM_2BPP_IMAGE   0

Definition at line 102 of file displayUpdate.h.

#define WAVEFORM_4BPP_IMAGE   1

Definition at line 103 of file displayUpdate.h.

#define WAVEFORM_DRAW   4

Definition at line 104 of file displayUpdate.h.

#define WAVEFORM_FAST_BLACK_WHITE   6

Definition at line 105 of file displayUpdate.h.

#define WAVEFORM_SIZE   (128*1024)

Definition at line 87 of file displayUpdate.h.

#define WAVEFORM_TYPING   9

Definition at line 106 of file displayUpdate.h.

#define WHITE   0

Definition at line 164 of file displayUpdate.h.

#define WHITE_BRUSH_X   1

Definition at line 155 of file displayUpdate.h.

#define WHITE_BUBBLE_SIZE_X   7

Definition at line 136 of file displayUpdate.h.

#define WHITE_BUBBLE_SIZE_Y   7

Definition at line 137 of file displayUpdate.h.

#define WHITE_BUBBLE_X   21

Definition at line 134 of file displayUpdate.h.

#define WHITE_BUBBLE_Y   49

Definition at line 135 of file displayUpdate.h.

#define WHITE_CURSOR_SIZE_X   114

Definition at line 126 of file displayUpdate.h.

#define WHITE_CURSOR_SIZE_Y   24

Definition at line 127 of file displayUpdate.h.

#define WHITE_CURSOR_X   0

Definition at line 124 of file displayUpdate.h.

#define WHITE_CURSOR_Y   0

Definition at line 125 of file displayUpdate.h.


Typedef Documentation

typedef unsigned short u16

Definition at line 42 of file displayUpdate.h.


Function Documentation

void display_update_increase_level ( int  level  ) 

Increase the level value of the screen refresh. Meaning that the screen refresh will only be requested to the displayManager for levels equal or larger then this level value.

Parameters:
level screen refresh level
Returns:
TRUE on success

Definition at line 115 of file displayUpdate.c.

00116 {
00117     if (level > g_currentLevel)
00118     {
00119         g_currentLevel = level;
00120     }
00121 }

gboolean display_update_request_screen_refresh ( int  level,
gpointer  data 
)

set address of gtk idle callback, where the e-inkt display update is requested

Parameters:
status indicates whether or not not used
data not used
Returns:
TRUE on success

Definition at line 78 of file displayUpdate.c.

00079 {
00080     int     theCurrentLevel = display_update_get_level();
00081     int     quality;
00082     
00083     if (data == NULL)
00084     {
00085         quality = DM_QUALITY_FULL;
00086     }
00087     else
00088     {
00089         quality = (int) data;
00090     }
00091 
00092     if (level >= theCurrentLevel)
00093     {
00094         
00095         gtk_idle_add(display_update_during_idle_handling, (gpointer) quality);
00096 
00097         //reset the current level
00098         display_update_reset_level();
00099 
00100     }
00101     return TRUE;
00102 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:15:16 2008 by  doxygen 1.5.6