VSF Documented
fb.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __HAL_DRIVER_ALLWINNER_F1CX00S_FRAMEBUFFER_H__
19#define __HAL_DRIVER_ALLWINNER_F1CX00S_FRAMEBUFFER_H__
20
21/*============================ INCLUDES ======================================*/
22#include "hal/vsf_hal_cfg.h"
23#include "../../__device.h"
25
26/*============================ MACROS ========================================*/
27/*============================ MACROFIED FUNCTIONS ===========================*/
28/*============================ TYPES =========================================*/
29
43
47
51
52typedef struct f1cx00s_fb_param_t {
53 enum {
58 // refer to DEBE_LAY_ATT_CTRL1 register
60 union {
66
67typedef struct f1cx00s_fb_t {
74
75/*============================ GLOBAL VARIABLES ==============================*/
76/*============================ INCLUDES ======================================*/
77/*============================ PROTOTYPES ====================================*/
78
79extern vsf_err_t f1cx00s_fb_init(f1cx00s_fb_t *fb, int color_format, void *initial_pixel_buffer);
81extern vsf_err_t f1cx00s_fb_present(f1cx00s_fb_t *fb, void *pixel_buffer);
82
83#endif
84/* EOF */
vsf_err_t
Definition __type.h:42
vsf_err_t f1cx00s_fb_init(f1cx00s_fb_t *fb, int color_format, void *initial_pixel_buffer)
Definition fb.c:43
vsf_err_t f1cx00s_fb_present(f1cx00s_fb_t *fb, void *pixel_buffer)
Definition fb.c:207
vsf_err_t f1cx00s_fb_fini(f1cx00s_fb_t *fb)
Definition fb.c:198
unsigned short uint16_t
Definition stdint.h:7
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition fb.h:44
uint32_t pixel_clock_hz
Definition fb.h:45
Definition fb.h:52
@ F1C100S_LCD_TYPE_CPU
Definition fb.h:55
@ F1C100S_LCD_TYPE_RGB
Definition fb.h:54
@ F1C100S_LCD_TYPE_TV_OUT
Definition fb.h:56
enum f1cx00s_fb_param_t::@342 lcd_type
f1cx00s_fb_tve_timing_t tv_out
Definition fb.h:63
f1cx00s_fb_rgb_timing_t rgb
Definition fb.h:61
f1cx00s_fb_cpu_timing_t cpu
Definition fb.h:62
uint16_t color_format
Definition fb.h:59
union f1cx00s_fb_param_t::@343 timing
Definition fb.h:30
bool h_sync_active
Definition fb.h:38
uint16_t v_sync
Definition fb.h:37
uint16_t v_back_porch
Definition fb.h:36
bool v_sync_active
Definition fb.h:39
uint16_t h_back_porch
Definition fb.h:33
uint16_t h_front_porch
Definition fb.h:32
uint16_t v_front_porch
Definition fb.h:35
uint16_t h_sync
Definition fb.h:34
bool clk_active
Definition fb.h:41
uint32_t pixel_clock_hz
Definition fb.h:31
bool den_active
Definition fb.h:40
Definition fb.h:67
uint32_t width
Definition fb.h:69
const f1cx00s_fb_param_t * param
Definition fb.h:68
uint8_t pixel_byte_size
Definition fb.h:72
uint32_t height
Definition fb.h:70
uint8_t pixel_bit_size
Definition fb.h:71
Definition fb.h:48
uint32_t pixel_clock_hz
Definition fb.h:49