Mstart屏参配置

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

MStar方案屏参配置

【屏类型结构体定义PanelType】文档位置:

《apiPNL.h》 /// A panel struct type used to specify the panel attributes, and settings from Board l ayout

typedef struct

{

const char *m_pPanelName; ///< PanelName 屏的名称 //

// Panel output //

MS_U8 m_bPanelDither :1; ///< PANEL_DITHER, keep the setting

//Sub BK VOP_36(不同芯片,此值可能不一样),bPanelDither=1->0x2D05,bPanelDither=0->0x2D00

APIPNL_LINK_TYPE m_ePanelLinkType :4; ///< PANEL_LINK

//Sub BK VOP_44(不同芯片,此值可能不一样),LVDS=0x11,RSDS=0x00

///////////////////////////////////////////////

//Board related setting

///////////////////////////////////////////////

MS_U8 m_bPanelDualPort :1; ///< VOP_21[8], MOD_4A[1], PANEL_DUAL_PORT, refer to m_ bPanelDoubleClk

MS_U8 m_bPanelSwapPort :1; ///< MOD_4A[0], PANEL_SWAP_PORT, refer to "LVDS output a pp note" A/B channel swap

MS_U8 m_bPanelSwapOdd_ML :1; ///< PANEL_SW AP_ODD_ML //蒙上灰

MS_U8 m_bPanelSwapEven_ML :1; ///< PANEL_SW AP_EVEN_ML //蒙上灰

MS_U8 m_bPanelSwapOdd_RB :1; ///< PANEL_SWAP_ODD_RB //缺色

MS_U8 m_bPanelSwapEven_RB :1; ///< PANEL_SWAP_EVEN_RB //缺色

MS_U8 m_bPanelSwapLVDS_POL :1; ///< MOD_40[5], PANEL_SWAP_LVDS_POL, for differe ntial P/N swap //正负极性切换

MS_U8 m_bPanelSwapLVDS_CH :1; ///< MOD_40[6], PANEL_SWAP_LVDS_CH, for pair swa p

//双通道切换

MS_U8 m_bPanelPDP10BIT :1; ///< MOD_40[3], PANEL_PDP_10BIT ,for pair swap

MS_U8 m_bPanelLVDS_TI_MODE :1; ///< MOD_40[2], PANEL_LVDS_TI_MODE, refer to "L VDS output app note"

//说明当前的屏是不是TI mode

///////////////////////////////////////////////

// For TTL Only

///////////////////////////////////////////////

MS_U8 m_ucPanelDCLKDelay; ///< PANEL_DCLK_DELAY

MS_U8 m_bPanelInvDCLK :1; ///< MOD_4A[4], PANEL_INV_DCLK MS_U8 m_bPanelInvDE :1; ///< MOD_4A[2], PANEL_INV_DE

MS_U8 m_bPanelInvHSync :1; ///< MOD_4A[12], PANEL_INV_HSYNC MS_U8 m_bPanelInv VSync :1; ///< MOD_4A[3], PANEL_INV_VSYNC

///////////////////////////////////////////////

// Output driving current setting

///////////////////////////////////////////////

// driving current setting (0x00=4mA, 0x01=6mA, 0x02=8mA, 0x03=12mA)

MS_U8 m_ucPanelDCKLCurrent; ///< define PANEL_DCLK_CURRENT //Sub VOP_??[6:7](不同芯片,此值可能不一样),

MS_U8 m_ucPanelDECurrent; ///< define PANEL_DE_CURRENT //Sub VOP_??[4:5](不同芯片,此值可能不一样),

MS_U8 m_ucPanelODDDataCurrent; ///< define PANEL_ODD_DA TA_CURRENT //Sub VOP_ [2:3](不同芯片,此值可能不一样),

MS_U8 m_ucPanelEvenDataCurrent; ///< define PANEL_EVEN_DATA_CURRENT //Sub VOP _??[0:1](不同芯片,此值可能不一样),

///////////////////////////////////////////////

// panel on/off timing

///////////////////////////////////////////////

MS_U16 m_wPanelOnTiming1; ///< time between panel & data while turn on power

MS_U16 m_wPanelOnTiming2; ///< time between data & back light while turn on power

MS_U16 m_wPanelOffTiming1; ///< time between back light & data while turn off power

MS_U16 m_wPanelOffTiming2; ///< time between data & panel while turn off power

///////////////////////////////////////////////

// panel timing spec.

///////////////////////////////////////////////

// sync related

MS_U8 m_ucPanelHSyncWidth; ///< VOP_01[7:0], PANEL_HSYNC_WIDTH

MS_U8 m_ucPanelHSyncBackPorch; ///< PANEL_HSYNC_BACK_PORCH, no register setting, provide value for query only,

///< not support Manuel VSync Start/End now

///< VOP_02[10:0] VSync start = Vtt - VBackPorch - VSyncWidth ///< VOP_03[10:0] VSync end = Vtt - VBackPorch

MS_U8 m_ucPanelVSyncWidth; ///< define PANEL_VSYNC_WIDTH MS_U8 m_ucPanelVBac kPorch; ///< define PANEL_VSYNC_BACK_PORCH // DE related

MS_U16 m_wPanelHStart; ///< VOP_04[11:0], PANEL_HSTART, DE H Start (PANEL_HSYNC _WIDTH + PANEL_HSYNC_BACK_PORCH)

MS_U16 m_wPanelVStart; ///< VOP_06[11:0], PANEL_VSTART, DE V Start

MS_U16 m_wPanelWidth; ///< PANEL_WIDTH, DE width (VOP_05[11:0] = HEnd = HStart + Width - 1)

MS_U16 m_wPanelHeight; ///< PANEL_HEIGHT, DE height (VOP_07[11:0], = Vend = VStart + Height - 1) // DClk related

MS_U16 m_wPanelMaxHTotal; ///< PANEL_MAX_HTOTAL. Reserved for future using. MS_U 16 m_wPanelHTotal; ///< VOP_0C[11:0], PANEL_HTOTAL

MS_U16 m_wPanelMinHTotal; ///< PANEL_MIN_HTOTAL. Reserved for future using. MS_U1 6 m_wPanelMaxVTotal; ///< PANEL_MAX_VTOTAL. Reserved for future using. MS_U16 m_w PanelVTotal; ///< VOP_0D[11:0], PANEL_VTOTAL

相关文档
最新文档