lcd参数计算要点讲义.docxVIP

  • 38
  • 0
  • 约1.15万字
  • 约 17页
  • 2016-11-17 发布于湖北
  • 举报
 HYPERLINK /longxiaowu/article/detailsLCD参数解释及计算  一 分类:  HYPERLINK /longxiaowu/article/category/2155691 LCD 2014-04-22 17:48 2735人阅读  HYPERLINK /longxiaowu/article/details\l comments 评论(0)  HYPERLINK javascript:void(0); \o 收藏 收藏  HYPERLINK /longxiaowu/article/details\l report \o 举报 举报 ?Linux内核的amba lcd控制器使用clcd_panel结构体表示一个LCD屏的硬件参数: [cpp]  HYPERLINK /longxiaowu/article/details\o view plain view plain HYPERLINK /longxiaowu/article/details\o copy copy HYPERLINK /longxiaowu/article/details\o print print HYPERLINK /longxiaowu/article/details\o ? ? /*?include/linux/fb.h?*/?? struct?fb_videomode?{?? const?char?*name;?/*?optional?*/?? u32?refresh;?/*?optional?*/?? u32?xres;?? u32?yres;?? u32?pixclock;?? u32?left_margin;?? u32?right_margin;?? u32?upper_margin;?? u32?lower_margin;?? u32?hsync_len;?? u32?vsync_len;?? u32?sync;?? u32?vmode;?? u32?flag;?? };?? /*?include/linux/amba/clcd.h?*/?? struct?clcd_panel?{?? struct?fb_videomode?mode;?? signed?short?width;?/*?width?in?mm?*/?? signed?short?height;?/*?height?in?mm?*/?? u32?tim2;?? u32?tim3;?? u32?cntl;?? unsigned?int?bpp:8,?? fixedtimings:1,?? grayscale:1;?? unsigned?int?connector;?? };?? /* include/linux/fb.h */ struct fb_videomode { const char *name; /* optional */ u32 refresh; /* optional */ u32 xres; u32 yres; u32 pixclock; u32 left_margin; u32 right_margin; u32 upper_margin; u32 lower_margin; u32 hsync_len; u32 vsync_len; u32 sync; u32 vmode; u32 flag; }; /* include/linux/amba/clcd.h */ struct clcd_panel { struct fb_videomode mode; signed short width; /* width in mm */ signed short height; /* height in mm */ u32 tim2; u32 tim3; u32 cntl; unsigned int bpp:8, fixedtimings:1, grayscale:1; unsigned int connector; }; 先看一个例子: HYPERLINK http://lxr.linux.no/linux+v/arch/arm/mach-lpc32xx/phy3250.c \t _blank http://lxr.linux.no/linux+v/arch/arm/mach-lpc32xx/phy3250.c fb_videomode各个参数的意义 Linux对LCD的抽象如下图所示: 下面研究一下fb_videomode各个成员的

文档评论(0)

1亿VIP精品文档

相关文档