天嵌二次封装库使用手册  V1.0
tq_fb.h 文件参考
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/fb.h>
tq_fb.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  tq_fbinfo
 显示参数数据结构体 更多...
 

函数

int tq_fbset (char *dev_name, struct tq_fbinfo *info)
 打开设备,临时设置fb设备的参数,并关闭设备 更多...
 

详细描述

作者
zhengchuangyong (zheng.nosp@m.chua.nosp@m.ngyon.nosp@m.g@em.nosp@m.bedsk.nosp@m.y.ne.nosp@m.t)
版本
1.0
日期
2023-05-16
修改日志:
Date Version Author Description
2023-05-16 1.0 zhengchuangyong 设置fb设备参数

函数说明

int tq_fbset ( char *  dev_name,
struct tq_fbinfo info 
)

打开设备,临时设置fb设备的参数,并关闭设备

参数
dev_name设备名称路径 "/dev/fb0"
info存放显示参数数据结构体
返回
int 成返回0,打开设备失败返回-1,设置 FBIOGET_VSCREENINFO 失败-2,设置 FBIOPUT_VSCREENINFO 失败-3