📄 lcd_params.h
字号:
/***********************************************************************
* File: lcd_params.h
* Rev: 1.0
* Author: Chun Sing Chu
* Date: March 26 2007
*
* Description:
* This file contains parameters for LCD panel used on FCC1 board.
*
* Revision History:
* Rev 1.0 March 26 2007
* Initial revision.
*
**********************************************************************/
#ifndef LCD_PARAM_H
#define LCD_PARAM_H
#include "data_types.h"
/* LCD display types */
typedef enum {
TFT = 0, /* standard TFT */
ADTFT, /* advanced TFT */
HRTFT, /* highly reflective TFT */
MONO_4BIT, /* 4-bit mono */
MONO_8BIT, /* 8-bit mono */
CSTN /* color STN */
} LCD_PANEL_T;
/* Structure containing the parameters for the LCD panel */
typedef struct {
INT8U h_back_porch; /* Horizontal back porch in clocks */
INT8U h_front_porch; /* Horizontal front porch in clocks */
INT8U h_sync_pulse_width; /* HSYNC pulse width in clocks */
INT16U pixels_per_line; /* Pixels per line (horizontal resolution) */
INT8U v_back_porch; /* Vertical back porch in clocks */
INT8U v_front_porch; /* Vertical front porch in clocks */
INT8U v_sync_pulse_width; /* VSYNC pulse width in clocks */
INT16U lines_per_panel; /* Lines per panel (vertical resolution) */
INT8U invert_output_enable; /* Invert output enable, 1 = invert*/
INT8U invert_panel_clock; /* Invert panel clock, 1 = invert*/
INT8U invert_hsync; /* Invert HSYNC, 1 = invert */
INT8U invert_vsync; /* Invert VSYNC, 1 = invert */
INT8U ac_bias_frequency; /* AC bias frequency in clocks */
INT8U bits_per_pixel; /* Maximum bits per pixel the display supports */
INT32U optimal_clock; /* Optimal clock rate (Hz) */
LCD_PANEL_T lcd_panel_type; /* LCD panel type */
INT8U dual_panel; /* Dual panel, 1 = dual panel display */
} LCD_PARAM_T;
/* Optrex DMF-50840NF-FW-ABE-AU FSTN display parameters */
extern const LCD_PARAM_T dh240;
#endif /* LCD_PARAM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -