comparison include/fb.h @ 5:39d405bc46b7

add fb
author yutaka@localhost.localdomain
date Sat, 10 Apr 2010 16:29:22 +0900
parents
children
comparison
equal deleted inserted replaced
4:c2ce9efe2a52 5:39d405bc46b7
1 #ifndef FB_H
2 #define FB_H
3
4 #define DEVICE_NAME "/dev/fb0"
5 #define DIV_BYTE 8
6
7 #include <unistd.h>
8 #include <stdio.h>
9 #include <fcntl.h>
10 #include <linux/fb.h>
11 #include <linux/fs.h>
12 #include <sys/mman.h>
13 #include <sys/ioctl.h>
14 #include <stdlib.h>
15 #include <iostream>
16
17 typedef struct {
18
19 char *pixels;
20 int size;
21 int width;
22 int height;
23 int bpp;
24 int fd;
25
26 } fb_t;
27
28 /* function prototype */
29 void send_current_error_msg(const char *ptr);
30 void send_current_information(const char *ptr);
31 fb_t get_fbdev_addr(void);
32
33 #endif