RT-Thread RTOS
1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
lcd.h
浏览该文件的文档.
1
/*
2
* Copyright (c) 2006-2023, RT-Thread Development Team
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*
6
* Change Logs:
7
* Date Author Notes
8
* 2022-03-05 bernard first version.
9
*/
10
11
#ifndef RT_LCD_H__
12
#define RT_LCD_H__
13
14
/* ioctls
15
0x46 is 'F' */
16
17
#define FBIOGET_VSCREENINFO 0x4600
18
#define FBIOPUT_VSCREENINFO 0x4601
19
#define FBIOGET_FSCREENINFO 0x4602
20
#define FBIOGET_PIXELINFO 0x4603
21
#define FBIOGETCMAP 0x4604
22
#define FBIOPUTCMAP 0x4605
23
#define FBIOPAN_DISPLAY 0x4606
24
#define FBIO_CURSOR 0x4608
25
/* #define FBIOGET_MONITORSPEC 0x460C */
26
/* #define FBIOPUT_MONITORSPEC 0x460D */
27
/* #define FBIOSWITCH_MONIBIT 0x460E */
28
29
#define FBIOGET_CON2FBMAP 0x460F
30
#define FBIOPUT_CON2FBMAP 0x4610
31
#define FBIOBLANK 0x4611
/* arg: 0 or vesa level + 1 */
32
#define FBIOGET_VBLANK 0x4612
33
#define FBIO_ALLOC 0x4613
34
#define FBIO_FREE 0x4614
35
#define FBIOGET_GLYPH 0x4615
36
#define FBIOGET_HWCINFO 0x4616
37
#define FBIOPUT_MODEINFO 0x4617
38
#define FBIOGET_DISPINFO 0x4618
39
#define FBIO_WAITFORVSYNC 0x4620
40
41
struct
fb_bitfield
42
{
43
uint32_t
offset
;
/* beginning of bitfield */
44
uint32_t
length
;
/* length of bitfield */
45
uint32_t
msb_right
;
/* != 0 : Most significant bit is */
46
/* right */
47
};
48
49
struct
fb_var_screeninfo
50
{
51
uint32_t
xres
;
/* visible resolution */
52
uint32_t
yres
;
53
uint32_t
xres_virtual
;
/* virtual resolution */
54
uint32_t
yres_virtual
;
55
uint32_t
xoffset
;
/* offset from virtual to visible */
56
uint32_t
yoffset
;
/* resolution */
57
58
uint32_t
bits_per_pixel
;
/* guess what */
59
uint32_t
grayscale
;
/* 0 = color, 1 = grayscale, */
60
/* >1 = FOURCC */
61
struct
fb_bitfield
red
;
/* bitfield in fb mem if true color, */
62
struct
fb_bitfield
green
;
/* else only length is significant */
63
struct
fb_bitfield
blue
;
64
struct
fb_bitfield
transp
;
/* transparency */
65
66
uint32_t
nonstd
;
/* != 0 Non standard pixel format */
67
68
uint32_t
activate
;
/* see FB_ACTIVATE_* */
69
70
uint32_t
height
;
/* height of picture in mm */
71
uint32_t
width
;
/* width of picture in mm */
72
73
uint32_t
accel_flags
;
/* (OBSOLETE) see fb_info.flags */
74
75
/* Timing: All values in pixclocks, except pixclock (of course) */
76
uint32_t
pixclock
;
/* pixel clock in ps (pico seconds) */
77
uint32_t
left_margin
;
/* time from sync to picture */
78
uint32_t
right_margin
;
/* time from picture to sync */
79
uint32_t
upper_margin
;
/* time from sync to picture */
80
uint32_t
lower_margin
;
81
uint32_t
hsync_len
;
/* length of horizontal sync */
82
uint32_t
vsync_len
;
/* length of vertical sync */
83
uint32_t
sync
;
/* see FB_SYNC_* */
84
uint32_t
vmode
;
/* see FB_VMODE_* */
85
uint32_t
rotate
;
/* angle we rotate counter clockwise */
86
uint32_t
colorspace
;
/* colorspace for FOURCC-based modes */
87
uint32_t
reserved
[4];
/* Reserved for future compatibility */
88
};
89
90
struct
fb_fix_screeninfo
91
{
92
char
id
[16];
/* identification string eg "TT Builtin" */
93
unsigned
long
smem_start
;
/* Start of frame buffer mem */
94
/* (physical address) */
95
uint32_t
smem_len
;
/* Length of frame buffer mem */
96
uint32_t
type
;
/* see FB_TYPE_* */
97
uint32_t
type_aux
;
/* Interleave for interleaved Planes */
98
uint32_t
visual
;
/* see FB_VISUAL_* */
99
uint16_t
xpanstep
;
/* zero if no hardware panning */
100
uint16_t
ypanstep
;
/* zero if no hardware panning */
101
uint16_t
ywrapstep
;
/* zero if no hardware ywrap */
102
uint32_t
line_length
;
/* length of a line in bytes */
103
unsigned
long
mmio_start
;
/* Start of Memory Mapped I/O */
104
/* (physical address) */
105
uint32_t
mmio_len
;
/* Length of Memory Mapped I/O */
106
uint32_t
accel
;
/* Indicate to driver which */
107
/* specific chip/card we have */
108
uint16_t
capabilities
;
/* see FB_CAP_* */
109
uint16_t
reserved
[2];
/* Reserved for future compatibility */
110
};
111
112
#endif
fb_bitfield
定义
lcd.h:42
fb_bitfield::length
uint32_t length
定义
lcd.h:44
fb_bitfield::msb_right
uint32_t msb_right
定义
lcd.h:45
fb_bitfield::offset
uint32_t offset
定义
lcd.h:43
fb_fix_screeninfo
定义
lcd.h:91
fb_fix_screeninfo::ypanstep
uint16_t ypanstep
定义
lcd.h:100
fb_fix_screeninfo::visual
uint32_t visual
定义
lcd.h:98
fb_fix_screeninfo::smem_start
unsigned long smem_start
定义
lcd.h:93
fb_fix_screeninfo::mmio_start
unsigned long mmio_start
定义
lcd.h:103
fb_fix_screeninfo::reserved
uint16_t reserved[2]
定义
lcd.h:109
fb_fix_screeninfo::type
uint32_t type
定义
lcd.h:96
fb_fix_screeninfo::capabilities
uint16_t capabilities
定义
lcd.h:108
fb_fix_screeninfo::xpanstep
uint16_t xpanstep
定义
lcd.h:99
fb_fix_screeninfo::mmio_len
uint32_t mmio_len
定义
lcd.h:105
fb_fix_screeninfo::type_aux
uint32_t type_aux
定义
lcd.h:97
fb_fix_screeninfo::line_length
uint32_t line_length
定义
lcd.h:102
fb_fix_screeninfo::accel
uint32_t accel
定义
lcd.h:106
fb_fix_screeninfo::smem_len
uint32_t smem_len
定义
lcd.h:95
fb_fix_screeninfo::ywrapstep
uint16_t ywrapstep
定义
lcd.h:101
fb_var_screeninfo
定义
lcd.h:50
fb_var_screeninfo::bits_per_pixel
uint32_t bits_per_pixel
定义
lcd.h:58
fb_var_screeninfo::nonstd
uint32_t nonstd
定义
lcd.h:66
fb_var_screeninfo::grayscale
uint32_t grayscale
定义
lcd.h:59
fb_var_screeninfo::height
uint32_t height
定义
lcd.h:70
fb_var_screeninfo::vmode
uint32_t vmode
定义
lcd.h:84
fb_var_screeninfo::yoffset
uint32_t yoffset
定义
lcd.h:56
fb_var_screeninfo::width
uint32_t width
定义
lcd.h:71
fb_var_screeninfo::activate
uint32_t activate
定义
lcd.h:68
fb_var_screeninfo::rotate
uint32_t rotate
定义
lcd.h:85
fb_var_screeninfo::blue
struct fb_bitfield blue
定义
lcd.h:63
fb_var_screeninfo::right_margin
uint32_t right_margin
定义
lcd.h:78
fb_var_screeninfo::xres_virtual
uint32_t xres_virtual
定义
lcd.h:53
fb_var_screeninfo::left_margin
uint32_t left_margin
定义
lcd.h:77
fb_var_screeninfo::pixclock
uint32_t pixclock
定义
lcd.h:76
fb_var_screeninfo::red
struct fb_bitfield red
定义
lcd.h:61
fb_var_screeninfo::transp
struct fb_bitfield transp
定义
lcd.h:64
fb_var_screeninfo::yres
uint32_t yres
定义
lcd.h:52
fb_var_screeninfo::xres
uint32_t xres
定义
lcd.h:51
fb_var_screeninfo::xoffset
uint32_t xoffset
定义
lcd.h:55
fb_var_screeninfo::accel_flags
uint32_t accel_flags
定义
lcd.h:73
fb_var_screeninfo::green
struct fb_bitfield green
定义
lcd.h:62
fb_var_screeninfo::upper_margin
uint32_t upper_margin
定义
lcd.h:79
fb_var_screeninfo::yres_virtual
uint32_t yres_virtual
定义
lcd.h:54
fb_var_screeninfo::sync
uint32_t sync
定义
lcd.h:83
fb_var_screeninfo::hsync_len
uint32_t hsync_len
定义
lcd.h:81
fb_var_screeninfo::vsync_len
uint32_t vsync_len
定义
lcd.h:82
fb_var_screeninfo::lower_margin
uint32_t lower_margin
定义
lcd.h:80
fb_var_screeninfo::colorspace
uint32_t colorspace
定义
lcd.h:86
fb_var_screeninfo::reserved
uint32_t reserved[4]
定义
lcd.h:87
components
drivers
include
drivers
lcd.h
制作者
1.13.1