GadgetSeed  0.9.6
framebuf.c ファイル

フレームバッファドライバ(16ビットカラー) [詳解]

#include "device.h"
#include "framebuf.h"
#include "device/video_ioctl.h"
#include "graphics.h"
#include "tkprintf.h"
#include "sysconfig.h"
#include "dkprintf.h"
framebuf.c の依存先関係図:

[ソースコード]

関数

static void framebuf_set_forecolor (struct st_framebuf_context *fc, unsigned int color)
 
static void framebuf_set_backcolor (struct st_framebuf_context *fc, unsigned int color)
 
static void framebuf_draw_point (struct st_framebuf_context *fc, int x, int y)
 
static void framebuf_set_ptr (struct st_framebuf_context *fc)
 
static unsigned int framebuf_read_point (struct st_framebuf_context *fc)
 
static void framebuf_write_point (struct st_framebuf_context *fc, unsigned int color)
 
static void framebuf_repeat_data (struct st_framebuf_context *fc, int len)
 
static void framebuf_fill_screen (struct st_framebuf_context *fc, unsigned int data)
 
static int framebuf_register (struct st_device *dev, char *param)
 
static int framebuf_read (struct st_device *dev, void *data, unsigned int size)
 
static int framebuf_write (struct st_device *dev, const void *data, unsigned int size)
 
static int framebuf_ioctl (struct st_device *dev, unsigned int com, unsigned int arg, void *param)
 

変数

static const char def_v_dev [] = DEF_DEV_NAME_VIDEO
 
static struct st_framebuf_context fb_ctx
 
struct st_device framebuf_device
 

詳解

フレームバッファドライバ(16ビットカラー)

フレームバッファドライバは仮想グラフィックメモリだけを持つデバイスド ライバです。

上位のグラフィックライブラリより使用されます。 下位ドライバに、LCDドライバ等の実際に表示できるデバイスが必要です。

register()実行時に下位ビデオデバイス名を指定することが出来ます。

日付
2017.01.15
著者
Takashi SHUDO

framebuf.c に定義があります。

変数詳解

◆ framebuf_device

struct st_device framebuf_device
初期値:
= {
.name = "fb",
.explan = "Frame buffer(16 bit color)",
.register_dev = framebuf_register,
.read = framebuf_read,
.write = framebuf_write,
.ioctl = framebuf_ioctl,
}

framebuf.c346 行目に定義があります。