//结构
struct fb_fix_screeninfo finfo
struct fb_var_screeninfo vinfo
//打开设备
fd = open["/dev/fb0", O_RDWR]
if [!fd] {
printf["Cannot open framebuffer device.\n"]
exit[1]
}
//取得固定信息
if [ioctl[fd, FBIOGET_FSCREENINFO, &finfo]] {
printf["Error reading fixed information.\n"]
exit[1]
}
if [ioctl[fd, FBIOGET_VSCREENINFO, &vinfo]] {
printf["Error reading variable information.\n"]
exit[1]
}
标签:
struct
fb_fix_screeninfo
fb_var_screeninfo
finfo
上传时间:
2014-08-16
上传用户:gut1234567