displayMgr/src/blank.c File Reference

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

Go to the source code of this file.

Classes

struct  display_update_info

Defines

#define FBIO_IOCTL_BASE   'v'
#define FBIO_ERASE_WHITE   _IOW(FBIO_IOCTL_BASE, 2, struct display_update_info)
#define WAVEFORM_4BPP_IMAGE   1

Functions

int main (int argc, char *argv[])


Define Documentation

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

Definition at line 30 of file blank.c.

#define FBIO_IOCTL_BASE   'v'

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 29 of file blank.c.

#define WAVEFORM_4BPP_IMAGE   1

Definition at line 31 of file blank.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 40 of file blank.c.

00041 {
00042     int fbdev;
00043     int ret;
00044     struct display_update_info updateinfo;
00045 
00046     fbdev = open ("/dev/fb0", O_RDWR);
00047         
00048     if (fbdev == -1)    
00049     {
00050         printf("Error opening framebufferdevice. # mknod /dev/fb0 c 29 0\n");
00051         exit(-1);
00052     }
00053 
00054     updateinfo.waveform = WAVEFORM_4BPP_IMAGE;
00055     updateinfo.sequence = 0;
00056         
00057     if ((ret=ioctl(fbdev, FBIO_ERASE_WHITE, &updateinfo))) 
00058     { 
00059         printf("Error sending FBIO_ERASE_WHITE: %x\n",ret); 
00060         exit(-1); 
00061     }
00062 
00063     close(fbdev);
00064 
00065     return 0;
00066 }


Generated on Sun Dec 14 17:14:18 2008 by  doxygen 1.5.6