#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>
浏览源代码.
- 作者
- 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
- 版权所有
- Copyright (c) 2023 2023 广州省天嵌嵌入式技术股份有限公司
- 修改日志:
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