2020-06-04 21:43:16 +08:00
|
|
|
## lcd\_mem\_bgr565\_t
|
|
|
|
### 概述
|
2020-06-05 18:04:36 +08:00
|
|
|
![image](images/lcd_mem_bgr565_t_0.png)
|
|
|
|
|
2020-06-04 21:43:16 +08:00
|
|
|
|
|
|
|
----------------------------------
|
|
|
|
### 函数
|
|
|
|
<p id="lcd_mem_bgr565_t_methods">
|
|
|
|
|
|
|
|
| 函数名称 | 说明 |
|
|
|
|
| -------- | ------------ |
|
|
|
|
| <a href="#lcd_mem_bgr565_t_lcd_mem_bgr565_create">lcd\_mem\_bgr565\_create</a> | 创建lcd对象。 |
|
|
|
|
| <a href="#lcd_mem_bgr565_t_lcd_mem_bgr565_create_double_fb">lcd\_mem\_bgr565\_create\_double\_fb</a> | 创建double fb lcd对象。 |
|
|
|
|
| <a href="#lcd_mem_bgr565_t_lcd_mem_bgr565_create_single_fb">lcd\_mem\_bgr565\_create\_single\_fb</a> | 创建single fb lcd对象。 |
|
|
|
|
| <a href="#lcd_mem_bgr565_t_lcd_mem_bgr565_create_three_fb">lcd\_mem\_bgr565\_create\_three\_fb</a> | 创建three fb lcd对象。 |
|
2021-08-03 07:53:37 +08:00
|
|
|
| <a href="#lcd_mem_bgr565_t_lcd_mem_bgr565_init">lcd\_mem\_bgr565\_init</a> | 创建lcd对象。 |
|
2020-06-04 21:43:16 +08:00
|
|
|
#### lcd\_mem\_bgr565\_create 函数
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
|
|
|
> <p id="lcd_mem_bgr565_t_lcd_mem_bgr565_create">创建lcd对象。
|
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
```
|
|
|
|
lcd_t* lcd_mem_bgr565_create (wh_t w, wh_t h, bool_t alloc);
|
|
|
|
```
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
| 返回值 | lcd\_t* | 返回lcd对象。 |
|
|
|
|
| w | wh\_t | 宽度。 |
|
|
|
|
| h | wh\_t | 高度。 |
|
|
|
|
| alloc | bool\_t | 是否分配内存。 |
|
|
|
|
#### lcd\_mem\_bgr565\_create\_double\_fb 函数
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
|
|
|
> <p id="lcd_mem_bgr565_t_lcd_mem_bgr565_create_double_fb">创建double fb lcd对象。
|
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
```
|
|
|
|
lcd_t* lcd_mem_bgr565_create_double_fb (wh_t w, wh_t h, uint8_t* online_fb, uint8_t* offline_fb);
|
|
|
|
```
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
| 返回值 | lcd\_t* | 返回lcd对象。 |
|
|
|
|
| w | wh\_t | 宽度。 |
|
|
|
|
| h | wh\_t | 高度。 |
|
|
|
|
| online\_fb | uint8\_t* | 在线帧率缓冲区。 |
|
|
|
|
| offline\_fb | uint8\_t* | 离线帧率缓冲区。 |
|
|
|
|
#### lcd\_mem\_bgr565\_create\_single\_fb 函数
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
|
|
|
> <p id="lcd_mem_bgr565_t_lcd_mem_bgr565_create_single_fb">创建single fb lcd对象。
|
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
```
|
|
|
|
lcd_t* lcd_mem_bgr565_create_single_fb (wh_t w, wh_t h, uint8_t* fbuff);
|
|
|
|
```
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
| 返回值 | lcd\_t* | 返回lcd对象。 |
|
|
|
|
| w | wh\_t | 宽度。 |
|
|
|
|
| h | wh\_t | 高度。 |
|
|
|
|
| fbuff | uint8\_t* | 帧率缓冲区。 |
|
|
|
|
#### lcd\_mem\_bgr565\_create\_three\_fb 函数
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
|
|
|
> <p id="lcd_mem_bgr565_t_lcd_mem_bgr565_create_three_fb">创建three fb lcd对象。
|
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
```
|
|
|
|
lcd_t* lcd_mem_bgr565_create_three_fb (wh_t w, wh_t h, uint8_t* online_fb, uint8_t* offline_fb, uint8_t* next_fb);
|
|
|
|
```
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
| 返回值 | lcd\_t* | 返回lcd对象。 |
|
|
|
|
| w | wh\_t | 宽度。 |
|
|
|
|
| h | wh\_t | 高度。 |
|
|
|
|
| online\_fb | uint8\_t* | 在线帧率缓冲区。 |
|
|
|
|
| offline\_fb | uint8\_t* | 离线帧率缓冲区。 |
|
|
|
|
| next\_fb | uint8\_t* | 待显示的帧率缓冲区。 |
|
2021-08-03 07:53:37 +08:00
|
|
|
#### lcd\_mem\_bgr565\_init 函数
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
* 函数功能:
|
|
|
|
|
|
|
|
> <p id="lcd_mem_bgr565_t_lcd_mem_bgr565_init">创建lcd对象。
|
|
|
|
|
|
|
|
* 函数原型:
|
|
|
|
|
|
|
|
```
|
|
|
|
lcd_t* lcd_mem_bgr565_init (lcd_mem_t* lcd, wh_t w, wh_t h, bool_t alloc);
|
|
|
|
```
|
|
|
|
|
|
|
|
* 参数说明:
|
|
|
|
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
|
|
| -------- | ----- | --------- |
|
|
|
|
| 返回值 | lcd\_t* | 返回lcd对象。 |
|
|
|
|
| lcd | lcd\_mem\_t* | 对象。 |
|
|
|
|
| w | wh\_t | 宽度。 |
|
|
|
|
| h | wh\_t | 高度。 |
|
|
|
|
| alloc | bool\_t | 是否分配内存。 |
|