display.h File Reference

Hifidelio display access. More...

#include <linux/fb.h>

Include dependency graph for display.h:

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


Data Structures

struct  display_region
 Rectangular region on the display. More...
struct  display_data
 Display data, including the display buffer and update regions. More...

Defines

#define DISPLAY_FORE_COLOR   0x00000000
#define DISPLAY_BACK_COLOR   0x99c0bf00
#define DISPLAY_WIDTH   400
#define DISPLAY_HEIGHT   160
#define DISPLAY_WIDTH_BYTES   50

Functions

struct display_datadisplay_get_data ()
int display_show_message (char *message, int duration)
int display_update (struct display_data *data)
void display_cleanup (struct display_data *data)

Detailed Description


Define Documentation

#define DISPLAY_FORE_COLOR   0x00000000

Default display foreground color.

#define DISPLAY_BACK_COLOR   0x99c0bf00

Default display background color.

#define DISPLAY_WIDTH   400

Display width in pixels.

#define DISPLAY_HEIGHT   160

Display height in pixels.

#define DISPLAY_WIDTH_BYTES   50

Number of bytes per display row.


Function Documentation

struct display_data* display_get_data (  )  [read]

Initialize display data structure.

Returns:
a display data structure or NULL if an error occured

int display_show_message ( char *  message,
int  duration 
)

Prepares a message to be shown on the virtual display.

Parameters:
message the message
duration display duration of message in milliseconds
Returns:
0 on success or -1 if an error occured

int display_update ( struct display_data data  ) 

Reads the display content and identifies the update regions.

Parameters:
data display data
Returns:
0 on success or -1 if an error occured

void display_cleanup ( struct display_data data  ) 

Display data cleanup.

Frees allocated memory.

Parameters:
data display data


Generated on Mon Mar 29 01:39:28 2010 for Veronica by  doxygen 1.5.8